This unbreaks the following testcase, and fixes spatialite databases in QGIS. import sqlite3 con = sqlite3.connect(":memory:") con.enable_load_extension(True) See https://trac.macports.org/ticket/49317 & https://riccardo.forina.me/spatialite-for-python-does-not-work-on-osx/ for similar fixes on OSX. went in a bulk build without fallout, sounds good to rpointel@