[Bug 297345] databases/py-sqlite3: Cannot load extensions
- Reply: bugzilla-noreply_a_freebsd.org: "maintainer-feedback requested: [Bug 297345] databases/py-sqlite3: Cannot load extensions"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 297345] databases/py-sqlite3: Cannot load extensions"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 297345] databases/py-sqlite3: Cannot load extensions"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 297345] databases/py-sqlite3: Cannot load extensions"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 297345] databases/py-sqlite3: Cannot load extensions"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 297345] databases/py-sqlite3: Cannot load extensions"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 297345] databases/py-sqlite3: Cannot load extensions"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 297345] databases/py-sqlite3: Cannot load extensions"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 297345] databases/py-sqlite3: Cannot load extensions"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 297345] databases/py-sqlite3: Cannot load extensions"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Aug 2026 00:55:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297345
Bug ID: 297345
Summary: databases/py-sqlite3: Cannot load extensions
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: python@FreeBSD.org
Reporter: a.l.sveikauskas@gmail.com
Flags: maintainer-feedback?(python@FreeBSD.org)
Assignee: python@FreeBSD.org
Created attachment 273539
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=273539&action=edit
Patch to fix it by defining PY_SQLITE_ENABLE_LOAD_EXTENSION at build time
I was playing with this port and I found it doesn't allow loading sqlite
extension .so files. This is easily verifiable even without an extension by
the following snippet throwing exceptions:
import sqlite3
conn = sqlite3.connect(":memory:")
conn.enable_load_extension(True)
Looking at the port I found that nothing was setting the C macro
PY_SQLITE_ENABLE_LOAD_EXTENSION. This is normally set by the python configure
script, which gets bypassed for this port.
I was able to fix it in my own use with the attached patch.
--
You are receiving this mail because:
You are the assignee for the bug.