https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297345

--- Comment #4 from Michael Osipov <[email protected]> ---
One should also read:
https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.enable_load_extension

This is also weird:
$ python
Python 3.10.20 (main, Jun 20 2026, 01:08:14) [Clang 19.1.7
(https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd7080 on freebsd14
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> conn = sqlite3.connect(":memory:")
>>> conn.enable_load_extension(True)
>>> sqlite3.SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/sqlite3/__init__.py", line 71, in __getattr__
    raise AttributeError(f"module 'sqlite3' has no attribute '{name}'")
AttributeError: module 'sqlite3' has no attribute
'SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION'
>>> conn.execute("select 
>>> load_extension('/var/osipovmi/Projekte/sqlite-extensions/dns/libsqlitedns.so')")
<sqlite3.Cursor object at 0x378f53bad9c0>
>>> for row in conn.execute("select dns('deblndw011x.innomotics.net')"):
...     print(row)
...
('10.64.105.147',)
>>>

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to