<86>Jan 20 05:27:06 userdel[1022949]: delete user 'rooter' <86>Jan 20 05:27:06 userdel[1022949]: removed group 'rooter' owned by 'rooter' <86>Jan 20 05:27:06 userdel[1022949]: removed shadow group 'rooter' owned by 'rooter' <86>Jan 20 05:27:06 groupadd[1022963]: group added to /etc/group: name=rooter, GID=1814 <86>Jan 20 05:27:06 groupadd[1022963]: group added to /etc/gshadow: name=rooter <86>Jan 20 05:27:06 groupadd[1022963]: new group: name=rooter, GID=1814 <86>Jan 20 05:27:06 useradd[1022976]: new user: name=rooter, UID=1814, GID=1814, home=/root, shell=/bin/bash, from=none <86>Jan 20 05:27:07 userdel[1023005]: delete user 'builder' <86>Jan 20 05:27:07 userdel[1023005]: removed group 'builder' owned by 'builder' <86>Jan 20 05:27:07 userdel[1023005]: removed shadow group 'builder' owned by 'builder' <86>Jan 20 05:27:07 groupadd[1023017]: group added to /etc/group: name=builder, GID=1815 <86>Jan 20 05:27:07 groupadd[1023017]: group added to /etc/gshadow: name=builder <86>Jan 20 05:27:07 groupadd[1023017]: new group: name=builder, GID=1815 <86>Jan 20 05:27:07 useradd[1023031]: new user: name=builder, UID=1815, GID=1815, home=/usr/src, shell=/bin/bash, from=none <13>Jan 20 05:27:10 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432004 installed <13>Jan 20 05:27:10 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468404 installed <13>Jan 20 05:27:10 rpmi: libexpat-2.6.4-alt1 sisyphus+365521.100.1.1 1734700243 installed <13>Jan 20 05:27:10 rpmi: openssl-config-3.2.0-alt1 sisyphus+366659.140.4.1 1736956949 installed <13>Jan 20 05:27:10 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962877 installed <13>Jan 20 05:27:10 rpmi: libp11-kit-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Jan 20 05:27:10 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802615 installed <13>Jan 20 05:27:10 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jan 20 05:27:10 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jan 20 05:27:10 rpmi: ca-certificates-2024.12.10-alt1 sisyphus+364633.200.3.1 1733918603 installed <13>Jan 20 05:27:10 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Jan 20 05:27:10 rpmi: p11-kit-trust-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Jan 20 05:27:10 rpmi: libcrypto3-3.3.2-alt1 sisyphus+366659.40.4.1 1736956900 installed <13>Jan 20 05:27:10 rpmi: libssl3-3.3.2-alt1 sisyphus+366659.40.4.1 1736956900 installed <13>Jan 20 05:27:10 rpmi: python3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Jan 20 05:27:10 rpmi: python3-base-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Jan 20 05:27:10 rpmi: python3-module-py3dephell-0.3.1-alt1 sisyphus+365261.200.1.1 1734463433 installed <13>Jan 20 05:27:10 rpmi: tests-for-installed-python3-pkgs-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed <13>Jan 20 05:27:10 rpmi: rpm-build-python3-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed <13>Jan 20 05:27:15 rpmi: libjpeg-2:3.0.2-alt2.1 sisyphus+340135.100.1.1 1707449145 installed <13>Jan 20 05:27:15 rpmi: libpng16-1.6.42-alt2 sisyphus+339555.100.1.1 1706781682 installed <13>Jan 20 05:27:15 rpmi: qt5-base-common-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:15 rpmi: python3-module-typing_extensions-4.12.2-alt1 sisyphus+351501.100.1.2 1719296652 installed <13>Jan 20 05:27:16 rpmi: libsqlite3-3.47.1-alt1 sisyphus+365248.200.3.1 1734527620 installed <13>Jan 20 05:27:16 rpmi: python3-module-packaging-24.2-alt1 sisyphus+362183.100.1.1 1731315992 installed <13>Jan 20 05:27:16 rpmi: libopenjpeg2.0-2.5.3-alt1 sisyphus+364601.100.1.1 1733825032 installed <13>Jan 20 05:27:16 rpmi: qt5-declarative-common-5.15.16-alt1 sisyphus+369622.100.1.3 1736947377 installed <13>Jan 20 05:27:16 rpmi: python3-module-docutils-0.20.1-alt1 sisyphus+323438.100.1.1 1687370718 installed <13>Jan 20 05:27:16 rpmi: python3-module-zope.interface-7.2-alt1 sisyphus+363572.100.1.1 1732797441 installed <13>Jan 20 05:27:16 rpmi: libgomp1-14.2.1-alt1 sisyphus+360995.100.1.1 1730131018 installed <13>Jan 20 05:27:16 rpmi: libogg-1.3.5-alt1 sisyphus+278100.3400.1.1 1626058929 installed <13>Jan 20 05:27:16 rpmi: libwebp7-1.5.0-alt1 sisyphus+365488.100.1.1 1734677703 installed <13>Jan 20 05:27:16 rpmi: libwayland-client-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Jan 20 05:27:16 rpmi: liblcms2-2.16-alt1 sisyphus+335676.100.1.1 1701682597 installed <13>Jan 20 05:27:16 rpmi: libusb-1.0.27-alt1 sisyphus+347412.100.1.1 1714739651 installed <13>Jan 20 05:27:16 rpmi: libvorbis-1.3.7-alt1 sisyphus+275738.100.1.1 1624751601 installed <13>Jan 20 05:27:16 rpmi: python3-module-asgiref-3.7.2-alt1 sisyphus+328419.100.1.1 1693492242 installed <13>Jan 20 05:27:16 rpmi: python3-module-Pygments-2.19.1-alt1 sisyphus+368586.100.2.1 1737039695 installed <13>Jan 20 05:27:16 rpmi: python3-module-urllib3-2:2.3.0-alt1 sisyphus+366320.100.2.1 1735116352 installed <13>Jan 20 05:27:16 rpmi: python3-module-click-8.1.8-alt1 sisyphus+366297.100.1.1 1734946237 installed <13>Jan 20 05:27:16 rpmi: python3-module-idna-3.10-alt1 sisyphus+358681.100.1.1 1727701241 installed <13>Jan 20 05:27:16 rpmi: python3-module-attrs-24.2.0-alt2 sisyphus+355603.200.1.1 1724160494 installed <13>Jan 20 05:27:16 rpmi: libraw1394-11-2.1.2-alt1 sisyphus+278262.100.1.1 1626081867 installed <13>Jan 20 05:27:16 rpmi: libopus-1.5.2-alt1.1 sisyphus+366209.100.1.1 1734786371 installed <13>Jan 20 05:27:16 rpmi: libopenblas-0.3.28-alt1 sisyphus+356644.100.1.1 1725289674 installed <13>Jan 20 05:27:16 rpmi: libhdf5-310-1.14.3-alt3 sisyphus+356311.100.1.1 1724931027 installed <13>Jan 20 05:27:16 rpmi: libgudev-1:238-alt1 sisyphus+324364.100.1.1 1688646144 installed <13>Jan 20 05:27:16 rpmi: libxkbcommon-1.7.0-alt1.1 sisyphus+343672.100.1.1 1711490810 installed <13>Jan 20 05:27:16 rpmi: libtheora-2:1.1.1-alt6 sisyphus+277967.100.1.1 1625928129 installed <13>Jan 20 05:27:16 rpmi: libsuitesparseconfig7-7.8.2-alt1 sisyphus+370508.100.1.1 1737209895 installed <13>Jan 20 05:27:16 rpmi: python3-module-system-seed-wheels-0.0.1-alt1 sisyphus+270533.400.6.1 1619683425 installed <13>Jan 20 05:27:16 rpmi: python3-module-traitlets-5.14.3-alt1 sisyphus+345559.100.1.1 1713606266 installed <13>Jan 20 05:27:16 rpmi: python3-module-markupsafe-1:3.0.2-alt1 sisyphus+360209.100.1.1 1729323052 installed <13>Jan 20 05:27:16 rpmi: python3-module-jinja2-3.1.5-alt1 sisyphus+369511.100.1.1 1736862713 installed <13>Jan 20 05:27:16 rpmi: python3-module-six-1.17.0-alt1 sisyphus+364177.100.1.1 1733425205 installed <13>Jan 20 05:27:16 rpmi: python3-module-dateutil-2.8.3-alt0.git0586f4a sisyphus+338928.600.2.1 1706746480 installed <13>Jan 20 05:27:16 rpmi: python3-module-platformdirs-4.3.6-alt1 sisyphus+357787.200.1.1 1726664692 installed <13>Jan 20 05:27:16 rpmi: liborc-0.4.40-alt1 sisyphus+357575.100.1.1 1726413203 installed <13>Jan 20 05:27:16 rpmi: python3-modules-sqlite3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Jan 20 05:27:16 rpmi: python3-module-itsdangerous-2.2.0-alt1 sisyphus+345793.200.2.1 1714032239 installed <13>Jan 20 05:27:16 rpmi: python3-module-jmespath-1.0.1-alt1 sisyphus+317988.100.2.1 1680612150 installed <13>Jan 20 05:27:16 rpmi: python3-module-wcwidth-0.2.13-alt1 sisyphus+341792.100.2.1 1709543329 installed <13>Jan 20 05:27:16 rpmi: python3-module-multidict-6.1.0-alt1 sisyphus+358658.100.1.1 1727692657 installed <13>Jan 20 05:27:16 rpmi: python3-module-more-itertools-10.6.0-alt1 sisyphus+369595.100.2.1 1737017267 installed <13>Jan 20 05:27:17 rpmi: libtcl-8.6.13-alt1 sisyphus+310696.100.1.1 1669548266 installed <13>Jan 20 05:27:17 rpmi: perl-HTTP-Date-6.06-alt1 sisyphus+324527.100.1.1 1688834564 installed <13>Jan 20 05:27:17 rpmi: perl-XML-NamespaceSupport-1.12-alt1 1491296348 installed <13>Jan 20 05:27:17 rpmi: libdvdread8-6.1.3-alt1 sisyphus+302642.100.1.1 1656163148 installed <13>Jan 20 05:27:17 rpmi: libzeromq-4.3.4-alt3 sisyphus+326735.200.2.1 1691482840 installed <13>Jan 20 05:27:17 rpmi: libserd-0.32.2-alt1 sisyphus+341428.200.1.1 1708949158 installed <13>Jan 20 05:27:17 rpmi: libvpl2-2.14.0-alt1 sisyphus+369649.300.2.1 1736955123 installed <13>Jan 20 05:27:17 rpmi: libspeex-1.2.1-alt1 sisyphus+339763.100.1.1 1707113839 installed <13>Jan 20 05:27:17 rpmi: libfribidi-1.0.16-alt1 sisyphus+358393.100.1.1 1727333692 installed <13>Jan 20 05:27:17 rpmi: liblame-3.100-alt1 sisyphus+346342.200.2.2 1716474674 installed <13>Jan 20 05:27:17 rpmi: libgsm-1.0.17-alt1 sisyphus+275359.100.2.1 1624907612 installed <13>Jan 20 05:27:17 rpmi: libpython3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Jan 20 05:27:17 rpmi: libaom3-3.9.1-alt2 sisyphus+354446.100.1.1 1722877371 installed <13>Jan 20 05:27:17 rpmi: libgeos-3.13.0-alt1 sisyphus+357084.100.1.1 1725689739 installed <13>Jan 20 05:27:17 rpmi: libSDL2-2.30.11-alt1 sisyphus+367519.100.1.1 1735907380 installed <13>Jan 20 05:27:17 rpmi: libidn2-2.3.7-alt1 sisyphus+339505.100.1.2 1706718968 installed <13>Jan 20 05:27:17 rpmi: libnettle8-3.9.1-alt1 sisyphus+322548.100.1.2 1686176879 installed <13>Jan 20 05:27:17 rpmi: libglvnd-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 20 05:27:17 rpmi: libspirv-tools0-1:2024.4-alt0.1 sisyphus+365035.200.5.1 1734354502 installed <13>Jan 20 05:27:17 rpmi: libkmod-32-alt1 sisyphus+357452.100.2.1 1727718007 installed <13>Jan 20 05:27:17 rpmi: liblz4-1:1.9.4-alt1 sisyphus+309416.100.1.1 1667412981 installed <13>Jan 20 05:27:17 rpmi: libsystemd-1:255.16-alt1 sisyphus+368218.100.2.1 1736510055 installed <13>Jan 20 05:27:17 rpmi: libdbus-1.16.0-alt2 sisyphus+369277.100.1.1 1736680018 installed <13>Jan 20 05:27:17 rpmi: libavahi-0.8-alt4 sisyphus+344258.100.1.1 1712133856 installed <13>Jan 20 05:27:17 rpmi: python3-module-jaraco.functools-4.1.0-alt1 sisyphus+358564.100.1.1 1727528718 installed <13>Jan 20 05:27:17 rpmi: python3-module-coverage-7.3.2-alt1 sisyphus+340977.100.1.1 1708279274 installed <13>Jan 20 05:27:17 rpmi: python3-module-werkzeug-3.1.3-alt1 sisyphus+361875.200.2.1 1731337173 installed <13>Jan 20 05:27:17 rpmi: libdc1394-22-2.2.5-alt1.1 sisyphus+311484.100.1.1 1670647146 installed <13>Jan 20 05:27:17 rpmi: libiec61883-1.2.0-alt1.qa1 sisyphus+275365.100.1.2 1624491850 installed <13>Jan 20 05:27:17 rpmi: python3-module-outcome-1.3.0-alt1 sisyphus+332382.100.1.1 1697882349 installed <13>Jan 20 05:27:17 rpmi: python3-module-hyperlink-21.0.0-alt1.1 sisyphus+304836.100.1.1 1659710964 installed <13>Jan 20 05:27:17 rpmi: libwayland-cursor-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Jan 20 05:27:17 rpmi: libwayland-egl-4:18.1.0-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Jan 20 05:27:17 rpmi: libflac12-1.4.3-alt2 sisyphus+343354.100.1.1 1711118098 installed <13>Jan 20 05:27:17 rpmi: qt5-connectivity-common-5.15.16-alt1 sisyphus+365342.2300.2.2 1734820642 installed <13>Jan 20 05:27:17 rpmi: qt5-tools-common-5.15.16-alt1 sisyphus+369624.100.1.3 1736942699 installed <13>Jan 20 05:27:17 rpmi: qt5-location-common-5.15.16-alt1 sisyphus+365342.1000.2.2 1734819463 installed <13>Jan 20 05:27:17 rpmi: libv4l-1.28.1-alt1 sisyphus+353586.100.1.1 1721897959 installed <13>Jan 20 05:27:17 rpmi: python3-module-shellingham-1.5.4-alt1 sisyphus+332574.100.1.1 1698135363 installed <13>Jan 20 05:27:17 rpmi: python3-module-html5tagger-1.3.0-alt1 sisyphus+354562.600.3.1 1723069786 installed <13>Jan 20 05:27:17 rpmi: python3-module-h11-0.14.0-alt1 sisyphus+312690.100.1.1 1672395335 installed <13>Jan 20 05:27:17 rpmi: python3-module-fastjsonschema-2.21.1-alt1 sisyphus+363956.100.1.1 1733217943 installed <13>Jan 20 05:27:17 rpmi: python3-module-cleo-2.2.1-alt1 sisyphus+362876.200.1.1 1731956909 installed <13>Jan 20 05:27:17 rpmi: python3-module-sqlparse-0.5.3-alt1 sisyphus+367438.100.1.1 1735561443 installed <13>Jan 20 05:27:17 rpmi: python3-module-xmod-1.8.1-alt1 sisyphus+354658.1700.13.1 1723248064 installed <13>Jan 20 05:27:17 rpmi: python3-module-pyproject_hooks-1.1.0-alt2 sisyphus+352023.500.4.2 1720458740 installed <13>Jan 20 05:27:17 rpmi: python3-module-blinker-1.9.0-alt1 sisyphus+362571.300.7.1 1734000808 installed <13>Jan 20 05:27:17 rpmi: python3-module-flask-3.1.0-alt1 sisyphus+362571.400.7.1 1734000837 installed <13>Jan 20 05:27:17 rpmi: python3-module-decorator-5.1.1-alt1 sisyphus+350325.100.1.1 1717516085 installed <13>Jan 20 05:27:17 rpmi: python3-module-pluggy-1.5.0-alt1 sisyphus+345632.100.2.1 1713864244 installed <13>Jan 20 05:27:17 rpmi: python3-module-propcache-0.2.1-alt1 sisyphus+369528.100.1.1 1736868993 installed <13>Jan 20 05:27:17 rpmi: python3-module-priority-2.0.0-alt3 sisyphus+338701.100.1.2 1705988383 installed <13>Jan 20 05:27:17 rpmi: python3-module-sniffio-1.3.1-alt1 sisyphus+341424.100.1.1 1708941879 installed <13>Jan 20 05:27:17 rpmi: python3-module-frozenlist-1.5.0-alt1 sisyphus+362047.100.1.1 1731079173 installed <13>Jan 20 05:27:17 rpmi: libcares-1.34.4-alt1 sisyphus+366652.100.1.1 1735281164 installed <13>Jan 20 05:27:17 rpmi: libncurses6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Jan 20 05:27:17 rpmi: libgflags-2.2.2-alt3 sisyphus+319790.100.1.1 1683117277 installed <13>Jan 20 05:27:17 rpmi: libopenal1-1.22.2-alt2 sisyphus+331513.100.1.2 1697028598 installed <13>Jan 20 05:27:17 rpmi: libdv-1.0.0-alt6 sisyphus+286805.100.2.1 1633968015 installed <13>Jan 20 05:27:17 rpmi: perl-LWP-MediaTypes-6.04-alt1 sisyphus+225468.100.1.1 1553186684 installed <13>Jan 20 05:27:17 rpmi: perl-Compress-Raw-Zlib-2.206-alt1 sisyphus+335067.600.1.1 1700901499 installed <13>Jan 20 05:27:17 rpmi: perl-libnet-1:3.15-alt1 sisyphus+317310.100.1.1 1679580208 installed <13>Jan 20 05:27:17 rpmi: perl-XML-SAX-Base-1.09-alt1 1494364363 installed <13>Jan 20 05:27:17 rpmi: libwebrtc-audio-processing-1.3-alt2 sisyphus+332026.100.1.1 1697579361 installed <13>Jan 20 05:27:17 rpmi: libsbc1-2.0-alt2 sisyphus+322708.100.1.1 1686327806 installed <13>Jan 20 05:27:17 rpmi: liblc3-1.1.1-alt1 sisyphus+347780.100.1.1 1715374023 installed <13>Jan 20 05:27:17 rpmi: libfreeaptx-0.1.1-alt1 sisyphus+282022.100.1.1 1628182661 installed <13>Jan 20 05:27:17 rpmi: libyaml2-0.2.5-alt1 sisyphus+278391.100.1.1 1626094928 installed <13>Jan 20 05:27:17 rpmi: python3-module-yaml-6.0.2-alt1 sisyphus+356896.100.1.1 1725541112 installed <13>Jan 20 05:27:17 rpmi: libfdk-aac2-2.0.3-alt0.1 sisyphus+338863.100.1.1 1706094241 installed <13>Jan 20 05:27:17 rpmi: libimath29-3.1.6-alt4 sisyphus+360827.100.1.1 1729946609 installed <13>Jan 20 05:27:17 rpmi: libiex30-3.1.5-alt2.2 sisyphus+324124.100.1.1 1688379858 installed <13>Jan 20 05:27:17 rpmi: libmpg123-1:1.32.10-alt1 sisyphus+365072.100.1.1 1734226035 installed <13>Jan 20 05:27:17 rpmi: libsndfile-1.1.0-alt1 sisyphus+339776.7300.6.2 1707350065 installed <13>Jan 20 05:27:17 rpmi: libunwind-1.7.0-alt2 sisyphus+335269.100.1.1 1701110934 installed <13>Jan 20 05:27:17 rpmi: libglog2-0.7.1-alt1 sisyphus+350246.140.8.1 1724736246 installed <13>Jan 20 05:27:17 rpmi: libzix-0.4.2-alt1 sisyphus+341428.100.1.1 1708949131 installed <13>Jan 20 05:27:17 rpmi: libsord-0.16.16-alt1 sisyphus+341428.300.1.1 1708949185 installed <13>Jan 20 05:27:17 rpmi: libbs2b-3.1.0-alt1.4 sisyphus+346078.200.2.1 1716241402 installed <13>Jan 20 05:27:17 rpmi: libx264-164-alt1.1 sisyphus+322210.100.1.1 1685494917 installed <13>Jan 20 05:27:18 rpmi: libvpx9-1.15.0-alt1 sisyphus+366496.100.1.1 1735142013 installed <13>Jan 20 05:27:18 rpmi: libtwolame-0.4.0-alt1 sisyphus+277783.100.1.1 1625798476 installed <13>Jan 20 05:27:18 rpmi: libopenh264_7-2.5.0-alt1 sisyphus+362019.100.1.1 1731073174 installed <13>Jan 20 05:27:18 rpmi: libdav1d_7-1.5.0-alt1 sisyphus+365203.100.1.1 1734367592 installed <13>Jan 20 05:27:18 rpmi: libqhull-2020.2-alt1 sisyphus+279488.100.1.2 1626573478 installed <13>Jan 20 05:27:18 rpmi: libnspr-1:4.35-alt1 sisyphus+308164.100.1.1 1665397040 installed <13>Jan 20 05:27:18 rpmi: libassuan-2.5.6-alt1 sisyphus+327218.300.1.1 1692093921 installed <13>Jan 20 05:27:18 rpmi: libltdl7-2.4.7-alt5 sisyphus+341963.200.3.1 1711659208 installed <13>Jan 20 05:27:18 rpmi: libgif-4.1.6-alt3 sisyphus+276911.100.1.3 1625273979 installed <13>Jan 20 05:27:18 rpmi: libICE-1.1.1-alt1 sisyphus+311428.500.1.1 1670577555 installed <13>Jan 20 05:27:18 rpmi: libmtdev-1.1.6-alt1 sisyphus+278361.100.1.1 1626091644 installed <13>Jan 20 05:27:18 rpmi: libevdev-1.13.3-alt1 sisyphus+356918.100.1.1 1725546440 installed <13>Jan 20 05:27:18 rpmi: libts0-1.22-alt3 sisyphus+278442.100.1.2 1626216676 installed <13>Jan 20 05:27:18 rpmi: libicu74-1:7.4.2-alt1 sisyphus+336372.200.1.1 1702423005 installed <13>Jan 20 05:27:18 rpmi: libdouble-conversion3-3.3.0-alt1 sisyphus+333410.100.1.1 1698928789 installed <13>Jan 20 05:27:18 rpmi: libqt5-core-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:18 rpmi: libqt5-dbus-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:18 rpmi: libqt5-sql-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:18 rpmi: libqt5-xml-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:18 rpmi: libwayland-server-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Jan 20 05:27:18 rpmi: libminizip-1.3.1-alt1 sisyphus+342532.100.1.1 1710232285 installed <13>Jan 20 05:27:18 rpmi: freexl-2.0.0-alt1 sisyphus+331219.100.1.1 1696656233 installed <13>Jan 20 05:27:18 rpmi: libatk-2.54.1-alt1 sisyphus+369255.100.1.1 1736603245 installed <13>Jan 20 05:27:18 rpmi: libqt5-test-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:18 rpmi: tslib-1.22-alt3 sisyphus+278442.100.1.2 1626216676 installed <13>Jan 20 05:27:18 rpmi: libSM-1.2.4-alt1 sisyphus+312057.200.1.1 1671526916 installed <13>Jan 20 05:27:18 rpmi: libunixODBC2-2.3.12-alt1.1 sisyphus+366306.100.1.1 1734950390 installed <13>Jan 20 05:27:18 rpmi: libnss-3.107-alt1 sisyphus+364633.40.3.1 1733918554 installed <13>Jan 20 05:27:18 rpmi: libsratom-0.6.16-alt1 sisyphus+341428.400.1.1 1708949212 installed <13>Jan 20 05:27:18 rpmi: liblilv-0.24.24-alt2 sisyphus+341494.100.1.1 1709024102 installed <13>Jan 20 05:27:18 rpmi: libsamplerate-0.2.2-alt1 sisyphus+284642.100.1.1 1630906301 installed <13>Jan 20 05:27:18 rpmi: libinstpatch-1.1.6-alt1.1 sisyphus+279572.100.1.2 1626605094 installed <13>Jan 20 05:27:18 rpmi: libilmthread30-3.1.5-alt2.2 sisyphus+324124.100.1.1 1688379858 installed <13>Jan 20 05:27:19 rpmi: libopenexr30-3.1.5-alt2.2 sisyphus+324124.100.1.1 1688379858 installed <13>Jan 20 05:27:19 rpmi: python3-module-libcst-1.6.0-alt1 sisyphus+369370.100.2.2 1736853562 installed <13>Jan 20 05:27:19 rpmi: python3-module-aiosignal-1.3.2-alt1 sisyphus+369480.100.1.1 1736854528 installed <13>Jan 20 05:27:19 rpmi: python3-module-yarl-1.18.3-alt1 sisyphus+369529.100.2.1 1736876451 installed <13>Jan 20 05:27:19 rpmi: python3-module-build-1.2.2.post1-alt1 sisyphus+359163.100.2.1 1728313366 installed <13>Jan 20 05:27:19 rpmi: python3-module-runs-1.2.2-alt1 sisyphus+354658.2200.13.1 1723248163 installed <13>Jan 20 05:27:19 rpmi: python3-module-editor-1.6.6-alt1 sisyphus+354658.2300.20.1 1723501752 installed <13>Jan 20 05:27:19 rpmi: python3-module-wsproto-1.2.0-alt1 sisyphus+309644.100.1.2 1667834502 installed <13>Jan 20 05:27:19 rpmi: dbus-tools-1.16.0-alt2 sisyphus+369277.100.1.1 1736680018 installed <86>Jan 20 05:27:19 groupadd[1067470]: group added to /etc/group: name=messagebus, GID=999 <86>Jan 20 05:27:19 groupadd[1067470]: group added to /etc/gshadow: name=messagebus <86>Jan 20 05:27:19 groupadd[1067470]: new group: name=messagebus, GID=999 <86>Jan 20 05:27:19 useradd[1067495]: new user: name=messagebus, UID=999, GID=999, home=/run/dbus, shell=/dev/null, from=none <13>Jan 20 05:27:19 rpmi: dbus-1.16.0-alt2 sisyphus+369277.100.1.1 1736680018 installed <13>Jan 20 05:27:19 rpmi: kmod-32-alt1 sisyphus+357452.100.2.1 1727718007 installed <13>Jan 20 05:27:19 rpmi: libglslang15-1:15.0.0-alt1 sisyphus+365035.300.5.1 1734354607 installed <13>Jan 20 05:27:19 rpmi: libshaderc1-2024.3-alt0.1 sisyphus+365035.1100.5.1 1734355040 installed <13>Jan 20 05:27:19 rpmi: libOpenGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 20 05:27:19 rpmi: libhogweed6-3.9.1-alt1 sisyphus+322548.100.1.2 1686176879 installed <13>Jan 20 05:27:19 rpmi: libgnutls30-3.8.8-alt2 sisyphus+364832.100.1.1 1734007749 installed <13>Jan 20 05:27:19 rpmi: libngtcp2.16-1.10.0-alt1 sisyphus+366376.200.1.1 1735020753 installed <13>Jan 20 05:27:19 rpmi: libngtcp2_crypto_gnutls8-1.10.0-alt1 sisyphus+366376.200.1.1 1735020753 installed <13>Jan 20 05:27:19 rpmi: librttopo-1.1.0-alt1 sisyphus+288384.100.1.1 1635558056 installed <13>Jan 20 05:27:19 rpmi: libshout2-2.4.6-alt2 sisyphus+326035.1600.1.1 1690667383 installed <13>Jan 20 05:27:19 rpmi: libdvdnav-6.1.1-alt1 sisyphus+279367.100.1.1 1626478896 installed <13>Jan 20 05:27:19 rpmi: perl-File-Listing-6.16-alt1 sisyphus+325783.100.1.1 1690559356 installed <13>Jan 20 05:27:19 rpmi: tcl-8.6.13-alt1 sisyphus+310696.100.1.1 1669548266 installed <13>Jan 20 05:27:19 rpmi: python3-module-jupyter_core-5.7.2-alt1 sisyphus+342603.200.2.1 1710317793 installed <13>Jan 20 05:27:19 rpmi: python3-module-pip-wheel-24.3.1-alt1 sisyphus+361010.100.1.1 1730124542 installed <13>Jan 20 05:27:19 rpmi: python3-module-setuptools-wheel-1:75.8.0-alt1 sisyphus+368584.100.2.1 1736761327 installed <13>Jan 20 05:27:19 rpmi: python3-module-wheel-wheel-0.45.1-alt1 sisyphus+363326.100.2.1 1732609968 installed <13>Jan 20 05:27:19 rpmi: python3-module-system-seed-wheels-wheels-0.0.1-alt1 sisyphus+270533.400.6.1 1619683425 installed <13>Jan 20 05:27:19 rpmi: libamd3-7.8.2-alt1 sisyphus+370508.100.1.1 1737209895 installed <13>Jan 20 05:27:19 rpmi: libcamd3-7.8.2-alt1 sisyphus+370508.100.1.1 1737209895 installed <13>Jan 20 05:27:19 rpmi: libcolamd3-7.8.2-alt1 sisyphus+370508.100.1.1 1737209895 installed <13>Jan 20 05:27:19 rpmi: libccolamd3-7.8.2-alt1 sisyphus+370508.100.1.1 1737209895 installed <13>Jan 20 05:27:19 rpmi: libcgns-4.4.0-alt2 sisyphus+363657.100.1.1 1732882552 installed <13>Jan 20 05:27:19 rpmi: libhdf5-hl-310-1.14.3-alt3 sisyphus+356311.100.1.1 1724931027 installed <13>Jan 20 05:27:19 rpmi: libavc1394-0.5.4-alt2 sisyphus+284572.100.1.1 1630712939 installed <13>Jan 20 05:27:19 rpmi: python3-module-incremental-22.10.0-alt1 sisyphus+312706.100.1.1 1672404273 installed <13>Jan 20 05:27:19 rpmi: python3-module-alabaster-0.7.16-alt1 sisyphus+349698.100.1.1 1716897815 installed <13>Jan 20 05:27:19 rpmi: libhidapi-0.12.0-alt1_1 sisyphus+303213.100.1.1 1657034192 installed <13>Jan 20 05:27:19 rpmi: python3-module-cython-hidapi-0.14.0-alt1.1 sisyphus+333513.54340.73.1 1704651867 installed <13>Jan 20 05:27:19 rpmi: python3-module-serial-3.5-alt3 sisyphus+360600.100.2.1 1729786231 installed <13>Jan 20 05:27:19 rpmi: libvidstab-1.1.0-alt2.1 sisyphus+279558.100.1.2 1626596087 installed <13>Jan 20 05:27:19 rpmi: libsoundtouch-2.3.3-alt1 sisyphus+344043.100.1.1 1711799526 installed <13>Jan 20 05:27:19 rpmi: libimagequant-2.17.0-alt1_1 sisyphus+291138.100.1.1 1638394107 installed <13>Jan 20 05:27:19 rpmi: python3-module-pydantic-core-2.27.2-alt1 sisyphus+369598.200.1.1 1736932724 installed <13>Jan 20 05:27:19 rpmi: qt5-serialport-common-5.15.16-alt1 sisyphus+365342.700.2.2 1734819205 installed <13>Jan 20 05:27:19 rpmi: libqt5-serialport-5.15.16-alt1 sisyphus+365342.700.2.2 1734819205 installed <13>Jan 20 05:27:19 rpmi: qt5-multimedia-common-5.15.16-alt1 sisyphus+365342.600.2.2 1734819131 installed <13>Jan 20 05:27:19 rpmi: qt5-remoteobjects-common-5.15.16-alt1 sisyphus+365342.4300.2.2 1734826671 installed <13>Jan 20 05:27:19 rpmi: qt5-sensors-common-5.15.16-alt1 sisyphus+365342.1100.2.2 1734819581 installed <13>Jan 20 05:27:19 rpmi: qt5-svg-common-5.15.16-alt1 sisyphus+365342.1700.2.2 1734820101 installed <13>Jan 20 05:27:19 rpmi: qt5-webchannel-common-5.15.16-alt1 sisyphus+365342.1300.2.2 1734819701 installed <13>Jan 20 05:27:19 rpmi: qt5-websockets-common-5.15.16-alt1 sisyphus+365342.500.2.2 1734818894 installed <13>Jan 20 05:27:19 rpmi: qt5-x11extras-common-5.15.16-alt1 sisyphus+365342.1600.2.2 1734820032 installed <13>Jan 20 05:27:19 rpmi: qt5-xmlpatterns-common-5.15.16-alt1 sisyphus+369623.100.1.1 1736938969 installed <13>Jan 20 05:27:19 rpmi: libharu2.4-2.4.4-alt1 sisyphus+318026.300.13.2 1706786264 installed <13>Jan 20 05:27:19 rpmi: libyuv-0.0.1874-alt1 sisyphus+326054.40.2.1 1690679392 installed <13>Jan 20 05:27:19 rpmi: python3-module-websockets-14.1-alt1 sisyphus+369527.100.1.1 1736868330 installed <13>Jan 20 05:27:19 rpmi: python3-module-sanic-routing-23.12.0-alt1 sisyphus+352905.1200.13.1 1722262189 installed <13>Jan 20 05:27:19 rpmi: python3-module-tomlkit-0.13.2-alt1 sisyphus+358344.100.2.1 1727351286 installed <13>Jan 20 05:27:19 rpmi: python3-module-tomli-2.2.1-alt1 sisyphus+363592.100.1.1 1732803942 installed <13>Jan 20 05:27:19 rpmi: python3-module-poetry-alt-namespace-0.0.1-alt1 sisyphus+306728.100.1.1 1663083686 installed <13>Jan 20 05:27:19 rpmi: python3-module-pkginfo-1.12.0-alt1 sisyphus+363958.100.1.1 1733218573 installed <13>Jan 20 05:27:19 rpmi: python3-module-ptyprocess-0.7.0-alt1 sisyphus+283469.100.1.1 1629400504 installed <13>Jan 20 05:27:19 rpmi: python3-module-pexpect-4.9.0-alt1 sisyphus+341927.40.2.1 1709544794 installed <13>Jan 20 05:27:19 rpmi: python3-module-mypy_extensions-1.0.0-alt1 sisyphus+316350.100.2.1 1678357948 installed <13>Jan 20 05:27:20 rpmi: python3-module-mypy-1.14.1-alt1 sisyphus+368538.100.1.1 1736501568 installed <13>Jan 20 05:27:20 rpmi: python3-module-mdurl-0.1.2-alt1 sisyphus+318894.1000.3.1 1682420700 installed <13>Jan 20 05:27:20 rpmi: python3-module-uc-micro-py-1.0.3-alt1 sisyphus+341790.100.1.1 1709309103 installed <13>Jan 20 05:27:20 rpmi: python3-module-linkify-it-py-2.0.3-alt1 sisyphus+343902.100.1.1 1711708185 installed <13>Jan 20 05:27:20 rpmi: python3-module-markdown-it-3.0.0-alt2 sisyphus+365460.100.1.1 1734639341 installed <13>Jan 20 05:27:20 rpmi: python3-module-rich-13.9.4-alt1 sisyphus+361780.100.1.1 1730842428 installed <13>Jan 20 05:27:20 rpmi: python3-module-typer-0.15.1-alt1 sisyphus+369638.500.3.1 1737015642 installed <13>Jan 20 05:27:20 rpmi: python3-module-lark-1.2.2-alt1 sisyphus+358322.100.1.1 1727258177 installed <13>Jan 20 05:27:20 rpmi: python3-module-poetry-core-2.0.1-alt1 sisyphus+369488.100.1.1 1736855836 installed <13>Jan 20 05:27:20 rpmi: python3-module-pure-eval-0.2.3-alt1 sisyphus+353357.100.1.1 1721650016 installed <13>Jan 20 05:27:20 rpmi: python3-module-pyogg-0.6.14-alt1 sisyphus+367505.100.1.1 1735845349 installed <13>Jan 20 05:27:20 rpmi: python3-module-pyglet-1.5.30-alt1 sisyphus+367527.100.1.1 1735927191 installed <13>Jan 20 05:27:20 rpmi: python3-module-pyperclip-1.9.0-alt1 sisyphus+353859.100.1.1 1722231798 installed <13>Jan 20 05:27:20 rpmi: python3-module-pickleshare-0.7.5-alt3 sisyphus+339447.100.1.1 1706675898 installed <13>Jan 20 05:27:20 rpmi: python3-module-matplotlib-data-3.8.4-alt1 sisyphus+348763.100.1.1 1716481530 installed <13>Jan 20 05:27:20 rpmi: python3-module-railroad-diagrams-3.0.1-alt1 sisyphus+358318.100.1.1 1727257812 installed <13>Jan 20 05:27:20 rpmi: python3-module-pyparsing-3.2.1-alt1 sisyphus+368585.100.2.1 1736844670 installed <13>Jan 20 05:27:20 rpmi: python3-module-kiwisolver-1.4.8-alt1 sisyphus+366446.100.5.1 1735114509 installed <13>Jan 20 05:27:20 rpmi: python3-module-installer-0.7.0-alt1 sisyphus+318881.100.2.1 1681988183 installed <13>Jan 20 05:27:20 rpmi: python3-module-zipp-3.21.0-alt1 sisyphus+362195.100.2.1 1731487934 installed <13>Jan 20 05:27:20 rpmi: python3-module-importlib-metadata-8.5.0-alt1 sisyphus+357362.100.1.1 1726136861 installed <13>Jan 20 05:27:20 rpmi: python3-module-graphql-core-3.2.5-alt1 sisyphus+359796.100.1.1 1728971591 installed <13>Jan 20 05:27:20 rpmi: python3-module-filelock-3.16.1-alt1 sisyphus+357787.100.1.1 1726664660 installed <13>Jan 20 05:27:20 rpmi: python3-module-executing-2.1.0-alt3 sisyphus+369778.100.1.1 1737060283 installed <13>Jan 20 05:27:20 rpmi: python3-module-fastimport-0.9.14-alt2 sisyphus+318148.100.1.1 1680797712 installed <13>Jan 20 05:27:20 rpmi: python3-module-distlib-0.3.9-alt1 sisyphus+359423.100.1.1 1728557083 installed <13>Jan 20 05:27:20 rpmi: python3-module-virtualenv-20.29.0-alt1 sisyphus+369735.100.2.2 1737050270 installed <13>Jan 20 05:27:20 rpmi: python3-module-wrapt-1.17.2-alt1 sisyphus+369689.100.1.2 1736966077 installed <13>Jan 20 05:27:20 rpmi: python3-module-deprecated-1.2.15-alt1 sisyphus+362828.100.1.1 1731930864 installed <13>Jan 20 05:27:20 rpmi: python3-module-opentelemetry-api-1.27.0-alt1 sisyphus+356627.100.2.1 1725353252 installed <13>Jan 20 05:27:20 rpmi: python3-module-cycler-0.12.1-alt1 sisyphus+331222.100.1.1 1696668651 installed <13>Jan 20 05:27:20 rpmi: python3-module-crashtest-0.4.1-alt1 sisyphus+309874.100.1.1 1668207042 installed <13>Jan 20 05:27:20 rpmi: python3-module-watchdog-6.0.0-alt1 sisyphus+361834.100.1.1 1730891538 installed <13>Jan 20 05:27:20 rpmi: python3-module-readchar-4.1.0-alt1 sisyphus+354658.1600.13.1 1723248032 installed <13>Jan 20 05:27:20 rpmi: python3-module-msgpack-1.1.0-alt1 sisyphus+366518.100.1.1 1735151208 installed <13>Jan 20 05:27:20 rpmi: python3-module-snowballstemmer-2.2.0-alt1 sisyphus+319215.100.1.1 1682346633 installed <13>Jan 20 05:27:20 rpmi: python3-module-imagesize-1.4.1-alt1 sisyphus+318084.100.1.1 1680697673 installed <13>Jan 20 05:27:20 rpmi: python3-module-defusedxml-0.7.1-alt1 sisyphus+274841.2300.1.1 1624295691 installed <13>Jan 20 05:27:20 rpmi: python3-modules-curses-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Jan 20 05:27:20 rpmi: python3-module-blessed-1.17.10-alt1 sisyphus+255737.2200.16.1 1603347245 installed <13>Jan 20 05:27:20 rpmi: python3-module-inquirer-3.3.0-alt1 sisyphus+354658.2400.20.1 1723501784 installed <13>Jan 20 05:27:21 rpmi: python3-module-babel-1:2.15.0-alt1 sisyphus+353791.100.1.1 1722073848 installed <13>Jan 20 05:27:21 rpmi: python3-module-cramjam-2.9.0-alt2 sisyphus+365297.160.5.1 1734957683 installed <13>Jan 20 05:27:21 rpmi: python3-module-snappy-0.7.2-alt1 sisyphus+364632.500.2.1 1733915558 installed <13>Jan 20 05:27:21 rpmi: python3-module-curve25519-1.3-alt3 sisyphus+333513.11400.71.1 1704540168 installed <13>Jan 20 05:27:21 rpmi: python3-module-pycryptodome-3.21.0-alt1 sisyphus+358749.100.1.1 1727777979 installed <13>Jan 20 05:27:21 rpmi: python3-module-asttokens-3.0.0-alt1 sisyphus+363799.100.1.1 1733123348 installed <13>Jan 20 05:27:21 rpmi: python3-module-stack-data-0.6.3-alt1 sisyphus+348457.200.1.1 1716137744 installed <13>Jan 20 05:27:21 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Jan 20 05:27:21 rpmi: python3-module-pytest-8.3.4-alt1 sisyphus+363889.100.1.1 1733152874 installed <13>Jan 20 05:27:21 rpmi: python3-module-anyio-4.8.0-alt1 sisyphus+369638.100.3.3 1737040213 installed <13>Jan 20 05:27:21 rpmi: python3-module-starlette-0.45.2-alt1 sisyphus+369638.400.3.3 1737040315 installed <13>Jan 20 05:27:21 rpmi: python3-module-faker-33.3.1-alt1 sisyphus+369306.100.1.1 1736705241 installed <13>Jan 20 05:27:21 rpmi: python3-module-annotated-types-0.7.0-alt1 sisyphus+349932.100.1.1 1717043663 installed <13>Jan 20 05:27:21 rpmi: python3-module-pydantic-2.10.5-alt1 sisyphus+369598.300.1.1 1736932856 installed <13>Jan 20 05:27:21 rpmi: python3-module-fastapi-0.115.6-alt2 sisyphus+369451.100.2.1 1736869198 installed <13>Jan 20 05:27:21 rpmi: python3-module-aiofiles-23.1.0-alt1 sisyphus+320282.100.1.1 1683807546 installed <13>Jan 20 05:27:21 rpmi: python3-module-PyQt5-sip-12.15.0-alt1 sisyphus+361329.100.1.1 1730393977 installed <13>Jan 20 05:27:21 rpmi: python3-module-olefile-0.46-alt2 sisyphus+288126.100.1.1 1635163866 installed <13>Jan 20 05:27:22 rpmi: python3-module-OpenGL-3.1.7-alt3 sisyphus+366428.100.1.1 1735055193 installed <13>Jan 20 05:27:22 rpmi: python3-module-charset-normalizer-3.2.0-alt1 sisyphus+347396.200.2.1 1714733155 installed <13>Jan 20 05:27:22 rpmi: python3-module-requests-2.32.3-alt1 sisyphus+349946.100.1.1 1717059877 installed <13>Jan 20 05:27:22 rpmi: python3-module-cachecontrol-0.14.2-alt1 sisyphus+368327.100.1.1 1736299149 installed <13>Jan 20 05:27:22 rpmi: python3-module-hpack-4.0.0-alt1 sisyphus+270376.200.1.1 1618956626 installed <13>Jan 20 05:27:22 rpmi: python3-module-hyperframe-6.0.1-alt1 sisyphus+270376.300.2.1 1618957001 installed <13>Jan 20 05:27:22 rpmi: python3-module-h2-4.1.0-alt1 sisyphus+325714.100.2.2 1690478873 installed <13>Jan 20 05:27:22 rpmi: python3-module-hypercorn-0.17.3-alt1 sisyphus+349867.100.1.1 1716975339 installed <13>Jan 20 05:27:22 rpmi: python3-module-quart-0.20.0-alt1 sisyphus+366408.100.2.1 1735120827 installed <13>Jan 20 05:27:22 rpmi: python3-module-constantly-15.1.0-alt7 sisyphus+338906.100.1.1 1706107088 installed <13>Jan 20 05:27:22 rpmi: python3-module-appdirs-1.4.4-alt2 sisyphus+359005.100.1.1 1728036426 installed <13>Jan 20 05:27:22 rpmi: python3-module-certifi-2024.12.14-alt1 sisyphus+369729.200.2.2 1737050219 installed <13>Jan 20 05:27:22 rpmi: python3-module-openid-3.2.0-alt1 sisyphus+278049.100.2.1 1625998936 installed <13>Jan 20 05:27:22 rpmi: python3-module-z3c-3.0.0-alt4 sisyphus+284857.200.1.1 1631109149 installed <13>Jan 20 05:27:22 rpmi: python3-module-zc-1.0.0-alt7 sisyphus+284857.100.1.1 1631109117 installed <13>Jan 20 05:27:22 rpmi: python3-module-zope-3.3.0-alt9 sisyphus+281937.200.4.1 1628175900 installed <13>Jan 20 05:27:22 rpmi: python3-module-zope.event-5.0-alt1.1 sisyphus+325755.140.2.1 1690991538 installed <13>Jan 20 05:27:22 rpmi: python3-module-psutil-5.9.8-alt1 sisyphus+341001.100.1.1 1708284056 installed <13>Jan 20 05:27:22 rpmi: python3-module-objgraph-3.6.2-alt1 sisyphus+359468.100.1.1 1728573508 installed <13>Jan 20 05:27:22 rpmi: python3-module-greenlet-3.1.1-alt1 sisyphus+358881.100.1.1 1727933137 installed <13>Jan 20 05:27:22 rpmi: python3-module-sortedcontainers-2.4.0-alt1 sisyphus+272042.100.1.1 1621262424 installed <13>Jan 20 05:27:22 rpmi: python3-module-astor-0.8.1-alt1.1 sisyphus+315877.100.1.1 1677481862 installed <13>Jan 20 05:27:22 rpmi: python3-module-pycparser-2.21-alt1.1 sisyphus+309935.7300.4.1 1668527005 installed <13>Jan 20 05:27:22 rpmi: python3-module-cffi-1.17.1-alt1 sisyphus+357396.100.1.1 1726156476 installed <13>Jan 20 05:27:22 rpmi: python3-module-cryptography-44.0.0-alt1 sisyphus+368451.100.1.1 1736436050 installed <13>Jan 20 05:27:22 rpmi: python3-module-openssl-24.3.0-alt1 sisyphus+368451.200.1.1 1736436083 installed <13>Jan 20 05:27:22 rpmi: python3-module-requests_toolbelt-1.0.0-alt3 sisyphus+338996.100.1.1 1706201427 installed <13>Jan 20 05:27:22 rpmi: python3-module-trio-0.28.0-alt1 sisyphus+367439.100.1.1 1735561525 installed <13>Jan 20 05:27:23 rpmi: python3-module-dns-1:2.6.1-alt1 sisyphus+341811.20.3.1 1709382170 installed <13>Jan 20 05:27:23 rpmi: python3-module-pycares-4.4.0-alt1 sisyphus+347421.100.1.1 1714743573 installed <13>Jan 20 05:27:23 rpmi: python3-module-aiohappyeyeballs-2.4.4-alt1 sisyphus+369620.100.1.1 1736938218 installed <13>Jan 20 05:27:23 rpmi: python3-module-zombie-imp-0.0.2-alt1 sisyphus+339293.100.1.1 1706537230 installed <13>Jan 20 05:27:23 rpmi: python3-module-wheel-0.45.1-alt1 sisyphus+363326.100.2.1 1732609968 installed <13>Jan 20 05:27:23 rpmi: python3-module-jaraco.context-6.0.1-alt1 sisyphus+357809.300.1.1 1726769204 installed <13>Jan 20 05:27:23 rpmi: python3-module-autocommand-2.2.2-alt1.1 sisyphus+339714.100.1.1 1706968174 installed <13>Jan 20 05:27:23 rpmi: python3-module-jaraco.text-4.0.0-alt1 sisyphus+353877.400.2.1 1722250727 installed <13>Jan 20 05:27:23 rpmi: python3-module-jaraco.collections-5.1.0-alt1 sisyphus+357809.200.1.1 1726769173 installed <13>Jan 20 05:27:23 rpmi: python3-module-pkg_resources-1:75.8.0-alt1 sisyphus+368584.100.2.1 1736761327 installed <13>Jan 20 05:27:23 rpmi: python3-module-tracerite-1.1.1-alt1 sisyphus+354562.1000.3.1 1723069812 installed <13>Jan 20 05:27:23 rpmi: python3-module-Cheetah-3.4.0-alt1 sisyphus+364093.100.1.1 1733348862 installed <13>Jan 20 05:27:23 rpmi: python3-module-paste-3.10.1-alt1 sisyphus+364772.70.5.1 1733996555 installed <13>Jan 20 05:27:23 rpmi: python3-module-PasteDeploy-1:3.1-alt1 sisyphus+343658.100.1.1 1711471990 installed <13>Jan 20 05:27:23 rpmi: python3-module-PasteScript-1:3.6.0-alt1 sisyphus+364772.100.5.1 1733996584 installed <13>Jan 20 05:27:23 rpmi: python-sphinx-objects.inv-1:2.3.14.20241219-alt1 sisyphus+365435.100.1.1 1734616744 installed <13>Jan 20 05:27:23 rpmi: python3-module-sphinxcontrib-applehelp-2.0.0-alt1 sisyphus+353872.100.1.1 1722243556 installed <13>Jan 20 05:27:23 rpmi: python3-module-sphinxcontrib-devhelp-2.0.0-alt1 sisyphus+353872.200.1.1 1722243589 installed <13>Jan 20 05:27:23 rpmi: python3-module-sphinxcontrib-jquery-4.1-alt3 sisyphus+339023.100.1.1 1706234262 installed <13>Jan 20 05:27:23 rpmi: python3-module-sphinxcontrib-jsmath-1.0.1-alt2 sisyphus+348403.100.1.1 1716017686 installed <13>Jan 20 05:27:23 rpmi: python3-module-sphinxcontrib-htmlhelp-2.1.0-alt1 sisyphus+353893.100.2.1 1722416845 installed <13>Jan 20 05:27:23 rpmi: python3-module-sphinxcontrib-serializinghtml-2.0.0-alt1 sisyphus+361088.100.1.1 1730215552 installed <13>Jan 20 05:27:23 rpmi: python3-module-sphinxcontrib-qthelp-2.0.0-alt1 sisyphus+353872.300.1.1 1722243619 installed <13>Jan 20 05:27:23 rpmi: python3-module-sphinx-sphinx-build-symlink-1:7.4.7-alt3 sisyphus+354020.100.1.1 1722434734 installed <13>Jan 20 05:27:23 rpmi: python3-module-sphinx-1:7.4.7-alt3 sisyphus+354020.100.1.1 1722434734 installed <13>Jan 20 05:27:24 rpmi: python3-module-botocore-1.36.0-alt1 sisyphus+369727.100.2.1 1737039539 installed <13>Jan 20 05:27:24 rpmi: python3-module-s3transfer-0.11.1-alt1 sisyphus+369804.100.1.1 1737103629 installed <13>Jan 20 05:27:24 rpmi: python3-module-boto3-1.36.0-alt1 sisyphus+369727.300.2.2 1737047558 installed <13>Jan 20 05:27:24 rpmi: python3-module-chalice-1.31.2-alt1 sisyphus+354658.2460.20.1 1723501854 installed <13>Jan 20 05:27:24 rpmi: libuv-1.49.2-alt1 sisyphus+369779.100.1.1 1737060735 installed <13>Jan 20 05:27:24 rpmi: libtinfo-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Jan 20 05:27:24 rpmi: libncurses-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486705 installed <13>Jan 20 05:27:25 rpmi: python3-dev-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Jan 20 05:27:25 rpmi: python3-module-setuptools-1:75.8.0-alt1 sisyphus+368584.100.2.1 1736761327 installed <13>Jan 20 05:27:25 rpmi: python3-module-Cython-3.0.11-alt1 sisyphus+359096.200.2.1 1728123474 installed <13>Jan 20 05:27:25 rpmi: libmaxminddb-1.12.2-alt1 sisyphus+370495.100.1.1 1737199359 installed <13>Jan 20 05:27:25 rpmi: python3-module-MaxMindDB-2.6.3-alt1 sisyphus+369280.100.1.1 1736683511 installed <13>Jan 20 05:27:25 rpmi: libhttp-parser-2.9.4-alt2 sisyphus+279479.100.1.1 1626549243 installed <13>Jan 20 05:27:25 rpmi: python3-module-httptools-0.6.4-alt1 sisyphus+360443.100.1.1 1729609752 installed <13>Jan 20 05:27:25 rpmi: python3-module-sanic-24.6.0-alt2 sisyphus+354657.400.6.1 1723124754 installed <13>Jan 20 05:27:25 rpmi: libgirepository1.0-1.82.0-alt1 sisyphus+357735.200.3.1 1726641712 installed <13>Jan 20 05:27:25 rpmi: python3-module-pygobject3-nox-3.50.0-alt2.1 sisyphus+368581.100.1.1 1736519916 installed <13>Jan 20 05:27:25 rpmi: libflatbuffers-24.3.25-alt1 sisyphus+356841.100.1.1 1725475607 installed <13>Jan 20 05:27:25 rpmi: python3-module-flatbuffers-24.3.25-alt1 sisyphus+356841.100.1.1 1725475607 installed <13>Jan 20 05:27:25 rpmi: libev4-4.33-alt3 sisyphus+334335.340.4.1 1699912675 installed <13>Jan 20 05:27:25 rpmi: python3-module-gevent-24.10.3-alt1 sisyphus+361451.100.1.1 1730467200 installed <13>Jan 20 05:27:25 rpmi: python3-module-dulwich-0.22.1-alt2 sisyphus+356780.100.1.1 1725441156 installed <13>Jan 20 05:27:25 rpmi: python3-module-poetry_plugin_export-1.8.0-alt1 sisyphus+348028.100.1.1 1715669346 installed <13>Jan 20 05:27:25 rpmi: python3-module-poetry-1.8.5-alt1 sisyphus+364334.100.1.1 1733523011 installed <13>Jan 20 05:27:25 rpmi: libmpeg2-0.5.1-alt4.svn20120718 sisyphus+285823.100.1.1 1632416716 installed <13>Jan 20 05:27:25 rpmi: libcdio-2.1.0-alt1 sisyphus+328181.400.2.1 1693321803 installed <13>Jan 20 05:27:25 rpmi: liba52-0.8.0-alt1 sisyphus+349892.100.1.1 1716987412 installed <13>Jan 20 05:27:25 rpmi: libwavpack-5.7.0-alt1 sisyphus+342915.100.1.1 1710636743 installed <13>Jan 20 05:27:25 rpmi: libtag-1.12-alt1 sisyphus+277260.100.1.1 1625423537 installed <13>Jan 20 05:27:25 rpmi: libpcre3-8.45-alt2 sisyphus+369650.4200.9.1 1736953780 installed <13>Jan 20 05:27:25 rpmi: libslang2-2.3.3-alt1 sisyphus+314492.100.1.1 1675240386 installed <13>Jan 20 05:27:25 rpmi: libvisual0.4-0.4.0-alt3 sisyphus+276250.100.1.2 1624927462 installed <13>Jan 20 05:27:25 rpmi: libgraphene-1.10.8-alt1 sisyphus+296855.100.1.1 1647633383 installed <13>Jan 20 05:27:25 rpmi: libcdparanoia-1:10.2-alt6 sisyphus+346090.200.2.1 1716245892 installed <13>Jan 20 05:27:25 rpmi: libvo-amrwbenc-0.1.3-alt1 sisyphus+275410.100.1.2 1624504610 installed <13>Jan 20 05:27:25 rpmi: libvo-aacenc-0.1.3-alt2 sisyphus+285812.100.1.1 1632410909 installed <13>Jan 20 05:27:25 rpmi: libsrtp2-2.6.0-alt1 sisyphus+341594.100.1.1 1709111211 installed <13>Jan 20 05:27:25 rpmi: libtbb-2021.13.0-alt1.1 sisyphus+366456.100.1.1 1735114834 installed <13>Jan 20 05:27:25 rpmi: libprotobuf32-3.21.12-alt5 sisyphus+353063.24400.30.1 1723234273 installed <13>Jan 20 05:27:25 rpmi: libmodplug-0.8.9.0-alt1 sisyphus+275375.100.2.2 1624495419 installed <13>Jan 20 05:27:25 rpmi: libyajl-2.1.0-alt3 sisyphus+322972.100.1.1 1686724493 installed <13>Jan 20 05:27:25 rpmi: libxslt-1.1.39-alt1 sisyphus+349406.100.1.1 1716751806 installed <13>Jan 20 05:27:26 rpmi: libepoxy-1.5.10-alt1 sisyphus+296853.200.2.1 1647631866 installed <13>Jan 20 05:27:26 rpmi: usbids-20240206-alt1 sisyphus+339943.100.1.1 1707270512 installed <13>Jan 20 05:27:26 rpmi: pciids-20250114-alt1 sisyphus+369538.100.1.1 1736872375 installed <13>Jan 20 05:27:26 rpmi: hwdata-0.384-alt1 sisyphus+354460.100.1.1 1722898493 installed <13>Jan 20 05:27:26 rpmi: gtk+3-themes-incompatible-3.20-alt3 1461944560 installed <13>Jan 20 05:27:26 rpmi: perl-Try-Tiny-0.31-alt1 sisyphus+290597.100.1.1 1637915507 installed <13>Jan 20 05:27:26 rpmi: perl-IO-Socket-IP-0.42-alt1 sisyphus+325815.100.1.2 1690571193 installed <13>Jan 20 05:27:26 rpmi: perl-Module-Load-0.36-alt1 sisyphus+258992.100.1.1 1601543407 installed <13>Jan 20 05:27:26 rpmi: perl-Compress-Raw-Bzip2-2.210-alt1 sisyphus+343108.100.1.3 1710881036 installed <13>Jan 20 05:27:26 rpmi: perl-IO-Compress-Brotli-2:0.004001-alt3 sisyphus+335067.1200.1.1 1700901589 installed <13>Jan 20 05:27:26 rpmi: perl-Clone-0.46-alt1 sisyphus+335067.1100.1.1 1700901562 installed <13>Jan 20 05:27:26 rpmi: perl-HTML-Tagset-3.24-alt1 sisyphus+343117.100.1.3 1710883587 installed <13>Jan 20 05:27:26 rpmi: perl-Term-ANSIColor-5.01-alt1 sisyphus+244783.100.1.2 1579747505 installed <13>Jan 20 05:27:26 rpmi: perl-Data-Dump-1.25-alt1 sisyphus+276551.100.1.1 1625126880 installed <13>Jan 20 05:27:26 rpmi: perl-Filter-1.64-alt1 sisyphus+335067.400.1.1 1700901412 installed <13>Jan 20 05:27:26 rpmi: perl-Encode-3.21-alt1 sisyphus+343095.100.1.1 1710875477 installed <13>Jan 20 05:27:26 rpmi: perl-URI-5.27-alt1 sisyphus+340901.100.1.1 1708180683 installed <13>Jan 20 05:27:26 rpmi: perl-IO-Compress-2.206-alt1 sisyphus+325819.100.1.1 1690563199 installed <13>Jan 20 05:27:26 rpmi: perl-Net-HTTP-6.23-alt1 sisyphus+323470.100.1.1 1687422469 installed <13>Jan 20 05:27:26 rpmi: perl-HTML-Parser-3.82-alt1 sisyphus+343116.100.1.3 1710883258 installed <13>Jan 20 05:27:26 rpmi: perl-WWW-RobotRules-6.02-alt1 1329756211 installed <13>Jan 20 05:27:26 rpmi: perl-Encode-Locale-1.05-alt1 1444608613 installed <13>Jan 20 05:27:26 rpmi: perl-IO-HTML-1.004-alt1 sisyphus+258983.100.1.1 1601542619 installed <13>Jan 20 05:27:26 rpmi: perl-HTTP-Message-6.45-alt1 sisyphus+330728.100.1.1 1696162276 installed <13>Jan 20 05:27:26 rpmi: perl-HTTP-Negotiate-6.01-alt1 1329760563 installed <13>Jan 20 05:27:26 rpmi: perl-libwww-6.77-alt1 sisyphus+343120.100.1.2 1710884405 installed <13>Jan 20 05:27:26 rpmi: perl-XML-LibXML-2.0210-alt8 sisyphus+355798.100.1.1 1724340088 installed <13>Jan 20 05:27:26 rpmi: perl-XML-SAX-1.02-alt1 sisyphus+232322.100.1.1 1560758406 installed <13>Jan 20 05:27:26 rpmi: perl-XML-Simple-2.25-alt2 sisyphus+257498.100.1.1 1599324034 installed <13>Jan 20 05:27:26 rpmi: icon-naming-utils-0.8.90-alt1 sisyphus+276851.100.1.1 1625243947 installed <13>Jan 20 05:27:26 rpmi: icon-theme-adwaita-47.0-alt1 sisyphus+357735.1000.3.1 1726642413 installed <13>Jan 20 05:27:26 rpmi: libmysofa-1.3.3-alt1 sisyphus+360234.100.1.1 1729426691 installed <13>Jan 20 05:27:26 rpmi: libldac2-2.0.2.3-alt0.1 sisyphus+278007.100.1.2 1625973044 installed <13>Jan 20 05:27:26 rpmi: libsigc++2-2.12.1-alt1 sisyphus+331046.200.2.1 1696511642 installed <13>Jan 20 05:27:26 rpmi: libconfig-c++11-1.7.3-alt1 sisyphus+356893.2177.17.1 1725864292 installed <13>Jan 20 05:27:26 rpmi: libtdb-1.4.10-alt1 sisyphus+342425.100.8.1 1714748986 installed <13>Jan 20 05:27:26 rpmi: libasyncns-0.8-alt2.qa1 sisyphus+275091.100.1.1 1624402241 installed <13>Jan 20 05:27:26 rpmi: sound-theme-freedesktop-0.8-alt1 sisyphus+277010.100.1.2 1625346634 installed <13>Jan 20 05:27:26 rpmi: libgtest-1.15.2-alt1 sisyphus+364140.100.8.1 1733730026 installed <13>Jan 20 05:27:26 rpmi: libevent2.1-2.1.12-alt1 sisyphus+324359.3500.11.1 1689364661 installed <13>Jan 20 05:27:26 rpmi: libbluez-5.79-alt1 sisyphus+362585.400.4.1 1731678491 installed <13>Jan 20 05:27:26 rpmi: libfaad2-2.11.1-alt1 sisyphus+338260.100.2.2 1705755212 installed <13>Jan 20 05:27:26 rpmi: libfaac0-1.28-alt2 sisyphus+346184.200.2.1 1716351469 installed <13>Jan 20 05:27:26 rpmi: libdca0-0.0.5-alt4.qa1 sisyphus+275349.100.1.2 1624487408 installed <13>Jan 20 05:27:26 rpmi: libzxing-cpp-2.3.0-alt3 sisyphus+368250.100.1.1 1736141963 installed <13>Jan 20 05:27:26 rpmi: librabbitmq-c4-0.15.0-alt1 sisyphus+363621.100.1.1 1732865039 installed <13>Jan 20 05:27:26 rpmi: libgme-0.6.3-alt2 sisyphus+293048.100.1.1 1641452306 installed <13>Jan 20 05:27:26 rpmi: libudfread-1.1.2-alt2 sisyphus+286325.100.1.1 1633263312 installed <13>Jan 20 05:27:26 rpmi: libzimg2-3.0.5-alt1 sisyphus+324805.100.1.1 1689254328 installed <13>Jan 20 05:27:26 rpmi: libfftw3-common-3.3.10-alt2 sisyphus+363193.200.2.1 1732292771 installed <13>Jan 20 05:27:26 rpmi: libfftw3-3.3.10-alt2 sisyphus+363193.200.2.1 1732292771 installed <13>Jan 20 05:27:26 rpmi: libchromaprint1-1.5.1-alt1 sisyphus+346100.200.2.1 1716252063 installed <13>Jan 20 05:27:26 rpmi: librubberband3-4.0.0-alt1 sisyphus+363577.100.1.1 1732799669 installed <13>Jan 20 05:27:26 rpmi: vulkan-filesystem-1.3.296-alt1 sisyphus+365035.1000.5.1 1734354968 installed <13>Jan 20 05:27:26 rpmi: libvulkan1-1.3.296-alt1 sisyphus+365035.1000.5.1 1734354968 installed <13>Jan 20 05:27:26 rpmi: libdovi3-2.1.3-alt1 sisyphus+365507.100.1.1 1734692980 installed <13>Jan 20 05:27:26 rpmi: libplacebo338-6.338.2-alt0.2 sisyphus+341163.100.1.1 1708438285 installed <13>Jan 20 05:27:26 rpmi: libsoxr-0.1.3-alt1.1 sisyphus+317908.100.1.1 1680415073 installed <13>Jan 20 05:27:26 rpmi: libxvid-1.3.7-alt1 sisyphus+292833.100.1.1 1640949610 installed <13>Jan 20 05:27:26 rpmi: libsnappy-1.1.7-alt1 sisyphus+276400.100.1.2 1625016393 installed <13>Jan 20 05:27:26 rpmi: libdatrie-0.2.13-alt1_7 sisyphus+328221.100.1.1 1693336966 installed <13>Jan 20 05:27:26 rpmi: libthai-0.1.29-alt1_6 sisyphus+328230.100.1.2 1693348044 installed <13>Jan 20 05:27:26 rpmi: libopencore-amrwb0-0.1.6-alt1 sisyphus+307923.100.1.1 1665032483 installed <13>Jan 20 05:27:26 rpmi: libopencore-amrnb0-0.1.6-alt1 sisyphus+307923.100.1.1 1665032483 installed <13>Jan 20 05:27:26 rpmi: libcodec2_1.2-1.2.0-alt1 sisyphus+340564.40.2.1 1707820763 installed <13>Jan 20 05:27:26 rpmi: gobject-introspection-1.82.0-alt1 sisyphus+357735.200.3.1 1726641712 installed <13>Jan 20 05:27:26 rpmi: libpugixml-1.15-alt1 sisyphus+369272.100.1.1 1736656920 installed <13>Jan 20 05:27:26 rpmi: libdicom-1.0.5-alt1 sisyphus+331812.100.1.1 1697345723 installed <13>Jan 20 05:27:26 rpmi: libjsoncpp24-1.9.4-alt2 sisyphus+346331.200.2.1 1716448551 installed <13>Jan 20 05:27:26 rpmi: libxerces-c-3.2.5-alt1 sisyphus+337156.100.1.1 1703464407 installed <13>Jan 20 05:27:26 rpmi: libpixman-3:0.44.2-alt1 sisyphus+364211.100.1.1 1733467622 installed <13>Jan 20 05:27:26 rpmi: libnpth-1.6.0.20.g7e45b50-alt3 sisyphus+278566.100.1.1 1626114690 installed <13>Jan 20 05:27:26 rpmi: libksba-1.6.4-alt1 sisyphus+327218.400.1.1 1692093956 installed <13>Jan 20 05:27:26 rpmi: gpgme-common-1.24.1-alt1 sisyphus+365199.100.1.1 1734364569 installed <13>Jan 20 05:27:26 rpmi: poppler-data-0.4.12-alt1 sisyphus+322151.100.1.1 1685438511 installed <13>Jan 20 05:27:27 rpmi: libmysqlclient21-8.0.40-alt1 sisyphus+360277.100.1.1 1729512681 installed <13>Jan 20 05:27:27 rpmi: libnuma-2.0.19-alt1 sisyphus+363830.100.1.1 1733131852 installed <13>Jan 20 05:27:27 rpmi: libx265-199-3.5-alt1.1 sisyphus+277560.100.1.1 1625697230 installed <13>Jan 20 05:27:27 rpmi: libgdk-pixbuf-locales-2.42.12-alt1 sisyphus+348142.100.1.1 1715791856 installed <13>Jan 20 05:27:27 rpmi: libde265-1.0.15-alt1 sisyphus+337190.100.1.1 1703502096 installed <13>Jan 20 05:27:27 rpmi: libdeflate-1.23-alt1 sisyphus+366443.100.2.1 1735140380 installed <13>Jan 20 05:27:27 rpmi: libtiff5-4.4.0-alt4 sisyphus+322581.100.1.2 1686180089 installed <13>Jan 20 05:27:27 rpmi: libxblas-1.0.248-alt2 sisyphus+285045.40.2.1 1631388330 installed <13>Jan 20 05:27:27 rpmi: ocl-icd-2.3.2-alt1 sisyphus+335648.100.1.1 1701640049 installed <13>Jan 20 05:27:27 rpmi: libfmt11-1:11.1.2-alt1 sisyphus+369343.100.1.1 1736753557 installed <13>Jan 20 05:27:27 rpmi: libarchive13-3.7.5-alt2 sisyphus+358189.100.1.1 1727162763 installed <13>Jan 20 05:27:27 rpmi: libwacom-data-2.14.0-alt1 sisyphus+364131.100.1.1 1733397189 installed <13>Jan 20 05:27:27 rpmi: python3-module-libevdev-0.11-alt1 sisyphus+300877.100.1.1 1653893962 installed <13>Jan 20 05:27:27 rpmi: python3-module-pyudev-0.24.3-alt1 sisyphus+347852.100.1.1 1715497013 installed <13>Jan 20 05:27:27 rpmi: libwacom-2.14.0-alt1 sisyphus+364131.100.1.1 1733397189 installed <13>Jan 20 05:27:27 rpmi: libinput-1.27.1-alt1 sisyphus+368278.100.1.1 1736170210 installed <13>Jan 20 05:27:27 rpmi: libduktape207-2.7.0-alt3 sisyphus+352341.100.1.1 1720324462 installed <13>Jan 20 05:27:27 rpmi: libssh2-1.11.0-alt2 sisyphus+339356.100.1.1 1706593137 installed <13>Jan 20 05:27:27 rpmi: publicsuffix-list-dafsa-20240911-alt1 sisyphus+357399.100.1.1 1726160479 installed <13>Jan 20 05:27:27 rpmi: libpsl-0.21.5-alt1 sisyphus+338474.100.1.1 1705684769 installed <13>Jan 20 05:27:27 rpmi: libnghttp3.9-1.7.0-alt1 sisyphus+366376.100.1.1 1735020696 installed <13>Jan 20 05:27:27 rpmi: libnghttp2-1.64.0-alt1 sisyphus+363795.200.2.1 1733118555 installed <13>Jan 20 05:27:27 rpmi: openldap-common-2.6.9-alt2 sisyphus+367501.300.4.1 1735841751 installed <13>Jan 20 05:27:27 rpmi: libntlm-1.5-alt1 sisyphus+278100.3300.1.1 1626058899 installed <13>Jan 20 05:27:27 rpmi: libidn-1.37-alt2 sisyphus+300849.100.1.1 1653769687 installed <13>Jan 20 05:27:27 rpmi: libverto-0.3.2-alt1_1 sisyphus+321176.2200.10.2 1684803947 installed <13>Jan 20 05:27:27 rpmi: liblmdb-0.9.33-alt1 sisyphus+360625.100.1.1 1729819640 installed <13>Jan 20 05:27:27 rpmi: libkeyutils-1.6.3-alt1 sisyphus+346336.200.2.2 1716472658 installed <13>Jan 20 05:27:27 rpmi: libcom_err-1.47.1.0.10.ad56-alt2 sisyphus+363497.200.3.1 1732729908 installed <86>Jan 20 05:27:27 groupadd[1084466]: group added to /etc/group: name=_keytab, GID=998 <86>Jan 20 05:27:27 groupadd[1084466]: group added to /etc/gshadow: name=_keytab <86>Jan 20 05:27:27 groupadd[1084466]: new group: name=_keytab, GID=998 <13>Jan 20 05:27:27 rpmi: libkrb5-1.21.3-alt2 sisyphus+351857.100.1.1 1719735141 installed <13>Jan 20 05:27:27 rpmi: libcups-2.4.11-alt1 sisyphus+359120.200.2.1 1728202635 installed <13>Jan 20 05:27:27 rpmi: libgsasl18-2.2.1-alt2 sisyphus+359713.200.2.1 1728905430 installed <86>Jan 20 05:27:27 groupadd[1084704]: group added to /etc/group: name=sasl, GID=997 <86>Jan 20 05:27:27 groupadd[1084704]: group added to /etc/gshadow: name=sasl <86>Jan 20 05:27:27 groupadd[1084704]: new group: name=sasl, GID=997 <13>Jan 20 05:27:27 rpmi: libsasl2-3-2.1.28-alt2.1 sisyphus+367419.100.1.1 1735482560 installed <13>Jan 20 05:27:27 rpmi: libldap2-2.6.9-alt2 sisyphus+367501.300.4.1 1735841751 installed <13>Jan 20 05:27:27 rpmi: libpq5-17.2-alt1 sisyphus+362974.100.1.1 1732098488 installed <13>Jan 20 05:27:27 rpmi: python3-module-psycopg2-2.9.10-alt1 sisyphus+361099.100.1.1 1730221764 installed <13>Jan 20 05:27:27 rpmi: python3-module-eventlet-0.38.2-alt1 sisyphus+365048.100.1.1 1734193970 installed <86>Jan 20 05:27:27 groupadd[1084963]: group added to /etc/group: name=_gnupg, GID=996 <86>Jan 20 05:27:27 groupadd[1084963]: group added to /etc/gshadow: name=_gnupg <86>Jan 20 05:27:27 groupadd[1084963]: new group: name=_gnupg, GID=996 <13>Jan 20 05:27:27 rpmi: gnupg2-2.4.3-alt1 sisyphus+346255.200.2.1 1716418264 installed <13>Jan 20 05:27:27 rpmi: libgpgme11-1.24.1-alt1 sisyphus+365199.100.1.1 1734364569 installed <13>Jan 20 05:27:27 rpmi: libgpgmepp6-1.24.1-alt1 sisyphus+365199.100.1.1 1734364569 installed <13>Jan 20 05:27:27 rpmi: libssh-0.10.6-alt1 sisyphus+338050.100.1.2 1705656358 installed <13>Jan 20 05:27:27 rpmi: libneon-0.32.5-alt1 sisyphus+337867.100.1.2 1705641062 installed <13>Jan 20 05:27:27 rpmi: python3-module-gssapi-1.9.0-alt1 sisyphus+359349.100.1.1 1728472724 installed <13>Jan 20 05:27:27 rpmi: python3-module-asyncssh-2.19.0-alt1 sisyphus+365262.100.1.1 1734434344 installed <13>Jan 20 05:27:27 rpmi: python3-module-prompt_toolkit-3.0.48-alt1 sisyphus+358452.100.1.1 1727370189 installed <13>Jan 20 05:27:27 rpmi: libgraphite2-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605111 installed <13>Jan 20 05:27:27 rpmi: libbrotlicommon-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Jan 20 05:27:27 rpmi: libbrotlidec-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Jan 20 05:27:27 rpmi: libharfbuzz-10.2.0-alt1 sisyphus+369262.100.1.1 1736624755 installed <13>Jan 20 05:27:27 rpmi: libfreetype-2.13.3-alt1 sisyphus+355656.100.1.1 1724221064 installed <13>Jan 20 05:27:27 rpmi: libfontconfig1-2.15.0-alt1 sisyphus+355771.100.2.3 1724337298 installed <13>Jan 20 05:27:28 rpmi: libcurl-8.11.1-alt1 sisyphus+364692.100.1.1 1733905204 installed <13>Jan 20 05:27:28 rpmi: libproj-9.4.0-alt1 sisyphus+347206.100.1.1 1714462058 installed <13>Jan 20 05:27:28 rpmi: libgeotiff5-1.6.0-alt2 sisyphus+308658.1020.16.1 1666988306 installed <13>Jan 20 05:27:28 rpmi: libnetcdf19-4.8.0-alt1 sisyphus+335173.300.4.1 1707642617 installed <13>Jan 20 05:27:28 rpmi: libass9-0.17.3-alt1 sisyphus+352066.100.1.1 1720008822 installed <13>Jan 20 05:27:28 rpmi: libspatialite-5.0.1-alt1 sisyphus+308658.1040.16.1 1666988358 installed <13>Jan 20 05:27:28 rpmi: libpoppler140-24.08.0-alt1 sisyphus+365414.100.1.1 1734598914 installed <13>Jan 20 05:27:28 rpmi: libraptor2-2.0.16-alt1 sisyphus+337177.100.1.1 1703495659 installed <13>Jan 20 05:27:28 rpmi: liblrdf-0.6.1-alt1 sisyphus+278205.100.1.1 1626077040 installed <13>Jan 20 05:27:28 rpmi: libbluray-1.3.4-alt1 sisyphus+310888.100.1.1 1669800489 installed <13>Jan 20 05:27:28 rpmi: libxshmfence-1.3.2-alt1 sisyphus+311428.400.1.1 1670577525 installed <13>Jan 20 05:27:28 rpmi: libsensors3-3.6.0-alt4 sisyphus+366234.100.1.1 1734814779 installed <13>Jan 20 05:27:28 rpmi: libpciaccess-1:0.18.1-alt1 sisyphus+343583.300.1.1 1711440789 installed <13>Jan 20 05:27:28 rpmi: libdrm-1:2.4.124-alt1 sisyphus+364215.100.1.1 1733469813 installed <13>Jan 20 05:27:28 rpmi: libgbm-4:24.3.3-alt1 sisyphus+368268.100.1.1 1736162388 installed <13>Jan 20 05:27:28 rpmi: libcamera-1:0.4.0-alt1 sisyphus+367486.100.1.1 1735805250 installed <13>Jan 20 05:27:28 rpmi: llvm18.1-filesystem-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Jan 20 05:27:28 rpmi: llvm18.1-polly-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Jan 20 05:27:28 rpmi: libedit3-3.1.20230828-alt1 sisyphus+330914.200.3.1 1696922743 installed <13>Jan 20 05:27:28 rpmi: llvm18.1-gold-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Jan 20 05:27:30 rpmi: llvm18.1-libs-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Jan 20 05:27:30 rpmi: libjson-c5-0.18-alt1 sisyphus+358387.100.1.1 1727298142 installed <13>Jan 20 05:27:30 rpmi: gdal-plugins-3.10.1-alt1 sisyphus+370503.100.1.1 1737202118 installed <13>Jan 20 05:27:30 rpmi: libquadmath0-14.2.1-alt1 sisyphus+360995.100.1.1 1730131018 installed <13>Jan 20 05:27:30 rpmi: libgfortran5-14.2.1-alt1 sisyphus+360995.100.1.1 1730131018 installed <13>Jan 20 05:27:30 rpmi: liblapack-1:3.8.0-alt7 sisyphus+340675.300.1.1 1707908338 installed <13>Jan 20 05:27:30 rpmi: libcholmod5-7.8.2-alt1 sisyphus+370508.100.1.1 1737209895 installed <13>Jan 20 05:27:30 rpmi: python3-module-numpy-1:1.26.5-alt1 sisyphus+352832.100.1.1 1720965091 installed <13>Jan 20 05:27:30 rpmi: libspqr4-7.8.2-alt1 sisyphus+370508.100.1.1 1737209895 installed <13>Jan 20 05:27:30 rpmi: libarpack-ng-3.9.1-alt1 sisyphus+331804.100.1.1 1697304459 installed <13>Jan 20 05:27:30 rpmi: flexiblas-3.4.4-alt3 sisyphus+355796.100.1.1 1724340590 installed <13>Jan 20 05:27:30 rpmi: libflexiblas.3-3.4.4-alt3 sisyphus+355796.100.1.1 1724340590 installed <13>Jan 20 05:27:30 rpmi: flexiblas-netlib-3.4.4-alt3 sisyphus+355796.100.1.1 1724340590 installed <13>Jan 20 05:27:30 rpmi: libarmadillo14-14.2.2-alt1 sisyphus+366375.100.1.1 1735020187 installed <13>Jan 20 05:27:30 rpmi: libceres4-2.2.0-alt2 sisyphus+350246.370.8.1 1724736407 installed <13>Jan 20 05:27:30 rpmi: libdevmapper-1.02.202-alt1 sisyphus+361775.200.5.1 1730990757 installed <13>Jan 20 05:27:30 rpmi: mount-2.39.2-alt2 sisyphus+368471.140.2.1 1737124262 installed <13>Jan 20 05:27:30 rpmi: losetup-2.39.2-alt2 sisyphus+368471.140.2.1 1737124262 installed <13>Jan 20 05:27:30 rpmi: lsblk-2.39.2-alt2 sisyphus+368471.140.2.1 1737124262 installed <13>Jan 20 05:27:30 rpmi: dmsetup-1.02.202-alt1 sisyphus+361775.200.5.1 1730990757 installed <86>Jan 20 05:27:30 groupadd[1095189]: group added to /etc/group: name=tape, GID=995 <86>Jan 20 05:27:30 groupadd[1095189]: group added to /etc/gshadow: name=tape <86>Jan 20 05:27:30 groupadd[1095189]: new group: name=tape, GID=995 <86>Jan 20 05:27:30 groupadd[1095203]: group added to /etc/group: name=dialout, GID=994 <86>Jan 20 05:27:30 groupadd[1095203]: group added to /etc/gshadow: name=dialout <86>Jan 20 05:27:30 groupadd[1095203]: new group: name=dialout, GID=994 <86>Jan 20 05:27:30 groupadd[1095215]: group added to /etc/group: name=input, GID=993 <86>Jan 20 05:27:30 groupadd[1095215]: group added to /etc/gshadow: name=input <86>Jan 20 05:27:30 groupadd[1095215]: new group: name=input, GID=993 <86>Jan 20 05:27:30 groupadd[1095236]: group added to /etc/group: name=video, GID=992 <86>Jan 20 05:27:30 groupadd[1095236]: group added to /etc/gshadow: name=video <86>Jan 20 05:27:30 groupadd[1095236]: new group: name=video, GID=992 <86>Jan 20 05:27:30 groupadd[1095255]: group added to /etc/group: name=render, GID=991 <86>Jan 20 05:27:30 groupadd[1095255]: group added to /etc/gshadow: name=render <86>Jan 20 05:27:30 groupadd[1095255]: new group: name=render, GID=991 <86>Jan 20 05:27:30 groupadd[1095276]: group added to /etc/group: name=sgx, GID=990 <86>Jan 20 05:27:30 groupadd[1095276]: group added to /etc/gshadow: name=sgx <86>Jan 20 05:27:30 groupadd[1095276]: new group: name=sgx, GID=990 <13>Jan 20 05:27:31 rpmi: udev-1:255.16-alt1 sisyphus+368218.100.2.1 1736510055 installed <13>Jan 20 05:27:31 rpmi: dconf-profile-0.1-alt1 sisyphus+325633.340.3.1 1690415358 installed <13>Jan 20 05:27:31 rpmi: desktop-file-utils-0.26-alt6 sisyphus+331944.100.1.3 1697550026 installed <13>Jan 20 05:27:31 rpmi: shared-mime-info-2.4-alt1 sisyphus+334259.100.1.1 1699787316 installed <13>Jan 20 05:27:31 rpmi: gsettings-desktop-schemas-data-47.1-alt1 sisyphus+357735.300.3.1 1726641752 installed <13>Jan 20 05:27:31 rpmi: libgio-2.82.4-alt1 sisyphus+364807.100.1.1 1733991592 installed <13>Jan 20 05:27:31 rpmi: gsettings-desktop-schemas-47.1-alt1 sisyphus+357735.300.3.1 1726641752 installed <13>Jan 20 05:27:31 rpmi: libgstreamer1.0-1.24.11-alt1 sisyphus+368303.100.1.1 1736264289 installed <13>Jan 20 05:27:31 rpmi: libgdk-pixbuf-2.42.12-alt1 sisyphus+348142.100.1.1 1715791856 installed <13>Jan 20 05:27:31 rpmi: gstreamer1.0-1.24.11-alt1 sisyphus+368303.100.1.1 1736264289 installed <13>Jan 20 05:27:31 rpmi: libgstreamer1.0-gir-1.24.11-alt1 sisyphus+368303.100.1.1 1736264289 installed <13>Jan 20 05:27:31 rpmi: libglibmm-2.66.7-alt1 sisyphus+344717.100.1.1 1712649439 installed <13>Jan 20 05:27:31 rpmi: libjson-glib-1.10.6-alt1 sisyphus+364645.100.1.1 1733849752 installed <13>Jan 20 05:27:31 rpmi: libgusb-0.4.9-alt1 sisyphus+345693.100.1.1 1713857461 installed <13>Jan 20 05:27:31 rpmi: libcolord-1.4.7-alt1.1 sisyphus+338793.100.1.1 1706039016 installed <13>Jan 20 05:27:31 rpmi: libxml++2-2.42.3-alt1 sisyphus+338062.100.1.2 1705656007 installed <13>Jan 20 05:27:31 rpmi: libffado-2.4.9-alt1 sisyphus+359940.100.1.1 1729093015 installed <13>Jan 20 05:27:31 rpmi: libheif-1.19.5-alt1 sisyphus+362995.100.1.1 1732097822 installed <13>Jan 20 05:27:31 rpmi: gtk4-update-icon-cache-4.16.12-alt1 sisyphus+368164.100.1.1 1735978520 installed <13>Jan 20 05:27:31 rpmi: libdconf-0.40.0-alt3 sisyphus+325650.100.1.1 1690417205 installed <13>Jan 20 05:27:31 rpmi: dconf-0.40.0-alt3 sisyphus+325650.100.1.1 1690417205 installed <13>Jan 20 05:27:31 rpmi: libgtk+3-schemas-3.24.43-alt1 sisyphus+352627.100.1.1 1720700731 installed <13>Jan 20 05:27:31 rpmi: libproxy-0.5.9-alt1 sisyphus+360721.100.1.1 1729865346 installed <13>Jan 20 05:27:31 rpmi: libqt5-network-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:31 rpmi: libqt5-remoteobjects-5.15.16-alt1 sisyphus+365342.4300.2.2 1734826671 installed <13>Jan 20 05:27:31 rpmi: libpolkit-124-alt3 sisyphus+351454.100.1.1 1719236630 installed <86>Jan 20 05:27:31 groupadd[1096673]: group added to /etc/group: name=colord, GID=989 <86>Jan 20 05:27:31 groupadd[1096673]: group added to /etc/gshadow: name=colord <86>Jan 20 05:27:31 groupadd[1096673]: new group: name=colord, GID=989 <86>Jan 20 05:27:31 useradd[1096699]: new user: name=colord, UID=998, GID=989, home=/var/colord, shell=/dev/null, from=none <13>Jan 20 05:27:31 rpmi: colord-1.4.7-alt1.1 sisyphus+338793.100.1.1 1706039016 installed <13>Jan 20 05:27:31 rpmi: libnice-0.1.22-alt1 sisyphus+342031.100.1.1 1709629225 installed <13>Jan 20 05:27:31 rpmi: systemd-modules-common-1:255.16-alt1 sisyphus+368218.100.2.1 1736510055 installed <13>Jan 20 05:27:31 rpmi: systemd-sysctl-common-1:255.16-alt1 sisyphus+368218.100.2.1 1736510055 installed <13>Jan 20 05:27:31 rpmi: systemd-tmpfiles-common-1:255.16-alt1 sisyphus+368218.100.2.1 1736510055 installed <13>Jan 20 05:27:31 rpmi: systemd-utils-filetriggers-1:255.16-alt1 sisyphus+368218.100.2.1 1736510055 installed <13>Jan 20 05:27:31 rpmi: libfdisk-2.39.2-alt2 sisyphus+368471.140.2.1 1737124262 installed <13>Jan 20 05:27:31 rpmi: systemd-utils-standalone-1:255.16-alt1 sisyphus+368218.100.2.1 1736510055 installed <13>Jan 20 05:27:31 rpmi: libX11-locales-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Jan 20 05:27:31 rpmi: libXdmcp-1.1.5-alt1 sisyphus+343583.700.1.1 1711441061 installed <13>Jan 20 05:27:31 rpmi: libXau-1.0.11-alt1 sisyphus+311428.100.1.1 1670577439 installed <13>Jan 20 05:27:31 rpmi: libxcb-1.17.0-alt1 sisyphus+345308.200.1.1 1713342004 installed <13>Jan 20 05:27:32 rpmi: libX11-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Jan 20 05:27:32 rpmi: libXext-1.3.6-alt1 sisyphus+343583.1000.1.1 1711441101 installed <13>Jan 20 05:27:32 rpmi: libXrender-0.9.11-alt1 sisyphus+308841.100.1.1 1666436130 installed <13>Jan 20 05:27:32 rpmi: libcairo-1:1.18.2-alt1.1 sisyphus+370521.100.1.1 1737278090 installed <13>Jan 20 05:27:32 rpmi: libpulseaudio-17.0-alt2 sisyphus+339257.100.1.1 1706519226 installed <13>Jan 20 05:27:32 rpmi: libXfixes-6.0.1-alt1 sisyphus+331490.300.1.1 1697023233 installed <13>Jan 20 05:27:32 rpmi: libcairo-gobject-1:1.18.2-alt1.1 sisyphus+370521.100.1.1 1737278090 installed <13>Jan 20 05:27:32 rpmi: libXi-1.8-alt1 sisyphus+285490.200.1.1 1632124174 installed <13>Jan 20 05:27:32 rpmi: libat-spi2-core-2.54.1-alt1 sisyphus+369255.100.1.1 1736603245 installed <13>Jan 20 05:27:32 rpmi: libXcursor-1.2.2-alt1 sisyphus+343583.600.1.1 1711441025 installed <13>Jan 20 05:27:32 rpmi: libXft-2.3.8-alt1 sisyphus+331490.400.1.1 1697023269 installed <13>Jan 20 05:27:32 rpmi: libpango-1.56.0-alt1 sisyphus+368556.100.1.1 1736509373 installed <13>Jan 20 05:27:32 rpmi: librsvg-1:2.59.2-alt1 sisyphus+361144.100.1.1 1730276750 installed <13>Jan 20 05:27:32 rpmi: libtk-8.6.13-alt1 sisyphus+310696.200.1.1 1669548530 installed <13>Jan 20 05:27:32 rpmi: tk-8.6.13-alt1 sisyphus+310696.200.1.1 1669548530 installed <13>Jan 20 05:27:32 rpmi: libXrandr-1.5.4-alt1 sisyphus+330992.100.1.1 1696485400 installed <13>Jan 20 05:27:32 rpmi: libXtst-1.2.4-alt1 sisyphus+308663.1300.1.1 1666168495 installed <13>Jan 20 05:27:32 rpmi: libXv-1.0.12-alt1 sisyphus+311188.600.1.1 1670233799 installed <13>Jan 20 05:27:32 rpmi: libzvbi-0.2.35-alt2 sisyphus+275416.100.1.3 1624507095 installed <13>Jan 20 05:27:32 rpmi: libXdamage-1.1.6-alt1 sisyphus+311188.300.1.1 1670233711 installed <13>Jan 20 05:27:32 rpmi: python3-module-Pillow-11.1.0-alt1 sisyphus+369514.100.1.1 1736863659 installed <13>Jan 20 05:27:32 rpmi: libzbar-0.23.93-alt1 sisyphus+350305.100.1.1 1717507821 installed <13>Jan 20 05:27:32 rpmi: tcl-tix-8.4.3-alt4 sisyphus+277292.300.2.1 1625442550 installed <13>Jan 20 05:27:32 rpmi: python3-modules-tkinter-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed <13>Jan 20 05:27:32 rpmi: python3-module-automat-24.8.1-alt1 sisyphus+355768.100.2.1 1724411664 installed <13>Jan 20 05:27:32 rpmi: python3-module-twisted-logger-24.11.0-alt1 sisyphus+368299.100.1.1 1736236371 installed <13>Jan 20 05:27:32 rpmi: python3-module-twisted-web-24.11.0-alt1 sisyphus+368299.100.1.1 1736236371 installed <13>Jan 20 05:27:32 rpmi: python3-module-twisted-words-24.11.0-alt1 sisyphus+368299.100.1.1 1736236371 installed <13>Jan 20 05:27:32 rpmi: python3-module-twisted-core-24.11.0-alt1 sisyphus+368299.100.1.1 1736236371 installed <13>Jan 20 05:27:32 rpmi: python3-module-twisted-names-24.11.0-alt1 sisyphus+368299.100.1.1 1736236371 installed <13>Jan 20 05:27:32 rpmi: python3-module-tornado-6.4.2-alt1 sisyphus+363445.100.1.1 1732635491 installed <13>Jan 20 05:27:32 rpmi: python3-module-gunicorn-23.0.0-alt1 sisyphus+362920.200.1.1 1732021917 installed <13>Jan 20 05:27:32 rpmi: python3-module-aiohttp-3.11.11-alt1 sisyphus+369469.300.3.1 1736852129 installed <13>Jan 20 05:27:32 rpmi: python3-module-GeoIP2-4.8.1-alt1 sisyphus+362946.100.1.1 1732032825 installed <13>Jan 20 05:27:32 rpmi: python3-module-django-dbbackend-postgresql-5.0.10-alt1 sisyphus+365393.100.1.1 1734631231 installed <13>Jan 20 05:27:33 rpmi: python3-module-django-5.0.10-alt1 sisyphus+365393.100.1.1 1734631231 installed <13>Jan 20 05:27:33 rpmi: python3-module-django-extra-views-0.14.0-alt1 sisyphus+353279.2200.19.1 1722072015 installed <13>Jan 20 05:27:33 rpmi: python3-module-django-js-asset-1.2.2-alt1 sisyphus+278795.1500.3.1 1626203482 installed <13>Jan 20 05:27:33 rpmi: python3-module-zmq-26.2.0-alt1 sisyphus+361792.100.1.1 1730863610 installed <13>Jan 20 05:27:33 rpmi: python3-module-jupyter_client-8.6.3-alt1 sisyphus+357733.100.1.1 1726593924 installed <13>Jan 20 05:27:33 rpmi: python3-module-txaio-23.1.1-alt1 sisyphus+326246.100.1.1 1690911869 installed <13>Jan 20 05:27:33 rpmi: python3-module-autobahn-21.3.1-alt2 sisyphus+274601.640.8.1 1623847158 installed <13>Jan 20 05:27:33 rpmi: python3-module-daphne-4.1.2-alt2 sisyphus+360972.100.1.1 1730106823 installed <13>Jan 20 05:27:33 rpmi: python3-module-channels-4.2.0-alt1 sisyphus+362894.100.1.1 1731998600 installed <13>Jan 20 05:27:33 rpmi: at-spi2-atk-2.54.1-alt1 sisyphus+369255.100.1.1 1736603245 installed <13>Jan 20 05:27:33 rpmi: librasterlite2-1.1.0-alt1.1 sisyphus+315672.100.1.1 1677138123 installed <13>Jan 20 05:27:34 rpmi: libgdal36-3.10.1-alt1 sisyphus+370503.100.1.1 1737202118 installed <13>Jan 20 05:27:34 rpmi: libopenslide1-4.0.0-alt1 sisyphus+338408.100.3.3 1705769764 installed <13>Jan 20 05:27:34 rpmi: python3-module-pycairo-1.27.0-alt1 sisyphus+357085.100.1.1 1725690999 installed <13>Jan 20 05:27:34 rpmi: libXxf86vm-1.1.5-alt1 sisyphus+308663.1400.1.1 1666168523 installed <13>Jan 20 05:27:34 rpmi: libGLX-mesa-4:24.3.3-alt1 sisyphus+368268.100.1.1 1736162388 installed <13>Jan 20 05:27:34 rpmi: libGLX-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 20 05:27:34 rpmi: libGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 20 05:27:34 rpmi: libva-2.22.0-alt1 sisyphus+351641.100.2.1 1719561314 installed <13>Jan 20 05:27:34 rpmi: libGLEW2.2-2.2.0-alt2 sisyphus+321802.100.1.1 1684967192 installed <13>Jan 20 05:27:34 rpmi: libgl2ps-1.4.2-alt1.1 sisyphus+273102.400.7.1 1622551022 installed <13>Jan 20 05:27:34 rpmi: libEGL-mesa-4:24.3.3-alt1 sisyphus+368268.100.1.1 1736162388 installed <13>Jan 20 05:27:34 rpmi: libEGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 20 05:27:34 rpmi: libgst-plugins1.0-1.24.11-alt1 sisyphus+368303.200.1.1 1736264401 installed <13>Jan 20 05:27:34 rpmi: libgst-plugins1.0-gir-1.24.11-alt1 sisyphus+368303.200.1.1 1736264401 installed <13>Jan 20 05:27:34 rpmi: gst-plugins-ugly1.0-1.24.11-alt1 sisyphus+368303.500.1.1 1736264786 installed <13>Jan 20 05:27:34 rpmi: libvdpau-1:1.5-alt1 sisyphus+298034.100.1.1 1649336822 installed <13>Jan 20 05:27:34 rpmi: libavutil59-2:7.1-alt2 sisyphus+366694.100.1.1 1735320087 installed <13>Jan 20 05:27:34 rpmi: libswscale8-2:7.1-alt2 sisyphus+366694.100.1.1 1735320087 installed <13>Jan 20 05:27:34 rpmi: libswresample5-2:7.1-alt2 sisyphus+366694.100.1.1 1735320087 installed <13>Jan 20 05:27:35 rpmi: libavcodec61-2:7.1-alt2 sisyphus+366694.100.1.1 1735320087 installed <13>Jan 20 05:27:35 rpmi: libavformat61-2:7.1-alt2 sisyphus+366694.100.1.1 1735320087 installed <13>Jan 20 05:27:35 rpmi: libpostproc58-2:7.1-alt2 sisyphus+366694.100.1.1 1735320087 installed <13>Jan 20 05:27:35 rpmi: libavfilter10-2:7.1-alt2 sisyphus+366694.100.1.1 1735320087 installed <13>Jan 20 05:27:35 rpmi: gst-libav-1.24.11-alt1 sisyphus+368303.700.1.1 1736264863 installed <13>Jan 20 05:27:35 rpmi: libXinerama-1.1.5-alt1 sisyphus+309287.100.1.1 1667213208 installed <13>Jan 20 05:27:35 rpmi: dbus-tools-gui-1.16.0-alt2 sisyphus+369277.100.1.1 1736680018 installed <13>Jan 20 05:27:35 rpmi: xprop-1.2.5-alt1 sisyphus+279025.100.1.1 1626354198 installed <13>Jan 20 05:27:35 rpmi: at-spi2-core-2.54.1-alt1 sisyphus+369255.100.1.1 1736603245 installed <13>Jan 20 05:27:35 rpmi: libXcomposite-0.4.6-alt1 sisyphus+311188.200.1.1 1670233682 installed <13>Jan 20 05:27:35 rpmi: libgtk+3-3.24.43-alt1 sisyphus+352627.100.1.1 1720700731 installed <13>Jan 20 05:27:35 rpmi: libcaca-0.99.20.3-alt0.1 sisyphus+362200.100.1.1 1731357807 installed <13>Jan 20 05:27:36 rpmi: gst-plugins-good1.0-1.24.11-alt1 sisyphus+368303.300.1.1 1736264532 installed <13>Jan 20 05:27:36 rpmi: libxcbutil-icccm-0.4.1-alt2 sisyphus+278275.100.1.2 1626148616 installed <13>Jan 20 05:27:36 rpmi: libxcbutil-1:0.4.1-alt1 sisyphus+312057.100.1.1 1671526887 installed <13>Jan 20 05:27:36 rpmi: libxcbutil-image-0.4.0-alt1 sisyphus+275413.100.1.3 1624505793 installed <13>Jan 20 05:27:36 rpmi: libxcbutil-keysyms-0.4.0-alt1 sisyphus+278187.100.1.1 1626075966 installed <13>Jan 20 05:27:36 rpmi: libxcb-render-util-0.3.9-alt3 sisyphus+276916.100.1.2 1625275234 installed <13>Jan 20 05:27:36 rpmi: libxkbcommon-x11-1.7.0-alt1.1 sisyphus+343672.100.1.1 1711490810 installed <13>Jan 20 05:27:36 rpmi: libqt5-eglfsdeviceintegration-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:36 rpmi: libqt5-xcbqpa-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:36 rpmi: libqt5-eglfskmssupport-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:36 rpmi: libqt5-gui-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:36 rpmi: libqt5-widgets-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:36 rpmi: libqt5-designer-5.15.16-alt1 sisyphus+369624.100.1.3 1736942699 installed <13>Jan 20 05:27:36 rpmi: libqt5-help-5.15.16-alt1 sisyphus+369624.100.1.3 1736942699 installed <13>Jan 20 05:27:36 rpmi: libqt5-opengl-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:36 rpmi: libqt5-printsupport-5.15.16-alt1 sisyphus+369621.100.1.3 1736956092 installed <13>Jan 20 05:27:36 rpmi: libqt5-svg-5.15.16-alt1 sisyphus+365342.1700.2.2 1734820101 installed <13>Jan 20 05:27:36 rpmi: libqt5-quickshapes-5.15.16-alt1 sisyphus+369622.100.1.3 1736947377 installed <13>Jan 20 05:27:36 rpmi: libqt5-qmlmodels-5.15.16-alt1 sisyphus+369622.100.1.3 1736947377 installed <13>Jan 20 05:27:36 rpmi: libqt5-qmlworkerscript-5.15.16-alt1 sisyphus+369622.100.1.3 1736947377 installed <13>Jan 20 05:27:36 rpmi: libqt5-qml-5.15.16-alt1 sisyphus+369622.100.1.3 1736947377 installed <13>Jan 20 05:27:36 rpmi: libqt5-quick-5.15.16-alt1 sisyphus+369622.100.1.3 1736947377 installed <13>Jan 20 05:27:38 rpmi: libvtk9.3-9.3.0-alt1.2 sisyphus+362151.2400.18.1 1731780302 installed <13>Jan 20 05:27:38 rpmi: gdcm-3.0.24-alt1 sisyphus+366473.70.10.1 1735288108 installed <13>Jan 20 05:27:39 rpmi: libopencv4.10-1:4.10.0-alt2 sisyphus+348582.3500.15.2 1733952016 installed <13>Jan 20 05:27:39 rpmi: qt5-quickcontrols-5.15.16-alt1 sisyphus+365342.1400.2.2 1734819826 installed <13>Jan 20 05:27:39 rpmi: libqt5-positioningquick-5.15.16-alt1 sisyphus+365342.1000.2.2 1734819463 installed <13>Jan 20 05:27:39 rpmi: libqt5-positioning-5.15.16-alt1 sisyphus+365342.1000.2.2 1734819463 installed <13>Jan 20 05:27:39 rpmi: libqt5-location-5.15.16-alt1 sisyphus+365342.1000.2.2 1734819463 installed <13>Jan 20 05:27:39 rpmi: libqt5-quickwidgets-5.15.16-alt1 sisyphus+369622.100.1.3 1736947377 installed <13>Jan 20 05:27:39 rpmi: libqt5-bluetooth-5.15.16-alt1 sisyphus+365342.2300.2.2 1734820642 installed <13>Jan 20 05:27:39 rpmi: libqt5-nfc-5.15.16-alt1 sisyphus+365342.2300.2.2 1734820642 installed <13>Jan 20 05:27:39 rpmi: libqt5-sensors-5.15.16-alt1 sisyphus+365342.1100.2.2 1734819581 installed <13>Jan 20 05:27:39 rpmi: libqt5-webchannel-5.15.16-alt1 sisyphus+365342.1300.2.2 1734819701 installed <13>Jan 20 05:27:39 rpmi: libqt5-websockets-5.15.16-alt1 sisyphus+365342.500.2.2 1734818894 installed <13>Jan 20 05:27:39 rpmi: libqt5-xmlpatterns-5.15.16-alt1 sisyphus+369623.100.1.1 1736938969 installed <13>Jan 20 05:27:39 rpmi: libqt5-x11extras-5.15.16-alt1 sisyphus+365342.1600.2.2 1734820032 installed <13>Jan 20 05:27:39 rpmi: alsa-ucm-conf-1.2.13-alt1 sisyphus+370533.100.1.1 1737298866 installed <13>Jan 20 05:27:39 rpmi: alsa-topology-conf-1.2.5.1-alt1 sisyphus+274777.100.1.1 1624089141 installed <13>Jan 20 05:27:39 rpmi: libalsa-1:1.2.13-alt1 sisyphus+370533.200.1.1 1737298943 installed <13>Jan 20 05:27:39 rpmi: libcanberra-0.30-alt3 sisyphus+275093.100.2.3 1624562350 installed <13>Jan 20 05:27:39 rpmi: pipewire-libs-1.2.7-alt1 sisyphus+367486.200.1.1 1735805406 installed <13>Jan 20 05:27:39 rpmi: pipewire-jack-libs-1.2.7-alt1 sisyphus+367486.200.1.1 1735805406 installed <13>Jan 20 05:27:39 rpmi: libfluidsynth-2.4.2-alt1 sisyphus+367460.600.3.2 1735651527 installed <13>Jan 20 05:27:39 rpmi: libSDL-1.2.14-alt10 sisyphus+346015.200.2.1 1716212609 installed <13>Jan 20 05:27:39 rpmi: libmjpegtools2.1-2.2.1-alt2 sisyphus+332812.400.2.1 1698405785 installed <13>Jan 20 05:27:39 rpmi: gst-plugins-bad1.0-1.24.11-alt1 sisyphus+368303.400.1.1 1736264715 installed <13>Jan 20 05:27:39 rpmi: gst-plugins-base1.0-1.24.11-alt1 sisyphus+368303.200.1.1 1736264401 installed <13>Jan 20 05:27:39 rpmi: libqt5-multimedia-5.15.16-alt1 sisyphus+365342.600.2.2 1734819131 installed <13>Jan 20 05:27:40 rpmi: python3-module-PyQt5-5.15.10-alt2 sisyphus+341899.100.1.1 1709469602 installed <13>Jan 20 05:27:40 rpmi: python3-module-mpl_toolkits-3.8.4-alt1 sisyphus+348763.100.1.1 1716481530 installed <13>Jan 20 05:27:40 rpmi: python3-module-matplotlib-cairo-3.8.4-alt1 sisyphus+348763.100.1.1 1716481530 installed <13>Jan 20 05:27:40 rpmi: python3-module-matplotlib-tk-3.8.4-alt1 sisyphus+348763.100.1.1 1716481530 installed <13>Jan 20 05:27:40 rpmi: python3-module-matplotlib-3.8.4-alt1 sisyphus+348763.100.1.1 1716481530 installed <13>Jan 20 05:27:40 rpmi: python3-module-matplotlib-qt5-3.8.4-alt1 sisyphus+348763.100.1.1 1716481530 installed <13>Jan 20 05:27:40 rpmi: python3-module-ipython-8.31.0-alt1 sisyphus+365538.100.1.1 1734714962 installed <13>Jan 20 05:27:40 rpmi: python3-module-matplotlib-inline-0.1.7-alt1 sisyphus+348427.100.1.1 1716102198 installed <13>Jan 20 05:27:40 rpmi: python3-module-pyinstrument-4.6.2-alt1 sisyphus+352905.1400.12.1 1722013517 installed <13>Jan 20 05:27:40 rpmi: python3-module-strawberry-graphql-0.254.0-alt1 sisyphus+365393.700.5.1 1734727584 installed <13>Jan 20 05:27:40 rpmi: python3-module-django-mptt-0.15-alt1 sisyphus+330404.540.9.1 1698398866 installed <13>Jan 20 05:27:40 rpmi: python3-module-django-polymorphic-3.1.0-alt1 sisyphus+353279.2100.19.1 1722071978 installed <13>Jan 20 05:27:40 rpmi: python3-module-django-choices-field-2.3.0-alt1 sisyphus+354658.3000.21.1 1723502859 installed <13>Jan 20 05:27:40 rpmi: python3-module-django-dbbackend-sqlite3-5.0.10-alt1 sisyphus+365393.100.1.1 1734631231 installed <13>Jan 20 05:27:40 rpmi: python3-module-django-debug-toolbar-4.4.6-alt1 sisyphus+354658.3100.21.1 1723502890 installed <13>Jan 20 05:27:40 rpmi: python3-module-django-guardian-2.4.0-alt1 sisyphus+308374.100.1.1 1665751528 installed <13>Jan 20 05:27:40 rpmi: python3-module-factory_boy-3.3.1-alt1 sisyphus+360310.100.1.1 1729507969 installed <13>Jan 20 05:27:40 rpmi: python3-module-pytest-asyncio-0.25.2-alt1 sisyphus+369683.100.2.2 1737042170 installed <13>Jan 20 05:27:40 rpmi: python3-module-pytest-cov-5.0.0-alt1 sisyphus+343602.100.1.1 1711449884 installed <13>Jan 20 05:27:40 rpmi: python3-module-pytest-django-4.9.0-alt1 sisyphus+356697.100.1.1 1725357510 installed <13>Jan 20 05:27:40 rpmi: python3-module-pytest-mock-3.14.0-alt1 sisyphus+343327.100.2.2 1711118794 installed <13>Jan 20 05:27:40 rpmi: python3-module-pytest-snapshot-0.9.0-alt2 sisyphus+343297.400.3.1 1711134231 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-strawberry-django-0.52.1-alt1.nosrc.rpm (w1.gzdio) <13>Jan 20 05:27:44 rpmi: python3-module-pyproject-installer-0.5.5-alt2 sisyphus+366395.100.1.1 1735032014 installed Installing python3-module-strawberry-django-0.52.1-alt1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.94577 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf strawberry-django-0.52.1 + echo 'Source #0 (strawberry-django-0.52.1.tar):' Source #0 (strawberry-django-0.52.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/strawberry-django-0.52.1.tar + cd strawberry-django-0.52.1 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.14598 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd strawberry-django-0.52.1 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/strawberry-django-0.52.1 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/strawberry-django-0.52.1/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/strawberry-django-0.52.1/pyproject.toml INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: poetry.core.masonry.api INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/strawberry-django-0.52.1/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : poetry.core.masonry.builders.wheel : Building wheel DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/apps.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/arguments.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/auth/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/auth/mutations.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/auth/queries.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/auth/utils.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/descriptors.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/exceptions.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/extensions/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/extensions/django_cache_base.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/extensions/django_validation_cache.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/fields/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/fields/base.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/fields/field.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/fields/filter_order.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/fields/filter_types.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/fields/types.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/filters.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/integrations/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/integrations/guardian.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/management/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/management/commands/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/management/commands/export_schema.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/middlewares/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/middlewares/debug_toolbar.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/mutations/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/mutations/fields.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/mutations/mutations.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/mutations/resolvers.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/mutations/types.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/optimizer.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/ordering.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/pagination.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/permissions.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/py.typed DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/queryset.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/relay.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/resolvers.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/routers.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/settings.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/templates/strawberry_django/debug_toolbar.html DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/test/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/test/client.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/type.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/utils/__init__.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/utils/inspect.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/utils/patches.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/utils/pyutils.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/utils/query.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/utils/requests.py DEBUG : poetry.core.masonry.builders.builder : Adding: /usr/src/RPM/BUILD/strawberry-django-0.52.1/strawberry_django/utils/typing.py INFO : poetry.core.masonry.builders.wheel : Built strawberry_graphql_django-0.52.1-py3-none-any.whl INFO : pyproject_installer.build_cmd._build : Built wheel: strawberry_graphql_django-0.52.1-py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.14598 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-strawberry-django-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-strawberry-django-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd strawberry-django-0.52.1 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-strawberry-django-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/strawberry-django-0.52.1/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: strawberry_graphql_django-0.52.1-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-strawberry-django-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: strawberry_graphql_django-0.52.1.dist-info/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: strawberry_graphql_django-0.52.1.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: strawberry_graphql_django-0.52.1.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Wheel was installed + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-strawberry-django-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-strawberry-django-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-strawberry-django-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-strawberry-django-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-strawberry-django-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-strawberry-django-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/python3-module-strawberry-django-buildroot Bytecompiling python3 modules in /usr/src/tmp/python3-module-strawberry-django-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/mutations.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/queries.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/utils.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/extensions/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/extensions/django_cache_base.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/extensions/django_validation_cache.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/base.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/field.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/filter_order.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/filter_types.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/types.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/integrations/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/integrations/guardian.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/management/commands/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/management/commands/export_schema.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/management/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/middlewares/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/middlewares/debug_toolbar.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/fields.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/mutations.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/resolvers.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/types.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/test/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/test/client.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/inspect.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/patches.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/pyutils.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/query.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/requests.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/typing.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/apps.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/arguments.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/descriptors.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/exceptions.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/filters.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/optimizer.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/ordering.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/pagination.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/permissions.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/queryset.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/relay.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/resolvers.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/routers.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/settings.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/type.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-strawberry-django-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/mutations.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/queries.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/utils.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/extensions/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/extensions/django_cache_base.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/extensions/django_validation_cache.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/base.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/field.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/filter_order.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/filter_types.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/types.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/integrations/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/integrations/guardian.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/management/commands/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/management/commands/export_schema.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/management/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/middlewares/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/middlewares/debug_toolbar.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/fields.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/mutations.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/resolvers.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/types.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/test/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/test/client.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/inspect.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/patches.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/pyutils.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/query.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/requests.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/typing.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/apps.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/arguments.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/descriptors.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/exceptions.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/filters.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/optimizer.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/ordering.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/pagination.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/permissions.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/queryset.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/relay.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/resolvers.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/routers.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/settings.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/type.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-strawberry-django-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/mutations.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/queries.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/auth/utils.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/extensions/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/extensions/django_cache_base.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/extensions/django_validation_cache.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/base.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/field.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/filter_order.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/filter_types.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/fields/types.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/integrations/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/integrations/guardian.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/management/commands/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/management/commands/export_schema.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/management/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/middlewares/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/middlewares/debug_toolbar.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/fields.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/mutations.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/resolvers.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/mutations/types.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/test/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/test/client.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/inspect.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/patches.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/pyutils.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/query.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/requests.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/utils/typing.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/__init__.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/apps.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/arguments.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/descriptors.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/exceptions.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/filters.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/optimizer.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/ordering.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/pagination.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/permissions.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/queryset.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/relay.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/resolvers.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/routers.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/settings.py compile /usr/src/tmp/python3-module-strawberry-django-buildroot/usr/lib/python3/site-packages/strawberry_django/type.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/strawberry_django/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/apps.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/apps.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/apps.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/apps.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/arguments.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/arguments.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/arguments.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/arguments.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/descriptors.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/descriptors.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/exceptions.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/exceptions.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/exceptions.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/exceptions.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/filters.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/filters.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/ordering.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/ordering.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/ordering.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/ordering.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/pagination.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/pagination.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/queryset.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/queryset.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/queryset.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/queryset.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/resolvers.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/resolvers.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/routers.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/routers.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/__pycache__/settings.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/__pycache__/settings.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/mutations.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/mutations.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/queries.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/queries.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/queries.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/queries.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/utils.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/auth/__pycache__/utils.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/extensions/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/extensions/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/extensions/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/extensions/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/extensions/__pycache__/django_cache_base.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/extensions/__pycache__/django_cache_base.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/extensions/__pycache__/django_validation_cache.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/extensions/__pycache__/django_validation_cache.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/extensions/__pycache__/django_validation_cache.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/extensions/__pycache__/django_validation_cache.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/fields/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/fields/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/fields/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/fields/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/fields/__pycache__/filter_types.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/fields/__pycache__/filter_types.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/fields/__pycache__/filter_types.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/fields/__pycache__/filter_types.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/integrations/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/integrations/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/integrations/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/integrations/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/integrations/__pycache__/guardian.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/integrations/__pycache__/guardian.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/integrations/__pycache__/guardian.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/integrations/__pycache__/guardian.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/management/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/management/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/management/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/management/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/management/commands/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/management/commands/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/management/commands/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/management/commands/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/management/commands/__pycache__/export_schema.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/management/commands/__pycache__/export_schema.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/management/commands/__pycache__/export_schema.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/management/commands/__pycache__/export_schema.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/middlewares/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/middlewares/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/middlewares/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/middlewares/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/middlewares/__pycache__/debug_toolbar.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/middlewares/__pycache__/debug_toolbar.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/middlewares/__pycache__/debug_toolbar.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/middlewares/__pycache__/debug_toolbar.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/mutations/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/mutations/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/mutations/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/mutations/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/mutations/__pycache__/fields.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/mutations/__pycache__/fields.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/mutations/__pycache__/mutations.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/mutations/__pycache__/mutations.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/mutations/__pycache__/types.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/mutations/__pycache__/types.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/test/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/test/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/test/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/test/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/test/__pycache__/client.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/test/__pycache__/client.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/inspect.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/inspect.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/patches.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/patches.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/patches.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/patches.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/pyutils.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/pyutils.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/pyutils.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/pyutils.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/query.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/query.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/requests.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/requests.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/typing.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/typing.cpython-312.pyc' './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/typing.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/strawberry_django/utils/__pycache__/typing.cpython-312.opt-1.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.58836 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd strawberry-django-0.52.1 + export DJANGO_SETTINGS_MODULE=tests.django_settings + DJANGO_SETTINGS_MODULE=tests.django_settings + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export NO_INTERNET=YES + NO_INTERNET=YES + /usr/bin/python3 -m pyproject_installer run -- python3 -m pytest INFO : Creating venv INFO : Installing console scripts INFO : Installing package: /usr/src/RPM/BUILD/strawberry-django-0.52.1/dist/strawberry_graphql_django-0.52.1-py3-none-any.whl INFO : Running command: ['/usr/src/RPM/BUILD/strawberry-django-0.52.1/.run_venv/bin/python3', '-m', 'pyproject_installer', 'install', '/usr/src/RPM/BUILD/strawberry-django-0.52.1/dist/strawberry_graphql_django-0.52.1-py3-none-any.whl'] INFO : Running command: ['python3', '-m', 'pytest'] /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session" warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 django: version: 5.0.10, settings: tests.django_settings (from env) rootdir: /usr/src/RPM/BUILD/strawberry-django-0.52.1 configfile: pyproject.toml testpaths: tests plugins: anyio-4.8.0, Faker-33.3.1, asyncio-0.25.2, cov-5.0.0, django-4.9.0, mock-3.14.0, snapshot-0.0.0 asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=None collected 762 items tests/auth/test_mutations.py EEEEEE [ 0%] tests/auth/test_queries.py EE [ 1%] tests/fields/test_get_result.py EEEEEE [ 1%] tests/filters/test_filters.py EEEEEEEEEEEEEEEEEE [ 4%] tests/filters/test_filters_v2.py EEE [ 4%] tests/mutations/test_batch_mutations.py EEEEEE [ 5%] tests/mutations/test_mutations.py EEEEEEEEEEEEEEE [ 7%] tests/mutations/test_partial_updates.py EEEEEEEEEEEEEEEEEE [ 9%] tests/mutations/test_permission_classes.py EEE [ 10%] tests/mutations/test_relationship.py EEEEEE [ 10%] tests/queries/test_fields.py EEEE [ 11%] tests/queries/test_files.py EE [ 11%] tests/queries/test_m2m_through.py E [ 11%] tests/queries/test_relations.py EEEEEEEEEEEE [ 13%] tests/queries/test_sync.py EE [ 13%] tests/test_ordering.py EEEEE [ 14%] tests/test_pagination.py EEE [ 14%] tests/fields/test_relations.py E [ 14%] tests/filters/test_filters.py EEEE [ 15%] tests/filters/test_filters_v2.py E [ 15%] tests/mutations/test_mutations.py EEE [ 15%] tests/node_polymorphism/test_optimizer.py E [ 16%] tests/polymorphism/test_optimizer.py E [ 16%] tests/queries/test_async.py EE [ 16%] tests/queries/test_fields.py EEEE [ 16%] tests/relay/mptt/test_nested_children.py EE [ 17%] tests/relay/test_fields.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 23%] EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 28%] tests/relay/test_nested_pagination.py EEEE [ 28%] tests/relay/test_types.py EEEEEEEEEEEEEEEEEEEEEEE [ 31%] tests/test_descriptors.py EE [ 31%] tests/test_enums.py E [ 32%] tests/test_field_permissions.py EEEE [ 32%] tests/test_input_mutations.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 38%] EEEEEEEEEEEEEEEEEEEEEEEEEE [ 41%] tests/test_optimizer.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 47%] EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] tests/test_paginated_type.py EEEEEEEEEE [ 57%] tests/test_pagination.py EEEEEEE [ 58%] tests/test_permissions.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 64%] EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 74%] EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 79%] tests/test_queries.py EEEEEEEEEEEEE [ 81%] tests/auth/test_types.py .. [ 81%] tests/extensions/test_validation_cache.py . [ 81%] tests/fields/test_attributes.py ..... [ 82%] tests/fields/test_input.py ...... [ 83%] tests/fields/test_ref.py . [ 83%] tests/fields/test_relations.py .. [ 83%] tests/fields/test_types.py ............... [ 85%] tests/filters/test_filters.py .. [ 85%] tests/filters/test_filters_v2.py ..................... [ 88%] tests/filters/test_types.py ....... [ 89%] tests/projects/test_schema.py .. [ 89%] tests/relay/lazy/test_lazy_annotations.py . [ 90%] tests/relay/mptt/test_lazy_annotations.py . [ 90%] tests/relay/test_schema.py . [ 90%] tests/test_apps.py .. [ 90%] tests/test_commands.py .. [ 90%] tests/test_enums.py .... [ 91%] tests/test_ordering.py ................ [ 93%] tests/test_paginated_type.py . [ 93%] tests/test_pyutils.py .. [ 93%] tests/test_relay.py ... [ 94%] tests/test_settings.py .. [ 94%] tests/test_type.py .... [ 95%] tests/test_types.py .................... [ 97%] tests/types2/test_input.py .......... [ 98%] tests/types2/test_type.py ........ [100%] ==================================== ERRORS ==================================== _________________________ ERROR at setup of test_login _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_login_with_wrong_password _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________________ ERROR at setup of test_logout _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_logout_without_logged_in ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_register_new_user ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_register_with_invalid_password _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________________ ERROR at setup of test_current_user ______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_current_user_not_logged_in _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_resolve_returns_queryset_with_fetched_results _____ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_resolve_returns_queryset_with_fetched_results_async __ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_resolve_returns_queryset_without_fetching_results_when_disabling_it _ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_resolve_returns_queryset_without_fetching_results_when_disabling_it_async _ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_resolve_returns_queryset_without_fetching_results_for_connections _ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_resolve_returns_queryset_without_fetching_results_for_connections_async _ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_without_filtering ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________________ ERROR at setup of test_exact _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________________ ERROR at setup of test_lt_gt _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________________ ERROR at setup of test_in_list ________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________________ ERROR at setup of test_not __________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________________ ERROR at setup of test_and __________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________________ ERROR at setup of test_or ___________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________________ ERROR at setup of test_relationship ______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_field_filter_method __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_type_filter_method ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________________ ERROR at setup of test_resolver_filter ____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_resolver_filter_with_inheritance ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_resolver_filter_with_info _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_resolver_filter_override_with_info ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_resolver_nonfilter ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________________ ERROR at setup of test_enum __________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_enum_lookup_exact ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________________ ERROR at setup of test_enum_lookup_in _____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________________ ERROR at setup of test_filter_methods _____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________________ ERROR at setup of test_filter_distinct ____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________________ ERROR at setup of test_filter_none ______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________________ ERROR at setup of test_batch_create ______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_batch_delete_with_filter ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_batch_delete_with_filter_empty_list __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_batch_update_with_filter ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_batch_update_with_filter_empty_list __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________________ ERROR at setup of test_batch_patch ______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________________ ERROR at setup of test_create _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_create_with_optional_file _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_create_with_optional_file_when_not_setting_it _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_update_with_optional_file_when_unsetting_it ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_with_required_file_fails ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________________ ERROR at setup of test_create_many ______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________________ ERROR at setup of test_update _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_update_m2m_with_validation_error ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_update_m2m_with_new_different_objects _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_update_m2m_with_duplicates _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_update_lazy_object ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_update_with_filters __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________________ ERROR at setup of test_delete _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_delete_lazy_object ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_delete_with_filters __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________________ ERROR at setup of test_field_required _____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_field_optional_and_non_nullable ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_field_optional_and_nullable ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_foreign_key_required __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_foreign_key_optional __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________________ ERROR at setup of test_many_to_many ______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_many_to_many_set ____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_many_to_many_add ____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_many_to_many_remove __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_relay_field_required __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_relay_field_optional_and_non_nullable _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_relay_field_optional_and_nullable ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_relay_foreign_key_required _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_relay_foreign_key_optional _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_relay_many_to_many ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_relay_many_to_many_set _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_relay_many_to_many_add _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_relay_many_to_many_remove _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________________ ERROR at setup of test_create _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________________ ERROR at setup of test_update _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________________ ERROR at setup of test_delete _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_create_one_to_many ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_update_one_to_many ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_patch_one_to_many ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_update_many_to_one ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_create_many_to_many __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_update_many_to_many __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________________ ERROR at setup of test_field_name _______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_relational_field_name _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_foreign_key_id_with_auto ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_foreign_key_id_with_explicit_type ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________________ ERROR at setup of test_file __________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________________ ERROR at setup of test_image _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________________ ERROR at setup of test_query _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_foreign_key_relation[optimizer_enabled] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_foreign_key_relation[optimizer_disabled] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_foreign_key_relation_reversed[optimizer_enabled] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_foreign_key_relation_reversed[optimizer_disabled] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_one_to_one_relation[optimizer_enabled] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_one_to_one_relation[optimizer_disabled] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_one_to_one_relation_reversed[optimizer_enabled] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_one_to_one_relation_reversed[optimizer_disabled] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_many_to_many_relation[optimizer_enabled] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_many_to_many_relation[optimizer_disabled] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_many_to_many_relation_reversed[optimizer_enabled] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_many_to_many_relation_reversed[optimizer_disabled] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_query[optimizer_enabled] ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_query[optimizer_disabled] _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________________ ERROR at setup of test_asc __________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________________ ERROR at setup of test_desc __________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________________ ERROR at setup of test_relationship ______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_arguments_order_respected _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________________ ERROR at setup of test_order_nulls ______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________________ ERROR at setup of test_pagination _______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_pagination_of_filtered_query ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_resolver_pagination __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________________ ERROR at setup of test_relation_query _____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_async_resolver_filter _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_adds_id_filter[True] __________________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_adds_id_filter[False] _________________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_pk_inserted_for_root_field_only ____________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_async_resolver_filter _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________________ ERROR at setup of test_create_async ______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________________ ERROR at setup of test_create_geo _______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________________ ERROR at setup of test_update_geo _______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_polymorphic_interface_query ______________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_polymorphic_interface_query ______________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_query[optimizer_enabled] ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_query[optimizer_disabled] _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________________ ERROR at setup of test_sync_resolver _____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________________ ERROR at setup of test_async_resolver _____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_geo_data[optimizer_enabled] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_geo_data[optimizer_disabled] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_nested_children_total_count ______________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_nested_children_total_count_no_children ________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________________ ERROR at setup of test_query_node _______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_query_node_with_async_permissions ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_query_node_optional __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_query_node_async ____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_query_node_optional_async _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________________ ERROR at setup of test_query_nodes ______________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_query_nodes_optional __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_query_nodes_async ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_query_nodes_optional_async _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_query_connection[fruits] ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_query_connection[fruitsLazy] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_query_connection[fruitsWithFiltersAndOrder] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_query_connection[fruitsCustomResolver] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_query_connection_async[fruits] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_connection_async[fruitsLazy] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_query_connection_async[fruitsWithFiltersAndOrder] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_query_connection_async[fruitsCustomResolver] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_async[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_query_connection_filtering_first[fruits] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_query_connection_filtering_first[fruitsLazy] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first[fruitsCustomResolver] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_query_connection_filtering_first_async[fruits] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_query_connection_filtering_first_async[fruitsLazy] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_async[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_async[fruitsCustomResolver] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_async[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_query_connection_filtering_first_with_after[fruits] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_after[fruitsLazy] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_after[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_after[fruitsCustomResolver] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_after[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_after_async[fruits] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_after_async[fruitsLazy] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_after_async[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_after_async[fruitsCustomResolver] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_after_async[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_query_connection_filtering_last[fruits] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_query_connection_filtering_last[fruitsLazy] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last[fruitsCustomResolver] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_query_connection_filtering_last_async[fruits] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_query_connection_filtering_last_async[fruitsLazy] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_async[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_async[fruitsCustomResolver] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_async[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_before[fruits] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_before[fruitsLazy] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_before[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_before[fruitsCustomResolver] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_before[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_before_async[fruits] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_before_async[fruitsLazy] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_before_async[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_before_async[fruitsCustomResolver] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_first_with_before_async[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_query_connection_filtering_last_with_before[fruits] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_with_before[fruitsLazy] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_with_before[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_with_before[fruitsCustomResolver] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_with_before[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_with_before_async[fruits] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_with_before_async[fruitsLazy] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_with_before_async[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_with_before_async[fruitsCustomResolver] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_filtering_last_with_before_async[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_with_filters[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_with_filters[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_with_filters_and_order[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_with_filters_and_order[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_custom_resolver_filtering_first[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_custom_resolver_filtering_first[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_custom_resolver_filtering_first_with_after[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_custom_resolver_filtering_first_with_after[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_custom_resolver_filtering_last[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_custom_resolver_filtering_last[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_custom_resolver_filtering_last_with_before[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_custom_resolver_filtering_last_with_before[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_total_count_sql_queries[fruitsWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_connection_total_count_sql_queries[fruitsCustomResolverWithFiltersAndOrder] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_nested_pagination[sync] ________________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_nested_pagination[async] ________________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_nested_pagination[sync_no_optimizer] __________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_nested_pagination[async_no_optimizer] _________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_global_id_wrong_type_name[None] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_global_id_wrong_type_name[1] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_global_id_wrong_type_name[1.1] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_global_id_wrong_type_node_id[None] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_global_id_wrong_type_node_id[1] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_global_id_wrong_type_node_id[1.1] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_global_id_from_id ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_global_id_from_id_error[foobar] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_global_id_from_id_error[value1] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_global_id_from_id_error[123] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_global_id_resolve_type _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_global_id_resolve_node_sync ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_global_id_resolve_node_sync_non_existing ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_global_id_resolve_node_sync_non_existing_but_required _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_global_id_resolve_node_sync_ensure_type ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_global_id_resolve_node_sync_ensure_type_with_union ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_global_id_resolve_node_sync_ensure_type_wrong_type ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_global_id_resolve_node _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_global_id_resolve_node_non_existing __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_global_id_resolve_node_non_existing_but_required ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_global_id_resolve_node_ensure_type ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_global_id_resolve_node_ensure_type_with_union _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_global_id_resolve_node_ensure_type_wrong_type _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________________ ERROR at setup of test_model_property _____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_model_property_async __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_create_mutation_with_generated_enum_input _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_with_async_permission _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_with_async_permission_and_optimizer __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_with_sync_permission __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_with_sync_permission_and_optimizer ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_input_mutation[sync] __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_input_mutation[async] _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_input_mutation[sync_no_optimizer] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_input_mutation[async_no_optimizer] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_input_mutation_with_internal_error_code[sync] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_input_mutation_with_internal_error_code[async] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_mutation_with_internal_error_code[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_mutation_with_internal_error_code[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_input_mutation_with_explicit_error_code[sync] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_input_mutation_with_explicit_error_code[async] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_mutation_with_explicit_error_code[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_mutation_with_explicit_error_code[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_input_mutation_with_errors[sync] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_input_mutation_with_errors[async] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_input_mutation_with_errors[sync_no_optimizer] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_input_mutation_with_errors[async_no_optimizer] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_input_create_mutation[sync] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_input_create_mutation[async] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_input_create_mutation[sync_no_optimizer] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_input_create_mutation[async_no_optimizer] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_input_create_mutation_nested_creation[sync] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_input_create_mutation_nested_creation[async] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_create_mutation_nested_creation[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_create_mutation_nested_creation[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_input_create_with_m2m_mutation[sync] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_input_create_with_m2m_mutation[async] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_input_create_with_m2m_mutation[sync_no_optimizer] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_input_create_with_m2m_mutation[async_no_optimizer] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_input_update_mutation[sync] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_input_update_mutation[async] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_input_update_mutation[sync_no_optimizer] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_input_update_mutation[async_no_optimizer] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_input_nested_update_mutation[sync] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_input_nested_update_mutation[async] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_input_nested_update_mutation[sync_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_input_nested_update_mutation[async_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_input_update_m2m_set_not_null_mutation[sync] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_input_update_m2m_set_not_null_mutation[async] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_update_m2m_set_not_null_mutation[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_update_m2m_set_not_null_mutation[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_input_update_m2m_set_mutation[sync] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_input_update_m2m_set_mutation[async] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_input_update_m2m_set_mutation[sync_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_input_update_m2m_set_mutation[async_no_optimizer] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_input_update_m2m_set_through_mutation[sync] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_input_update_m2m_set_through_mutation[async] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_update_m2m_set_through_mutation[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_update_m2m_set_through_mutation[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_input_update_mutation_with_key_attr[sync] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_input_update_mutation_with_key_attr[async] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_update_mutation_with_key_attr[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_update_mutation_with_key_attr[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_input_delete_mutation[sync] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_input_delete_mutation[async] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_input_delete_mutation[sync_no_optimizer] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_input_delete_mutation[async_no_optimizer] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_input_delete_mutation_with_key_attr[sync] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_input_delete_mutation_with_key_attr[async] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_delete_mutation_with_key_attr[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_input_delete_mutation_with_key_attr[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_mutation_full_clean_without_kwargs[sync] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_mutation_full_clean_without_kwargs[async] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_mutation_full_clean_without_kwargs[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_mutation_full_clean_without_kwargs[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_mutation_full_clean_with_kwargs[sync] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_mutation_full_clean_with_kwargs[async] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_mutation_full_clean_with_kwargs[sync_no_optimizer] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_mutation_full_clean_with_kwargs[async_no_optimizer] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_user_query[sync] ____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_user_query[async] ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_user_query[sync_no_optimizer] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_user_query[async_no_optimizer] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_staff_query[sync] ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_staff_query[async] ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_staff_query[sync_no_optimizer] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_staff_query[async_no_optimizer] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_interface_query[sync] _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_interface_query[async] _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_interface_query[sync_no_optimizer] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_interface_query[async_no_optimizer] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_query_forward[sync] __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_query_forward[async] __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_query_forward[sync_no_optimizer] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_query_forward[async_no_optimizer] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_forward_with_interfaces[sync] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_query_forward_with_interfaces[async] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_query_forward_with_interfaces[sync_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_query_forward_with_interfaces[async_no_optimizer] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_forward_with_fragments[sync] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_forward_with_fragments[async] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_query_forward_with_fragments[sync_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_query_forward_with_fragments[async_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_query_prefetch[sync] __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_query_prefetch[async] _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_query_prefetch[sync_no_optimizer] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_prefetch[async_no_optimizer] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_prefetch_with_callable[sync] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_prefetch_with_callable[async] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_query_prefetch_with_callable[sync_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_query_prefetch_with_callable[async_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_prefetch_with_fragments[sync] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_query_prefetch_with_fragments[async] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_query_prefetch_with_fragments[sync_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_query_prefetch_with_fragments[async_no_optimizer] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_query_connection_with_resolver[sync] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_query_connection_with_resolver[async] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_query_connection_with_resolver[sync_no_optimizer] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_query_connection_with_resolver[async_no_optimizer] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_query_connection_nested[sync] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_query_connection_nested[async] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_query_connection_nested[sync_no_optimizer] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_query_connection_nested[async_no_optimizer] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_query_nested_fragments[sync] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_query_nested_fragments[async] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_query_nested_fragments[sync_no_optimizer] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_query_nested_fragments[async_no_optimizer] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_query_annotate[sync] __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_query_annotate[async] _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_query_annotate[sync_no_optimizer] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_annotate[async_no_optimizer] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_annotate_with_callable[sync] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_annotate_with_callable[async] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_query_annotate_with_callable[sync_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_query_annotate_with_callable[async_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_user_query_with_prefetch ________________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_query_select_related_with_only[sync] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_query_select_related_with_only[async] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_query_select_related_with_only[sync_no_optimizer] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_query_select_related_with_only[async_no_optimizer] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_query_select_related_without_only[sync] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_query_select_related_without_only[async] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_select_related_without_only[sync_no_optimizer] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_select_related_without_only[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_handles_existing_select_related[sync] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_handles_existing_select_related[async] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_handles_existing_select_related[sync_no_optimizer] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_handles_existing_select_related[async_no_optimizer] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_query_nested_connection_with_filter[sync] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_query_nested_connection_with_filter[async] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_nested_connection_with_filter[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_nested_connection_with_filter[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_query_with_optimizer_paginated_prefetch ________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_nested_prefetch_with_filter[sync] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_nested_prefetch_with_filter[async] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_nested_prefetch_with_filter[sync_no_optimizer] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_nested_prefetch_with_filter[async_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_nested_prefetch_with_filter_and_pagination[sync] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_nested_prefetch_with_filter_and_pagination[async] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_nested_prefetch_with_filter_and_pagination[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_nested_prefetch_with_filter_and_pagination[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_nested_prefetch_with_multiple_levels[sync] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_nested_prefetch_with_multiple_levels[async] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_nested_prefetch_with_multiple_levels[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_nested_prefetch_with_multiple_levels[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_nested_prefetch_with_get_queryset[sync] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_nested_prefetch_with_get_queryset[async] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_nested_prefetch_with_get_queryset[sync_no_optimizer] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_nested_prefetch_with_get_queryset[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_prefetch_hint_with_same_name_field_no_extra_queries __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_query_paginated[sync] _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_query_paginated[async] _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_paginated[sync_no_optimizer] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_query_paginated[async_no_optimizer] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_query_paginated_nested[sync] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_query_paginated_nested[async] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_query_paginated_nested[sync_no_optimizer] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_query_paginated_nested[async_no_optimizer] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_prefetch_multi_field_single_optional[sync] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_prefetch_multi_field_single_optional[async] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_prefetch_multi_field_single_optional[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_prefetch_multi_field_single_optional[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_prefetch_multi_field_single_required[sync] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_prefetch_multi_field_single_required[async] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_prefetch_multi_field_single_required[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_prefetch_multi_field_single_required[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_prefetch_multi_field_single_required_missing[sync] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_prefetch_multi_field_single_required_missing[async] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_prefetch_multi_field_single_required_missing[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_prefetch_multi_field_single_required_missing[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_prefetch_multi_field_single_required_multiple_returned[sync] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_prefetch_multi_field_single_required_multiple_returned[async] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_prefetch_multi_field_single_required_multiple_returned[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_prefetch_multi_field_single_required_multiple_returned[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_pagination_query ____________________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_pagination_query_async _________________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_pagination_with_lazy_type_and_django_query_optimizer __ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_pagination_nested_query ________________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_pagination_nested_query_async _____________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_pagination_query_with_subclass _____________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_pagination_query_with_resolver_schema _________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_pagination_query_with_resolver _____________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_pagination_query_with_resolver_arguments ________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_pagination_default_limit ________________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_nested_pagination[sync] ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_nested_pagination[async] ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_nested_pagination[sync_no_optimizer] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_nested_pagination[async_no_optimizer] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_apply_window_pagination ________________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_apply_window_pagination_with_no_limites[-1] ______ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_apply_window_pagination_with_no_limites[9223372036854775807] _ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_is_authenticated[sync] _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________ ERROR at setup of test_is_authenticated[async] ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_is_authenticated[sync_no_optimizer] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_is_authenticated[async_no_optimizer] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_is_authenticated_optional[sync] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_is_authenticated_optional[async] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_is_authenticated_optional[sync_no_optimizer] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_is_authenticated_optional[async_no_optimizer] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_staff_required[sync] __________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________ ERROR at setup of test_staff_required[async] _________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_staff_required[sync_no_optimizer] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_staff_required[async_no_optimizer] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_staff_required_optional[sync] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_staff_required_optional[async] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_staff_required_optional[sync_no_optimizer] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_staff_required_optional[async_no_optimizer] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_superuser_required[sync] ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_superuser_required[async] _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_superuser_required[sync_no_optimizer] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_superuser_required[async_no_optimizer] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_async_user_resolve[sync] ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_async_user_resolve[async] _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_async_user_resolve[sync_no_optimizer] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_async_user_resolve[async_no_optimizer] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_superuser_required_optional[sync] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_superuser_required_optional[async] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_superuser_required_optional[sync_no_optimizer] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_superuser_required_optional[async_no_optimizer] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_perm_cached[sync] ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_perm_cached[async] ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_perm_cached[sync_no_optimizer] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_perm_cached[async_no_optimizer] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_perm_required[sync-user] ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_perm_required[sync-group] _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_perm_required[sync-superuser] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_perm_required[async-user] _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_perm_required[async-group] _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_perm_required[async-superuser] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_perm_required[sync_no_optimizer-user] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_perm_required[sync_no_optimizer-group] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_perm_required[sync_no_optimizer-superuser] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_perm_required[async_no_optimizer-user] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_perm_required[async_no_optimizer-group] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_perm_required[async_no_optimizer-superuser] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_perm_required_optional[sync-user] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_perm_required_optional[sync-group] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_perm_required_optional[sync-superuser] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_perm_required_optional[async-user] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_perm_required_optional[async-group] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_perm_required_optional[async-superuser] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_perm_required_optional[sync_no_optimizer-user] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_perm_required_optional[sync_no_optimizer-group] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_perm_required_optional[sync_no_optimizer-superuser] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_perm_required_optional[async_no_optimizer-user] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_perm_required_optional[async_no_optimizer-group] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_perm_required_optional[async_no_optimizer-superuser] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_list_perm_required[sync-user] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_list_perm_required[sync-group] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_list_perm_required[sync-superuser] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_list_perm_required[async-user] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_list_perm_required[async-group] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_list_perm_required[async-superuser] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_list_perm_required[sync_no_optimizer-user] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_list_perm_required[sync_no_optimizer-group] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_list_perm_required[sync_no_optimizer-superuser] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_list_perm_required[async_no_optimizer-user] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_list_perm_required[async_no_optimizer-group] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_list_perm_required[async_no_optimizer-superuser] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_conn_perm_required[sync-user] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_conn_perm_required[sync-group] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_conn_perm_required[sync-superuser] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_conn_perm_required[async-user] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_conn_perm_required[async-group] ____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_conn_perm_required[async-superuser] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_conn_perm_required[sync_no_optimizer-user] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_conn_perm_required[sync_no_optimizer-group] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_conn_perm_required[sync_no_optimizer-superuser] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_conn_perm_required[async_no_optimizer-user] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_conn_perm_required[async_no_optimizer-group] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_conn_perm_required[async_no_optimizer-superuser] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_obj_perm_required[sync-user] ______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_obj_perm_required[sync-group] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_obj_perm_required[sync-superuser] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________ ERROR at setup of test_obj_perm_required[async-user] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________ ERROR at setup of test_obj_perm_required[async-group] _____________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_obj_perm_required[async-superuser] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_obj_perm_required[sync_no_optimizer-user] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_obj_perm_required[sync_no_optimizer-group] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_obj_perm_required[sync_no_optimizer-superuser] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_obj_perm_required[async_no_optimizer-user] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_obj_perm_required[async_no_optimizer-group] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_obj_perm_required[async_no_optimizer-superuser] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_obj_perm_required_global[sync-user] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_obj_perm_required_global[sync-group] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_obj_perm_required_global[sync-superuser] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_obj_perm_required_global[async-user] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_obj_perm_required_global[async-group] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______ ERROR at setup of test_obj_perm_required_global[async-superuser] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_obj_perm_required_global[sync_no_optimizer-user] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_obj_perm_required_global[sync_no_optimizer-group] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_obj_perm_required_global[sync_no_optimizer-superuser] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_obj_perm_required_global[async_no_optimizer-user] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_obj_perm_required_global[async_no_optimizer-group] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_obj_perm_required_global[async_no_optimizer-superuser] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_obj_perm_required_optional[sync-user] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_obj_perm_required_optional[sync-group] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_obj_perm_required_optional[sync-superuser] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_obj_perm_required_optional[async-user] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_obj_perm_required_optional[async-group] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_obj_perm_required_optional[async-superuser] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_obj_perm_required_optional[sync_no_optimizer-user] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_obj_perm_required_optional[sync_no_optimizer-group] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_obj_perm_required_optional[sync_no_optimizer-superuser] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_obj_perm_required_optional[async_no_optimizer-user] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_obj_perm_required_optional[async_no_optimizer-group] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_obj_perm_required_optional[async_no_optimizer-superuser] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_list_obj_perm_required[sync-user] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_list_obj_perm_required[sync-group] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_list_obj_perm_required[sync-superuser] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_list_obj_perm_required[async-user] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_list_obj_perm_required[async-group] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_list_obj_perm_required[async-superuser] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_list_obj_perm_required[sync_no_optimizer-user] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_list_obj_perm_required[sync_no_optimizer-group] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_list_obj_perm_required[sync_no_optimizer-superuser] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_list_obj_perm_required[async_no_optimizer-user] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_list_obj_perm_required[async_no_optimizer-group] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_list_obj_perm_required[async_no_optimizer-superuser] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_list_obj_perm_required_paginated[sync-user] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_list_obj_perm_required_paginated[sync-group] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_list_obj_perm_required_paginated[sync-superuser] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_list_obj_perm_required_paginated[async-user] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____ ERROR at setup of test_list_obj_perm_required_paginated[async-group] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_list_obj_perm_required_paginated[async-superuser] ___ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_list_obj_perm_required_paginated[sync_no_optimizer-user] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_list_obj_perm_required_paginated[sync_no_optimizer-group] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_list_obj_perm_required_paginated[sync_no_optimizer-superuser] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_list_obj_perm_required_paginated[async_no_optimizer-user] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_list_obj_perm_required_paginated[async_no_optimizer-group] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_list_obj_perm_required_paginated[async_no_optimizer-superuser] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________ ERROR at setup of test_conn_obj_perm_required[sync-user] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_conn_obj_perm_required[sync-group] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_conn_obj_perm_required[sync-superuser] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_conn_obj_perm_required[async-user] ___________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________ ERROR at setup of test_conn_obj_perm_required[async-group] __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_conn_obj_perm_required[async-superuser] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_conn_obj_perm_required[sync_no_optimizer-user] _____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_conn_obj_perm_required[sync_no_optimizer-group] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_conn_obj_perm_required[sync_no_optimizer-superuser] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____ ERROR at setup of test_conn_obj_perm_required[async_no_optimizer-user] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___ ERROR at setup of test_conn_obj_perm_required[async_no_optimizer-group] ____ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_conn_obj_perm_required[async_no_optimizer-superuser] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_query_paginated_with_permissions[sync] _________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________ ERROR at setup of test_query_paginated_with_permissions[async] ________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __ ERROR at setup of test_query_paginated_with_permissions[sync_no_optimizer] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_paginated_with_permissions[async_no_optimizer] __ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_query_paginated_with_obj_permissions[sync] _______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______ ERROR at setup of test_query_paginated_with_obj_permissions[async] ______ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_paginated_with_obj_permissions[sync_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _ ERROR at setup of test_query_paginated_with_obj_permissions[async_no_optimizer] _ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ________________________ ERROR at setup of test_single _________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured __________________ ERROR at setup of test_required_pk_single ___________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ____________________ ERROR at setup of test_id_as_pk_single ____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________ ERROR at setup of test_required_id_as_pk_single ________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________________________ ERROR at setup of test_many __________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _______________________ ERROR at setup of test_relation ________________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_reverse_relation ____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _____________________ ERROR at setup of test_type_queryset _____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured _________ ERROR at setup of test_querying_type_implementing_interface __________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_model_properties ____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ___________________ ERROR at setup of test_query_file_field ____________________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________ ERROR at setup of test_query_file_field_when_null _______________ request = > django_test_environment = None django_db_blocker = django_db_use_migrations = False, django_db_keepdb = False django_db_createdb = False, django_db_modify_db_settings = None @pytest.fixture(scope="session") def django_db_setup( request: pytest.FixtureRequest, django_test_environment: None, django_db_blocker: DjangoDbBlocker, django_db_use_migrations: bool, django_db_keepdb: bool, django_db_createdb: bool, django_db_modify_db_settings: None, ) -> Generator[None, None, None]: """Top level fixture to ensure test databases are available""" from django.test.utils import setup_databases, teardown_databases setup_databases_args = {} if not django_db_use_migrations: _disable_migrations() if django_db_keepdb and not django_db_createdb: setup_databases_args["keepdb"] = True with django_db_blocker.unblock(): > db_cfg = setup_databases( verbosity=request.config.option.verbose, interactive=False, **setup_databases_args, ) /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured ______________________ ERROR at setup of test_field_name _______________________ request = > @pytest.fixture(autouse=True) def _django_db_marker(request: pytest.FixtureRequest) -> None: """Implement the django_db marker, internal to pytest-django.""" marker = request.node.get_closest_marker("django_db") if marker: > request.getfixturevalue("_django_db_helper") /usr/lib/python3/site-packages/pytest_django/plugin.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_django/fixtures.py:144: in django_db_setup db_cfg = setup_databases( /usr/lib/python3/site-packages/django/test/utils.py:203: in setup_databases connection.creation.create_test_db( /usr/lib/python3/site-packages/django/db/backends/base/creation.py:78: in create_test_db call_command( /usr/lib/python3/site-packages/django/core/management/__init__.py:194: in call_command return command.execute(*args, **defaults) /usr/lib/python3/site-packages/django/core/management/base.py:459: in execute output = self.handle(*args, **options) /usr/lib/python3/site-packages/pytest_django/fixtures.py:309: in handle return super().handle(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/base.py:107: in wrapper res = handle_func(*args, **kwargs) /usr/lib/python3/site-packages/django/core/management/commands/migrate.py:115: in handle connection.prepare_database() /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:73: in prepare_database with self.cursor() as cursor: /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:316: in cursor return self._cursor() /usr/lib/python3/site-packages/django/db/backends/base/base.py:292: in _cursor self.ensure_connection() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:275: in ensure_connection self.connect() /usr/lib/python3/site-packages/django/utils/asyncio.py:26: in inner return func(*args, **kwargs) /usr/lib/python3/site-packages/django/db/backends/base/base.py:256: in connect self.connection = self.get_new_connection(conn_params) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn_params = {'check_same_thread': False, 'database': 'file:memorydb_default?mode=memory&cache=shared', 'detect_types': 3, 'uri': True} def get_new_connection(self, conn_params): conn = super().get_new_connection(conn_params) # Enabling extension loading on the SQLite connection. try: conn.enable_load_extension(True) except AttributeError: raise ImproperlyConfigured( "SpatiaLite requires SQLite to be configured to allow " "extension loading." ) # Load the SpatiaLite library extension on the connection. for path in self.lib_spatialite_paths: try: conn.load_extension(path) except Exception: if getattr(settings, "SPATIALITE_LIBRARY_PATH", None): raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension " "as specified in your SPATIALITE_LIBRARY_PATH setting." ) continue else: break else: > raise ImproperlyConfigured( "Unable to load the SpatiaLite library extension. " "Library names tried: %s" % ", ".join(self.lib_spatialite_paths) ) E django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension. Library names tried: mod_spatialite.so, mod_spatialite, libspatialite.so.7 /usr/lib/python3/site-packages/django/contrib/gis/db/backends/spatialite/base.py:64: ImproperlyConfigured =============================== warnings summary =============================== ../../../../lib64/python3/site-packages/pkg_resources/__init__.py:3142 /usr/lib64/python3/site-packages/pkg_resources/__init__.py:3142: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('paste')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------- coverage: platform linux, python 3.12.8-final-0 ----------- Name Stmts Miss Cover Missing --------------------------------------------------------------------------------------- strawberry_django/arguments.py 10 1 90.00% 17 strawberry_django/auth/mutations.py 59 34 42.37% 23-24, 33-55, 60-75, 80-88 strawberry_django/auth/queries.py 12 4 66.67% 18-23 strawberry_django/auth/utils.py 20 13 35.00% 20-38, 58 strawberry_django/descriptors.py 51 13 74.51% 77-86, 90-92, 98, 208 strawberry_django/exceptions.py 31 2 93.55% 61-62 strawberry_django/fields/base.py 123 9 92.68% 44, 109-112, 119, 125, 169, 242, 256, 259 strawberry_django/fields/field.py 229 103 55.02% 149, 159, 176, 178, 184-186, 195, 203-218, 232, 236-252, 255, 258-261, 269-312, 317-330, 360-362, 374, 390-416, 436-459, 474, 492-522, 920, 1101 strawberry_django/fields/filter_order.py 108 5 95.37% 100, 116, 144-145, 384 strawberry_django/fields/types.py 226 28 87.61% 48, 109-112, 115, 153-156, 159, 162, 198-201, 209, 221-224, 227, 276-284, 421, 599 strawberry_django/filters.py 166 31 81.33% 68, 133-135, 145-152, 172-173, 195-196, 198-211, 223, 231, 259-261, 264, 277, 300, 351-354 strawberry_django/integrations/guardian.py 22 22 0.00% 1-35 strawberry_django/management/commands/export_schema.py 22 1 95.45% 36 strawberry_django/middlewares/debug_toolbar.py 123 123 0.00% 3-199 strawberry_django/mutations/fields.py 193 108 44.04% 52-55, 59-91, 99-104, 124-126, 137, 165-184, 213-216, 222, 234-235, 238-261, 274-298, 301-304, 314, 322-330, 343-354, 362-386, 396, 419-446, 458 strawberry_django/mutations/mutations.py 29 2 93.10% 133, 238 strawberry_django/mutations/resolvers.py 269 239 11.15% 61-82, 92-109, 154-215, 236-300, 339-384, 423-462, 487-504, 508-522, 533-684 strawberry_django/mutations/types.py 31 6 80.65% 29-36 strawberry_django/optimizer.py 478 378 20.92% 157, 162-166, 169-171, 219-242, 257-281, 290-345, 354-390, 400-405, 414-424, 430-438, 457-472, 495-589, 596, 611-612, 636-659, 668-683, 693-704, 722-772, 797-883, 900-972, 987-1091, 1098-1101, 1116-1178, 1193-1231, 1274-1336, 1340, 1347, 1353, 1416-1422, 1425-1429, 1439-1459, 1464-1468, 1477-1488 strawberry_django/ordering.py 146 38 73.97% 93-97, 139-157, 167-194, 200, 227, 247-248, 268-270 strawberry_django/pagination.py 139 60 56.83% 44, 52, 57-59, 85, 92, 100-105, 130-156, 190-221, 235-241, 250-273, 327, 338-361 strawberry_django/permissions.py 332 187 43.67% 59-64, 73, 80, 91-97, 101, 105-137, 212-235, 309-330, 339-363, 366-426, 456-459, 479-486, 506-513, 546, 557, 560-563, 566, 578-585, 589-596, 670, 673, 733-743, 758-778, 785-792, 801-813, 823-847, 857-874 strawberry_django/queryset.py 28 7 75.00% 32-40 strawberry_django/relay.py 144 106 26.39% 52-57, 71-119, 140-166, 297-361, 424-452, 470-471, 500-513 strawberry_django/resolvers.py 78 36 53.85% 30-41, 79, 86, 89, 92-97, 103-107, 128, 163, 182-186, 190-210 strawberry_django/routers.py 14 14 0.00% 1-53 strawberry_django/test/client.py 50 26 48.00% 18-19, 23, 31-37, 44-46, 51, 58, 70-94, 98-100 strawberry_django/type.py 197 8 95.94% 274, 288-295, 301, 333, 335 strawberry_django/utils/inspect.py 147 85 42.18% 48-57, 69, 98, 100, 102-104, 106, 108, 113, 135-143, 155-156, 160-162, 166-167, 171-173, 177-178, 182-184, 188, 192, 196, 200, 204, 208, 212, 216, 220, 223-285 strawberry_django/utils/query.py 82 71 13.41% 31-56, 68-211, 223 strawberry_django/utils/requests.py 8 5 37.50% 12-17 --------------------------------------------------------------------------------------- TOTAL 3773 1765 53.22% 19 files skipped due to complete coverage. =========================== short test summary info ============================ ERROR tests/auth/test_mutations.py::test_login - django.core.exceptions.Impro... ERROR tests/auth/test_mutations.py::test_login_with_wrong_password - django.c... ERROR tests/auth/test_mutations.py::test_logout - django.core.exceptions.Impr... ERROR tests/auth/test_mutations.py::test_logout_without_logged_in - django.co... ERROR tests/auth/test_mutations.py::test_register_new_user - django.core.exce... ERROR tests/auth/test_mutations.py::test_register_with_invalid_password - dja... ERROR tests/auth/test_queries.py::test_current_user - django.core.exceptions.... ERROR tests/auth/test_queries.py::test_current_user_not_logged_in - django.co... ERROR tests/fields/test_get_result.py::test_resolve_returns_queryset_with_fetched_results ERROR tests/fields/test_get_result.py::test_resolve_returns_queryset_with_fetched_results_async ERROR tests/fields/test_get_result.py::test_resolve_returns_queryset_without_fetching_results_when_disabling_it ERROR tests/fields/test_get_result.py::test_resolve_returns_queryset_without_fetching_results_when_disabling_it_async ERROR tests/fields/test_get_result.py::test_resolve_returns_queryset_without_fetching_results_for_connections ERROR tests/fields/test_get_result.py::test_resolve_returns_queryset_without_fetching_results_for_connections_async ERROR tests/filters/test_filters.py::test_without_filtering - django.core.exc... ERROR tests/filters/test_filters.py::test_exact - django.core.exceptions.Impr... ERROR tests/filters/test_filters.py::test_lt_gt - django.core.exceptions.Impr... ERROR tests/filters/test_filters.py::test_in_list - django.core.exceptions.Im... ERROR tests/filters/test_filters.py::test_not - django.core.exceptions.Improp... ERROR tests/filters/test_filters.py::test_and - django.core.exceptions.Improp... ERROR tests/filters/test_filters.py::test_or - django.core.exceptions.Imprope... ERROR tests/filters/test_filters.py::test_relationship - django.core.exceptio... ERROR tests/filters/test_filters.py::test_field_filter_method - django.core.e... ERROR tests/filters/test_filters.py::test_type_filter_method - django.core.ex... ERROR tests/filters/test_filters.py::test_resolver_filter - django.core.excep... ERROR tests/filters/test_filters.py::test_resolver_filter_with_inheritance - ... ERROR tests/filters/test_filters.py::test_resolver_filter_with_info - django.... ERROR tests/filters/test_filters.py::test_resolver_filter_override_with_info ERROR tests/filters/test_filters.py::test_resolver_nonfilter - django.core.ex... ERROR tests/filters/test_filters.py::test_enum - django.core.exceptions.Impro... ERROR tests/filters/test_filters.py::test_enum_lookup_exact - django.core.exc... ERROR tests/filters/test_filters.py::test_enum_lookup_in - django.core.except... ERROR tests/filters/test_filters_v2.py::test_filter_methods - django.core.exc... ERROR tests/filters/test_filters_v2.py::test_filter_distinct - django.core.ex... ERROR tests/filters/test_filters_v2.py::test_filter_none - django.core.except... ERROR tests/mutations/test_batch_mutations.py::test_batch_create - django.cor... ERROR tests/mutations/test_batch_mutations.py::test_batch_delete_with_filter ERROR tests/mutations/test_batch_mutations.py::test_batch_delete_with_filter_empty_list ERROR tests/mutations/test_batch_mutations.py::test_batch_update_with_filter ERROR tests/mutations/test_batch_mutations.py::test_batch_update_with_filter_empty_list ERROR tests/mutations/test_batch_mutations.py::test_batch_patch - django.core... ERROR tests/mutations/test_mutations.py::test_create - django.core.exceptions... ERROR tests/mutations/test_mutations.py::test_create_with_optional_file - dja... ERROR tests/mutations/test_mutations.py::test_create_with_optional_file_when_not_setting_it ERROR tests/mutations/test_mutations.py::test_update_with_optional_file_when_unsetting_it ERROR tests/mutations/test_mutations.py::test_with_required_file_fails - djan... ERROR tests/mutations/test_mutations.py::test_create_many - django.core.excep... ERROR tests/mutations/test_mutations.py::test_update - django.core.exceptions... ERROR tests/mutations/test_mutations.py::test_update_m2m_with_validation_error ERROR tests/mutations/test_mutations.py::test_update_m2m_with_new_different_objects ERROR tests/mutations/test_mutations.py::test_update_m2m_with_duplicates - dj... ERROR tests/mutations/test_mutations.py::test_update_lazy_object - django.cor... ERROR tests/mutations/test_mutations.py::test_update_with_filters - django.co... ERROR tests/mutations/test_mutations.py::test_delete - django.core.exceptions... ERROR tests/mutations/test_mutations.py::test_delete_lazy_object - django.cor... ERROR tests/mutations/test_mutations.py::test_delete_with_filters - django.co... ERROR tests/mutations/test_partial_updates.py::test_field_required - django.c... ERROR tests/mutations/test_partial_updates.py::test_field_optional_and_non_nullable ERROR tests/mutations/test_partial_updates.py::test_field_optional_and_nullable ERROR tests/mutations/test_partial_updates.py::test_foreign_key_required - dj... ERROR tests/mutations/test_partial_updates.py::test_foreign_key_optional - dj... ERROR tests/mutations/test_partial_updates.py::test_many_to_many - django.cor... ERROR tests/mutations/test_partial_updates.py::test_many_to_many_set - django... ERROR tests/mutations/test_partial_updates.py::test_many_to_many_add - django... ERROR tests/mutations/test_partial_updates.py::test_many_to_many_remove - dja... ERROR tests/mutations/test_partial_updates.py::test_relay_field_required - dj... ERROR tests/mutations/test_partial_updates.py::test_relay_field_optional_and_non_nullable ERROR tests/mutations/test_partial_updates.py::test_relay_field_optional_and_nullable ERROR tests/mutations/test_partial_updates.py::test_relay_foreign_key_required ERROR tests/mutations/test_partial_updates.py::test_relay_foreign_key_optional ERROR tests/mutations/test_partial_updates.py::test_relay_many_to_many - djan... ERROR tests/mutations/test_partial_updates.py::test_relay_many_to_many_set - ... ERROR tests/mutations/test_partial_updates.py::test_relay_many_to_many_add - ... ERROR tests/mutations/test_partial_updates.py::test_relay_many_to_many_remove ERROR tests/mutations/test_permission_classes.py::test_create - django.core.e... ERROR tests/mutations/test_permission_classes.py::test_update - django.core.e... ERROR tests/mutations/test_permission_classes.py::test_delete - django.core.e... ERROR tests/mutations/test_relationship.py::test_create_one_to_many - django.... ERROR tests/mutations/test_relationship.py::test_update_one_to_many - django.... ERROR tests/mutations/test_relationship.py::test_patch_one_to_many - django.c... ERROR tests/mutations/test_relationship.py::test_update_many_to_one - django.... ERROR tests/mutations/test_relationship.py::test_create_many_to_many - django... ERROR tests/mutations/test_relationship.py::test_update_many_to_many - django... ERROR tests/queries/test_fields.py::test_field_name - django.core.exceptions.... ERROR tests/queries/test_fields.py::test_relational_field_name - django.core.... ERROR tests/queries/test_fields.py::test_foreign_key_id_with_auto - django.co... ERROR tests/queries/test_fields.py::test_foreign_key_id_with_explicit_type - ... ERROR tests/queries/test_files.py::test_file - django.core.exceptions.Imprope... ERROR tests/queries/test_files.py::test_image - django.core.exceptions.Improp... ERROR tests/queries/test_m2m_through.py::test_query - django.core.exceptions.... ERROR tests/queries/test_relations.py::test_foreign_key_relation[optimizer_enabled] ERROR tests/queries/test_relations.py::test_foreign_key_relation[optimizer_disabled] ERROR tests/queries/test_relations.py::test_foreign_key_relation_reversed[optimizer_enabled] ERROR tests/queries/test_relations.py::test_foreign_key_relation_reversed[optimizer_disabled] ERROR tests/queries/test_relations.py::test_one_to_one_relation[optimizer_enabled] ERROR tests/queries/test_relations.py::test_one_to_one_relation[optimizer_disabled] ERROR tests/queries/test_relations.py::test_one_to_one_relation_reversed[optimizer_enabled] ERROR tests/queries/test_relations.py::test_one_to_one_relation_reversed[optimizer_disabled] ERROR tests/queries/test_relations.py::test_many_to_many_relation[optimizer_enabled] ERROR tests/queries/test_relations.py::test_many_to_many_relation[optimizer_disabled] ERROR tests/queries/test_relations.py::test_many_to_many_relation_reversed[optimizer_enabled] ERROR tests/queries/test_relations.py::test_many_to_many_relation_reversed[optimizer_disabled] ERROR tests/queries/test_sync.py::test_query[optimizer_enabled] - django.core... ERROR tests/queries/test_sync.py::test_query[optimizer_disabled] - django.cor... ERROR tests/test_ordering.py::test_asc - django.core.exceptions.ImproperlyCon... ERROR tests/test_ordering.py::test_desc - django.core.exceptions.ImproperlyCo... ERROR tests/test_ordering.py::test_relationship - django.core.exceptions.Impr... ERROR tests/test_ordering.py::test_arguments_order_respected - django.core.ex... ERROR tests/test_ordering.py::test_order_nulls - django.core.exceptions.Impro... ERROR tests/test_pagination.py::test_pagination - django.core.exceptions.Impr... ERROR tests/test_pagination.py::test_pagination_of_filtered_query - django.co... ERROR tests/test_pagination.py::test_resolver_pagination - django.core.except... ERROR tests/fields/test_relations.py::test_relation_query - django.core.excep... ERROR tests/filters/test_filters.py::test_async_resolver_filter - django.core... ERROR tests/filters/test_filters.py::test_adds_id_filter[True] - django.core.... ERROR tests/filters/test_filters.py::test_adds_id_filter[False] - django.core... ERROR tests/filters/test_filters.py::test_pk_inserted_for_root_field_only - d... ERROR tests/filters/test_filters_v2.py::test_async_resolver_filter - django.c... ERROR tests/mutations/test_mutations.py::test_create_async - django.core.exce... ERROR tests/mutations/test_mutations.py::test_create_geo - django.core.except... ERROR tests/mutations/test_mutations.py::test_update_geo - django.core.except... ERROR tests/node_polymorphism/test_optimizer.py::test_polymorphic_interface_query ERROR tests/polymorphism/test_optimizer.py::test_polymorphic_interface_query ERROR tests/queries/test_async.py::test_query[optimizer_enabled] - django.cor... ERROR tests/queries/test_async.py::test_query[optimizer_disabled] - django.co... ERROR tests/queries/test_fields.py::test_sync_resolver - django.core.exceptio... ERROR tests/queries/test_fields.py::test_async_resolver - django.core.excepti... ERROR tests/queries/test_fields.py::test_geo_data[optimizer_enabled] - django... ERROR tests/queries/test_fields.py::test_geo_data[optimizer_disabled] - djang... ERROR tests/relay/mptt/test_nested_children.py::test_nested_children_total_count ERROR tests/relay/mptt/test_nested_children.py::test_nested_children_total_count_no_children ERROR tests/relay/test_fields.py::test_query_node - django.core.exceptions.Im... ERROR tests/relay/test_fields.py::test_query_node_with_async_permissions - dj... ERROR tests/relay/test_fields.py::test_query_node_optional - django.core.exce... ERROR tests/relay/test_fields.py::test_query_node_async - django.core.excepti... ERROR tests/relay/test_fields.py::test_query_node_optional_async - django.cor... ERROR tests/relay/test_fields.py::test_query_nodes - django.core.exceptions.I... ERROR tests/relay/test_fields.py::test_query_nodes_optional - django.core.exc... ERROR tests/relay/test_fields.py::test_query_nodes_async - django.core.except... ERROR tests/relay/test_fields.py::test_query_nodes_optional_async - django.co... ERROR tests/relay/test_fields.py::test_query_connection[fruits] - django.core... ERROR tests/relay/test_fields.py::test_query_connection[fruitsLazy] - django.... ERROR tests/relay/test_fields.py::test_query_connection[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_async[fruits] - djang... ERROR tests/relay/test_fields.py::test_query_connection_async[fruitsLazy] - d... ERROR tests/relay/test_fields.py::test_query_connection_async[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_async[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection_async[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first[fruits] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first[fruitsLazy] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_async[fruits] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_async[fruitsLazy] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_async[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_async[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_async[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_after[fruits] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_after[fruitsLazy] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_after[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_after[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_after[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_after_async[fruits] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_after_async[fruitsLazy] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_after_async[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_after_async[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_after_async[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last[fruits] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last[fruitsLazy] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_async[fruits] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_async[fruitsLazy] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_async[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_async[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_async[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_before[fruits] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_before[fruitsLazy] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_before[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_before[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_before[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_before_async[fruits] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_before_async[fruitsLazy] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_before_async[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_before_async[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection_filtering_first_with_before_async[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_with_before[fruits] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_with_before[fruitsLazy] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_with_before[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_with_before[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_with_before[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_with_before_async[fruits] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_with_before_async[fruitsLazy] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_with_before_async[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_with_before_async[fruitsCustomResolver] ERROR tests/relay/test_fields.py::test_query_connection_filtering_last_with_before_async[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_with_filters[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_with_filters[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_with_filters_and_order[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_with_filters_and_order[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_custom_resolver_filtering_first[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_custom_resolver_filtering_first[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_custom_resolver_filtering_first_with_after[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_custom_resolver_filtering_first_with_after[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_custom_resolver_filtering_last[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_custom_resolver_filtering_last[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_custom_resolver_filtering_last_with_before[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_custom_resolver_filtering_last_with_before[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_total_count_sql_queries[fruitsWithFiltersAndOrder] ERROR tests/relay/test_fields.py::test_query_connection_total_count_sql_queries[fruitsCustomResolverWithFiltersAndOrder] ERROR tests/relay/test_nested_pagination.py::test_nested_pagination[sync] - d... ERROR tests/relay/test_nested_pagination.py::test_nested_pagination[async] - ... ERROR tests/relay/test_nested_pagination.py::test_nested_pagination[sync_no_optimizer] ERROR tests/relay/test_nested_pagination.py::test_nested_pagination[async_no_optimizer] ERROR tests/relay/test_types.py::test_global_id_wrong_type_name[None] - djang... ERROR tests/relay/test_types.py::test_global_id_wrong_type_name[1] - django.c... ERROR tests/relay/test_types.py::test_global_id_wrong_type_name[1.1] - django... ERROR tests/relay/test_types.py::test_global_id_wrong_type_node_id[None] - dj... ERROR tests/relay/test_types.py::test_global_id_wrong_type_node_id[1] - djang... ERROR tests/relay/test_types.py::test_global_id_wrong_type_node_id[1.1] - dja... ERROR tests/relay/test_types.py::test_global_id_from_id - django.core.excepti... ERROR tests/relay/test_types.py::test_global_id_from_id_error[foobar] - djang... ERROR tests/relay/test_types.py::test_global_id_from_id_error[value1] - djang... ERROR tests/relay/test_types.py::test_global_id_from_id_error[123] - django.c... ERROR tests/relay/test_types.py::test_global_id_resolve_type - django.core.ex... ERROR tests/relay/test_types.py::test_global_id_resolve_node_sync - django.co... ERROR tests/relay/test_types.py::test_global_id_resolve_node_sync_non_existing ERROR tests/relay/test_types.py::test_global_id_resolve_node_sync_non_existing_but_required ERROR tests/relay/test_types.py::test_global_id_resolve_node_sync_ensure_type ERROR tests/relay/test_types.py::test_global_id_resolve_node_sync_ensure_type_with_union ERROR tests/relay/test_types.py::test_global_id_resolve_node_sync_ensure_type_wrong_type ERROR tests/relay/test_types.py::test_global_id_resolve_node - django.core.ex... ERROR tests/relay/test_types.py::test_global_id_resolve_node_non_existing - d... ERROR tests/relay/test_types.py::test_global_id_resolve_node_non_existing_but_required ERROR tests/relay/test_types.py::test_global_id_resolve_node_ensure_type - dj... ERROR tests/relay/test_types.py::test_global_id_resolve_node_ensure_type_with_union ERROR tests/relay/test_types.py::test_global_id_resolve_node_ensure_type_wrong_type ERROR tests/test_descriptors.py::test_model_property - django.core.exceptions... ERROR tests/test_descriptors.py::test_model_property_async - django.core.exce... ERROR tests/test_enums.py::test_create_mutation_with_generated_enum_input - d... ERROR tests/test_field_permissions.py::test_with_async_permission - django.co... ERROR tests/test_field_permissions.py::test_with_async_permission_and_optimizer ERROR tests/test_field_permissions.py::test_with_sync_permission - django.cor... ERROR tests/test_field_permissions.py::test_with_sync_permission_and_optimizer ERROR tests/test_input_mutations.py::test_input_mutation[sync] - django.core.... ERROR tests/test_input_mutations.py::test_input_mutation[async] - django.core... ERROR tests/test_input_mutations.py::test_input_mutation[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_mutation[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_mutation_with_internal_error_code[sync] ERROR tests/test_input_mutations.py::test_input_mutation_with_internal_error_code[async] ERROR tests/test_input_mutations.py::test_input_mutation_with_internal_error_code[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_mutation_with_internal_error_code[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_mutation_with_explicit_error_code[sync] ERROR tests/test_input_mutations.py::test_input_mutation_with_explicit_error_code[async] ERROR tests/test_input_mutations.py::test_input_mutation_with_explicit_error_code[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_mutation_with_explicit_error_code[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_mutation_with_errors[sync] - ... ERROR tests/test_input_mutations.py::test_input_mutation_with_errors[async] ERROR tests/test_input_mutations.py::test_input_mutation_with_errors[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_mutation_with_errors[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_create_mutation[sync] - djang... ERROR tests/test_input_mutations.py::test_input_create_mutation[async] - djan... ERROR tests/test_input_mutations.py::test_input_create_mutation[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_create_mutation[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_create_mutation_nested_creation[sync] ERROR tests/test_input_mutations.py::test_input_create_mutation_nested_creation[async] ERROR tests/test_input_mutations.py::test_input_create_mutation_nested_creation[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_create_mutation_nested_creation[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_create_with_m2m_mutation[sync] ERROR tests/test_input_mutations.py::test_input_create_with_m2m_mutation[async] ERROR tests/test_input_mutations.py::test_input_create_with_m2m_mutation[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_create_with_m2m_mutation[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_update_mutation[sync] - djang... ERROR tests/test_input_mutations.py::test_input_update_mutation[async] - djan... ERROR tests/test_input_mutations.py::test_input_update_mutation[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_update_mutation[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_nested_update_mutation[sync] ERROR tests/test_input_mutations.py::test_input_nested_update_mutation[async] ERROR tests/test_input_mutations.py::test_input_nested_update_mutation[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_nested_update_mutation[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_not_null_mutation[sync] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_not_null_mutation[async] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_not_null_mutation[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_not_null_mutation[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_mutation[sync] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_mutation[async] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_mutation[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_mutation[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_through_mutation[sync] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_through_mutation[async] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_through_mutation[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_update_m2m_set_through_mutation[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_update_mutation_with_key_attr[sync] ERROR tests/test_input_mutations.py::test_input_update_mutation_with_key_attr[async] ERROR tests/test_input_mutations.py::test_input_update_mutation_with_key_attr[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_update_mutation_with_key_attr[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_delete_mutation[sync] - djang... ERROR tests/test_input_mutations.py::test_input_delete_mutation[async] - djan... ERROR tests/test_input_mutations.py::test_input_delete_mutation[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_delete_mutation[async_no_optimizer] ERROR tests/test_input_mutations.py::test_input_delete_mutation_with_key_attr[sync] ERROR tests/test_input_mutations.py::test_input_delete_mutation_with_key_attr[async] ERROR tests/test_input_mutations.py::test_input_delete_mutation_with_key_attr[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_input_delete_mutation_with_key_attr[async_no_optimizer] ERROR tests/test_input_mutations.py::test_mutation_full_clean_without_kwargs[sync] ERROR tests/test_input_mutations.py::test_mutation_full_clean_without_kwargs[async] ERROR tests/test_input_mutations.py::test_mutation_full_clean_without_kwargs[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_mutation_full_clean_without_kwargs[async_no_optimizer] ERROR tests/test_input_mutations.py::test_mutation_full_clean_with_kwargs[sync] ERROR tests/test_input_mutations.py::test_mutation_full_clean_with_kwargs[async] ERROR tests/test_input_mutations.py::test_mutation_full_clean_with_kwargs[sync_no_optimizer] ERROR tests/test_input_mutations.py::test_mutation_full_clean_with_kwargs[async_no_optimizer] ERROR tests/test_optimizer.py::test_user_query[sync] - django.core.exceptions... ERROR tests/test_optimizer.py::test_user_query[async] - django.core.exception... ERROR tests/test_optimizer.py::test_user_query[sync_no_optimizer] - django.co... ERROR tests/test_optimizer.py::test_user_query[async_no_optimizer] - django.c... ERROR tests/test_optimizer.py::test_staff_query[sync] - django.core.exception... ERROR tests/test_optimizer.py::test_staff_query[async] - django.core.exceptio... ERROR tests/test_optimizer.py::test_staff_query[sync_no_optimizer] - django.c... ERROR tests/test_optimizer.py::test_staff_query[async_no_optimizer] - django.... ERROR tests/test_optimizer.py::test_interface_query[sync] - django.core.excep... ERROR tests/test_optimizer.py::test_interface_query[async] - django.core.exce... ERROR tests/test_optimizer.py::test_interface_query[sync_no_optimizer] - djan... ERROR tests/test_optimizer.py::test_interface_query[async_no_optimizer] - dja... ERROR tests/test_optimizer.py::test_query_forward[sync] - django.core.excepti... ERROR tests/test_optimizer.py::test_query_forward[async] - django.core.except... ERROR tests/test_optimizer.py::test_query_forward[sync_no_optimizer] - django... ERROR tests/test_optimizer.py::test_query_forward[async_no_optimizer] - djang... ERROR tests/test_optimizer.py::test_query_forward_with_interfaces[sync] - dja... ERROR tests/test_optimizer.py::test_query_forward_with_interfaces[async] - dj... ERROR tests/test_optimizer.py::test_query_forward_with_interfaces[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_forward_with_interfaces[async_no_optimizer] ERROR tests/test_optimizer.py::test_query_forward_with_fragments[sync] - djan... ERROR tests/test_optimizer.py::test_query_forward_with_fragments[async] - dja... ERROR tests/test_optimizer.py::test_query_forward_with_fragments[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_forward_with_fragments[async_no_optimizer] ERROR tests/test_optimizer.py::test_query_prefetch[sync] - django.core.except... ERROR tests/test_optimizer.py::test_query_prefetch[async] - django.core.excep... ERROR tests/test_optimizer.py::test_query_prefetch[sync_no_optimizer] - djang... ERROR tests/test_optimizer.py::test_query_prefetch[async_no_optimizer] - djan... ERROR tests/test_optimizer.py::test_query_prefetch_with_callable[sync] - djan... ERROR tests/test_optimizer.py::test_query_prefetch_with_callable[async] - dja... ERROR tests/test_optimizer.py::test_query_prefetch_with_callable[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_prefetch_with_callable[async_no_optimizer] ERROR tests/test_optimizer.py::test_query_prefetch_with_fragments[sync] - dja... ERROR tests/test_optimizer.py::test_query_prefetch_with_fragments[async] - dj... ERROR tests/test_optimizer.py::test_query_prefetch_with_fragments[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_prefetch_with_fragments[async_no_optimizer] ERROR tests/test_optimizer.py::test_query_connection_with_resolver[sync] - dj... ERROR tests/test_optimizer.py::test_query_connection_with_resolver[async] - d... ERROR tests/test_optimizer.py::test_query_connection_with_resolver[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_connection_with_resolver[async_no_optimizer] ERROR tests/test_optimizer.py::test_query_connection_nested[sync] - django.co... ERROR tests/test_optimizer.py::test_query_connection_nested[async] - django.c... ERROR tests/test_optimizer.py::test_query_connection_nested[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_connection_nested[async_no_optimizer] ERROR tests/test_optimizer.py::test_query_nested_fragments[sync] - django.cor... ERROR tests/test_optimizer.py::test_query_nested_fragments[async] - django.co... ERROR tests/test_optimizer.py::test_query_nested_fragments[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_nested_fragments[async_no_optimizer] ERROR tests/test_optimizer.py::test_query_annotate[sync] - django.core.except... ERROR tests/test_optimizer.py::test_query_annotate[async] - django.core.excep... ERROR tests/test_optimizer.py::test_query_annotate[sync_no_optimizer] - djang... ERROR tests/test_optimizer.py::test_query_annotate[async_no_optimizer] - djan... ERROR tests/test_optimizer.py::test_query_annotate_with_callable[sync] - djan... ERROR tests/test_optimizer.py::test_query_annotate_with_callable[async] - dja... ERROR tests/test_optimizer.py::test_query_annotate_with_callable[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_annotate_with_callable[async_no_optimizer] ERROR tests/test_optimizer.py::test_user_query_with_prefetch - django.core.ex... ERROR tests/test_optimizer.py::test_query_select_related_with_only[sync] - dj... ERROR tests/test_optimizer.py::test_query_select_related_with_only[async] - d... ERROR tests/test_optimizer.py::test_query_select_related_with_only[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_select_related_with_only[async_no_optimizer] ERROR tests/test_optimizer.py::test_query_select_related_without_only[sync] ERROR tests/test_optimizer.py::test_query_select_related_without_only[async] ERROR tests/test_optimizer.py::test_query_select_related_without_only[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_select_related_without_only[async_no_optimizer] ERROR tests/test_optimizer.py::test_handles_existing_select_related[sync] - d... ERROR tests/test_optimizer.py::test_handles_existing_select_related[async] - ... ERROR tests/test_optimizer.py::test_handles_existing_select_related[sync_no_optimizer] ERROR tests/test_optimizer.py::test_handles_existing_select_related[async_no_optimizer] ERROR tests/test_optimizer.py::test_query_nested_connection_with_filter[sync] ERROR tests/test_optimizer.py::test_query_nested_connection_with_filter[async] ERROR tests/test_optimizer.py::test_query_nested_connection_with_filter[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_nested_connection_with_filter[async_no_optimizer] ERROR tests/test_optimizer.py::test_query_with_optimizer_paginated_prefetch ERROR tests/test_optimizer.py::test_nested_prefetch_with_filter[sync] - djang... ERROR tests/test_optimizer.py::test_nested_prefetch_with_filter[async] - djan... ERROR tests/test_optimizer.py::test_nested_prefetch_with_filter[sync_no_optimizer] ERROR tests/test_optimizer.py::test_nested_prefetch_with_filter[async_no_optimizer] ERROR tests/test_optimizer.py::test_nested_prefetch_with_filter_and_pagination[sync] ERROR tests/test_optimizer.py::test_nested_prefetch_with_filter_and_pagination[async] ERROR tests/test_optimizer.py::test_nested_prefetch_with_filter_and_pagination[sync_no_optimizer] ERROR tests/test_optimizer.py::test_nested_prefetch_with_filter_and_pagination[async_no_optimizer] ERROR tests/test_optimizer.py::test_nested_prefetch_with_multiple_levels[sync] ERROR tests/test_optimizer.py::test_nested_prefetch_with_multiple_levels[async] ERROR tests/test_optimizer.py::test_nested_prefetch_with_multiple_levels[sync_no_optimizer] ERROR tests/test_optimizer.py::test_nested_prefetch_with_multiple_levels[async_no_optimizer] ERROR tests/test_optimizer.py::test_nested_prefetch_with_get_queryset[sync] ERROR tests/test_optimizer.py::test_nested_prefetch_with_get_queryset[async] ERROR tests/test_optimizer.py::test_nested_prefetch_with_get_queryset[sync_no_optimizer] ERROR tests/test_optimizer.py::test_nested_prefetch_with_get_queryset[async_no_optimizer] ERROR tests/test_optimizer.py::test_prefetch_hint_with_same_name_field_no_extra_queries ERROR tests/test_optimizer.py::test_query_paginated[sync] - django.core.excep... ERROR tests/test_optimizer.py::test_query_paginated[async] - django.core.exce... ERROR tests/test_optimizer.py::test_query_paginated[sync_no_optimizer] - djan... ERROR tests/test_optimizer.py::test_query_paginated[async_no_optimizer] - dja... ERROR tests/test_optimizer.py::test_query_paginated_nested[sync] - django.cor... ERROR tests/test_optimizer.py::test_query_paginated_nested[async] - django.co... ERROR tests/test_optimizer.py::test_query_paginated_nested[sync_no_optimizer] ERROR tests/test_optimizer.py::test_query_paginated_nested[async_no_optimizer] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_optional[sync] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_optional[async] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_optional[sync_no_optimizer] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_optional[async_no_optimizer] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required[sync] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required[async] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required[sync_no_optimizer] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required[async_no_optimizer] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required_missing[sync] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required_missing[async] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required_missing[sync_no_optimizer] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required_missing[async_no_optimizer] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required_multiple_returned[sync] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required_multiple_returned[async] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required_multiple_returned[sync_no_optimizer] ERROR tests/test_optimizer.py::test_prefetch_multi_field_single_required_multiple_returned[async_no_optimizer] ERROR tests/test_paginated_type.py::test_pagination_query - django.core.excep... ERROR tests/test_paginated_type.py::test_pagination_query_async - django.core... ERROR tests/test_paginated_type.py::test_pagination_with_lazy_type_and_django_query_optimizer ERROR tests/test_paginated_type.py::test_pagination_nested_query - django.cor... ERROR tests/test_paginated_type.py::test_pagination_nested_query_async - djan... ERROR tests/test_paginated_type.py::test_pagination_query_with_subclass - dja... ERROR tests/test_paginated_type.py::test_pagination_query_with_resolver_schema ERROR tests/test_paginated_type.py::test_pagination_query_with_resolver - dja... ERROR tests/test_paginated_type.py::test_pagination_query_with_resolver_arguments ERROR tests/test_paginated_type.py::test_pagination_default_limit - django.co... ERROR tests/test_pagination.py::test_nested_pagination[sync] - django.core.ex... ERROR tests/test_pagination.py::test_nested_pagination[async] - django.core.e... ERROR tests/test_pagination.py::test_nested_pagination[sync_no_optimizer] - d... ERROR tests/test_pagination.py::test_nested_pagination[async_no_optimizer] - ... ERROR tests/test_pagination.py::test_apply_window_pagination - django.core.ex... ERROR tests/test_pagination.py::test_apply_window_pagination_with_no_limites[-1] ERROR tests/test_pagination.py::test_apply_window_pagination_with_no_limites[9223372036854775807] ERROR tests/test_permissions.py::test_is_authenticated[sync] - django.core.ex... ERROR tests/test_permissions.py::test_is_authenticated[async] - django.core.e... ERROR tests/test_permissions.py::test_is_authenticated[sync_no_optimizer] - d... ERROR tests/test_permissions.py::test_is_authenticated[async_no_optimizer] - ... ERROR tests/test_permissions.py::test_is_authenticated_optional[sync] - djang... ERROR tests/test_permissions.py::test_is_authenticated_optional[async] - djan... ERROR tests/test_permissions.py::test_is_authenticated_optional[sync_no_optimizer] ERROR tests/test_permissions.py::test_is_authenticated_optional[async_no_optimizer] ERROR tests/test_permissions.py::test_staff_required[sync] - django.core.exce... ERROR tests/test_permissions.py::test_staff_required[async] - django.core.exc... ERROR tests/test_permissions.py::test_staff_required[sync_no_optimizer] - dja... ERROR tests/test_permissions.py::test_staff_required[async_no_optimizer] - dj... ERROR tests/test_permissions.py::test_staff_required_optional[sync] - django.... ERROR tests/test_permissions.py::test_staff_required_optional[async] - django... ERROR tests/test_permissions.py::test_staff_required_optional[sync_no_optimizer] ERROR tests/test_permissions.py::test_staff_required_optional[async_no_optimizer] ERROR tests/test_permissions.py::test_superuser_required[sync] - django.core.... ERROR tests/test_permissions.py::test_superuser_required[async] - django.core... ERROR tests/test_permissions.py::test_superuser_required[sync_no_optimizer] ERROR tests/test_permissions.py::test_superuser_required[async_no_optimizer] ERROR tests/test_permissions.py::test_async_user_resolve[sync] - django.core.... ERROR tests/test_permissions.py::test_async_user_resolve[async] - django.core... ERROR tests/test_permissions.py::test_async_user_resolve[sync_no_optimizer] ERROR tests/test_permissions.py::test_async_user_resolve[async_no_optimizer] ERROR tests/test_permissions.py::test_superuser_required_optional[sync] - dja... ERROR tests/test_permissions.py::test_superuser_required_optional[async] - dj... ERROR tests/test_permissions.py::test_superuser_required_optional[sync_no_optimizer] ERROR tests/test_permissions.py::test_superuser_required_optional[async_no_optimizer] ERROR tests/test_permissions.py::test_perm_cached[sync] - django.core.excepti... ERROR tests/test_permissions.py::test_perm_cached[async] - django.core.except... ERROR tests/test_permissions.py::test_perm_cached[sync_no_optimizer] - django... ERROR tests/test_permissions.py::test_perm_cached[async_no_optimizer] - djang... ERROR tests/test_permissions.py::test_perm_required[sync-user] - django.core.... ERROR tests/test_permissions.py::test_perm_required[sync-group] - django.core... ERROR tests/test_permissions.py::test_perm_required[sync-superuser] - django.... ERROR tests/test_permissions.py::test_perm_required[async-user] - django.core... ERROR tests/test_permissions.py::test_perm_required[async-group] - django.cor... ERROR tests/test_permissions.py::test_perm_required[async-superuser] - django... ERROR tests/test_permissions.py::test_perm_required[sync_no_optimizer-user] ERROR tests/test_permissions.py::test_perm_required[sync_no_optimizer-group] ERROR tests/test_permissions.py::test_perm_required[sync_no_optimizer-superuser] ERROR tests/test_permissions.py::test_perm_required[async_no_optimizer-user] ERROR tests/test_permissions.py::test_perm_required[async_no_optimizer-group] ERROR tests/test_permissions.py::test_perm_required[async_no_optimizer-superuser] ERROR tests/test_permissions.py::test_perm_required_optional[sync-user] - dja... ERROR tests/test_permissions.py::test_perm_required_optional[sync-group] - dj... ERROR tests/test_permissions.py::test_perm_required_optional[sync-superuser] ERROR tests/test_permissions.py::test_perm_required_optional[async-user] - dj... ERROR tests/test_permissions.py::test_perm_required_optional[async-group] - d... ERROR tests/test_permissions.py::test_perm_required_optional[async-superuser] ERROR tests/test_permissions.py::test_perm_required_optional[sync_no_optimizer-user] ERROR tests/test_permissions.py::test_perm_required_optional[sync_no_optimizer-group] ERROR tests/test_permissions.py::test_perm_required_optional[sync_no_optimizer-superuser] ERROR tests/test_permissions.py::test_perm_required_optional[async_no_optimizer-user] ERROR tests/test_permissions.py::test_perm_required_optional[async_no_optimizer-group] ERROR tests/test_permissions.py::test_perm_required_optional[async_no_optimizer-superuser] ERROR tests/test_permissions.py::test_list_perm_required[sync-user] - django.... ERROR tests/test_permissions.py::test_list_perm_required[sync-group] - django... ERROR tests/test_permissions.py::test_list_perm_required[sync-superuser] - dj... ERROR tests/test_permissions.py::test_list_perm_required[async-user] - django... ERROR tests/test_permissions.py::test_list_perm_required[async-group] - djang... ERROR tests/test_permissions.py::test_list_perm_required[async-superuser] - d... ERROR tests/test_permissions.py::test_list_perm_required[sync_no_optimizer-user] ERROR tests/test_permissions.py::test_list_perm_required[sync_no_optimizer-group] ERROR tests/test_permissions.py::test_list_perm_required[sync_no_optimizer-superuser] ERROR tests/test_permissions.py::test_list_perm_required[async_no_optimizer-user] ERROR tests/test_permissions.py::test_list_perm_required[async_no_optimizer-group] ERROR tests/test_permissions.py::test_list_perm_required[async_no_optimizer-superuser] ERROR tests/test_permissions.py::test_conn_perm_required[sync-user] - django.... ERROR tests/test_permissions.py::test_conn_perm_required[sync-group] - django... ERROR tests/test_permissions.py::test_conn_perm_required[sync-superuser] - dj... ERROR tests/test_permissions.py::test_conn_perm_required[async-user] - django... ERROR tests/test_permissions.py::test_conn_perm_required[async-group] - djang... ERROR tests/test_permissions.py::test_conn_perm_required[async-superuser] - d... ERROR tests/test_permissions.py::test_conn_perm_required[sync_no_optimizer-user] ERROR tests/test_permissions.py::test_conn_perm_required[sync_no_optimizer-group] ERROR tests/test_permissions.py::test_conn_perm_required[sync_no_optimizer-superuser] ERROR tests/test_permissions.py::test_conn_perm_required[async_no_optimizer-user] ERROR tests/test_permissions.py::test_conn_perm_required[async_no_optimizer-group] ERROR tests/test_permissions.py::test_conn_perm_required[async_no_optimizer-superuser] ERROR tests/test_permissions.py::test_obj_perm_required[sync-user] - django.c... ERROR tests/test_permissions.py::test_obj_perm_required[sync-group] - django.... ERROR tests/test_permissions.py::test_obj_perm_required[sync-superuser] - dja... ERROR tests/test_permissions.py::test_obj_perm_required[async-user] - django.... ERROR tests/test_permissions.py::test_obj_perm_required[async-group] - django... ERROR tests/test_permissions.py::test_obj_perm_required[async-superuser] - dj... ERROR tests/test_permissions.py::test_obj_perm_required[sync_no_optimizer-user] ERROR tests/test_permissions.py::test_obj_perm_required[sync_no_optimizer-group] ERROR tests/test_permissions.py::test_obj_perm_required[sync_no_optimizer-superuser] ERROR tests/test_permissions.py::test_obj_perm_required[async_no_optimizer-user] ERROR tests/test_permissions.py::test_obj_perm_required[async_no_optimizer-group] ERROR tests/test_permissions.py::test_obj_perm_required[async_no_optimizer-superuser] ERROR tests/test_permissions.py::test_obj_perm_required_global[sync-user] - d... ERROR tests/test_permissions.py::test_obj_perm_required_global[sync-group] - ... ERROR tests/test_permissions.py::test_obj_perm_required_global[sync-superuser] ERROR tests/test_permissions.py::test_obj_perm_required_global[async-user] - ... ERROR tests/test_permissions.py::test_obj_perm_required_global[async-group] ERROR tests/test_permissions.py::test_obj_perm_required_global[async-superuser] ERROR tests/test_permissions.py::test_obj_perm_required_global[sync_no_optimizer-user] ERROR tests/test_permissions.py::test_obj_perm_required_global[sync_no_optimizer-group] ERROR tests/test_permissions.py::test_obj_perm_required_global[sync_no_optimizer-superuser] ERROR tests/test_permissions.py::test_obj_perm_required_global[async_no_optimizer-user] ERROR tests/test_permissions.py::test_obj_perm_required_global[async_no_optimizer-group] ERROR tests/test_permissions.py::test_obj_perm_required_global[async_no_optimizer-superuser] ERROR tests/test_permissions.py::test_obj_perm_required_optional[sync-user] ERROR tests/test_permissions.py::test_obj_perm_required_optional[sync-group] ERROR tests/test_permissions.py::test_obj_perm_required_optional[sync-superuser] ERROR tests/test_permissions.py::test_obj_perm_required_optional[async-user] ERROR tests/test_permissions.py::test_obj_perm_required_optional[async-group] ERROR tests/test_permissions.py::test_obj_perm_required_optional[async-superuser] ERROR tests/test_permissions.py::test_obj_perm_required_optional[sync_no_optimizer-user] ERROR tests/test_permissions.py::test_obj_perm_required_optional[sync_no_optimizer-group] ERROR tests/test_permissions.py::test_obj_perm_required_optional[sync_no_optimizer-superuser] ERROR tests/test_permissions.py::test_obj_perm_required_optional[async_no_optimizer-user] ERROR tests/test_permissions.py::test_obj_perm_required_optional[async_no_optimizer-group] ERROR tests/test_permissions.py::test_obj_perm_required_optional[async_no_optimizer-superuser] ERROR tests/test_permissions.py::test_list_obj_perm_required[sync-user] - dja... ERROR tests/test_permissions.py::test_list_obj_perm_required[sync-group] - dj... ERROR tests/test_permissions.py::test_list_obj_perm_required[sync-superuser] ERROR tests/test_permissions.py::test_list_obj_perm_required[async-user] - dj... ERROR tests/test_permissions.py::test_list_obj_perm_required[async-group] - d... ERROR tests/test_permissions.py::test_list_obj_perm_required[async-superuser] ERROR tests/test_permissions.py::test_list_obj_perm_required[sync_no_optimizer-user] ERROR tests/test_permissions.py::test_list_obj_perm_required[sync_no_optimizer-group] ERROR tests/test_permissions.py::test_list_obj_perm_required[sync_no_optimizer-superuser] ERROR tests/test_permissions.py::test_list_obj_perm_required[async_no_optimizer-user] ERROR tests/test_permissions.py::test_list_obj_perm_required[async_no_optimizer-group] ERROR tests/test_permissions.py::test_list_obj_perm_required[async_no_optimizer-superuser] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[sync-user] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[sync-group] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[sync-superuser] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[async-user] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[async-group] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[async-superuser] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[sync_no_optimizer-user] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[sync_no_optimizer-group] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[sync_no_optimizer-superuser] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[async_no_optimizer-user] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[async_no_optimizer-group] ERROR tests/test_permissions.py::test_list_obj_perm_required_paginated[async_no_optimizer-superuser] ERROR tests/test_permissions.py::test_conn_obj_perm_required[sync-user] - dja... ERROR tests/test_permissions.py::test_conn_obj_perm_required[sync-group] - dj... ERROR tests/test_permissions.py::test_conn_obj_perm_required[sync-superuser] ERROR tests/test_permissions.py::test_conn_obj_perm_required[async-user] - dj... ERROR tests/test_permissions.py::test_conn_obj_perm_required[async-group] - d... ERROR tests/test_permissions.py::test_conn_obj_perm_required[async-superuser] ERROR tests/test_permissions.py::test_conn_obj_perm_required[sync_no_optimizer-user] ERROR tests/test_permissions.py::test_conn_obj_perm_required[sync_no_optimizer-group] ERROR tests/test_permissions.py::test_conn_obj_perm_required[sync_no_optimizer-superuser] ERROR tests/test_permissions.py::test_conn_obj_perm_required[async_no_optimizer-user] ERROR tests/test_permissions.py::test_conn_obj_perm_required[async_no_optimizer-group] ERROR tests/test_permissions.py::test_conn_obj_perm_required[async_no_optimizer-superuser] ERROR tests/test_permissions.py::test_query_paginated_with_permissions[sync] ERROR tests/test_permissions.py::test_query_paginated_with_permissions[async] ERROR tests/test_permissions.py::test_query_paginated_with_permissions[sync_no_optimizer] ERROR tests/test_permissions.py::test_query_paginated_with_permissions[async_no_optimizer] ERROR tests/test_permissions.py::test_query_paginated_with_obj_permissions[sync] ERROR tests/test_permissions.py::test_query_paginated_with_obj_permissions[async] ERROR tests/test_permissions.py::test_query_paginated_with_obj_permissions[sync_no_optimizer] ERROR tests/test_permissions.py::test_query_paginated_with_obj_permissions[async_no_optimizer] ERROR tests/test_queries.py::test_single - django.core.exceptions.ImproperlyC... ERROR tests/test_queries.py::test_required_pk_single - django.core.exceptions... ERROR tests/test_queries.py::test_id_as_pk_single - django.core.exceptions.Im... ERROR tests/test_queries.py::test_required_id_as_pk_single - django.core.exce... ERROR tests/test_queries.py::test_many - django.core.exceptions.ImproperlyCon... ERROR tests/test_queries.py::test_relation - django.core.exceptions.Improperl... ERROR tests/test_queries.py::test_reverse_relation - django.core.exceptions.I... ERROR tests/test_queries.py::test_type_queryset - django.core.exceptions.Impr... ERROR tests/test_queries.py::test_querying_type_implementing_interface - djan... ERROR tests/test_queries.py::test_model_properties - django.core.exceptions.I... ERROR tests/test_queries.py::test_query_file_field - django.core.exceptions.I... ERROR tests/test_queries.py::test_query_file_field_when_null - django.core.ex... ERROR tests/test_queries.py::test_field_name - django.core.exceptions.Imprope... ============ 141 passed, 1 warning, 621 errors in 105.91s (0:01:45) ============ INFO : Command's result: FAILURE INFO : Command's error: Command '['python3', '-m', 'pytest']' returned non-zero exit status 1. error: Bad exit status from /usr/src/tmp/rpm-tmp.58836 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.58836 (%check) Command exited with non-zero status 1 103.40user 3.11system 1:49.40elapsed 97%CPU (0avgtext+0avgdata 171456maxresident)k 0inputs+0outputs (0major+163852minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-strawberry-django-0.52.1-alt1.src.rpm' failed. Command exited with non-zero status 1 6.40user 4.90system 2:31.46elapsed 7%CPU (0avgtext+0avgdata 137952maxresident)k 1392inputs+0outputs (0major+527137minor)pagefaults 0swaps