[Bug 253115] www/trac-devel: Fix dependency to SQLite3 support

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 31 05:29:01 UTC 2021


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

            Bug ID: 253115
           Summary: www/trac-devel: Fix dependency to SQLite3 support
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: samm at FreeBSD.org
          Reporter: nork at ninth-nine.com
          Assignee: samm at FreeBSD.org
             Flags: maintainer-feedback?(samm at FreeBSD.org)

Created attachment 222033
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=222033&action=edit
add a force dependency on databases/py-sqlite3.

Hi.
In recently www/trac-devel(1.5 and after), it's required SQLite3 module.
So, to fix dependency error even if we don't want a SQLite3 database,
please apply attached a patch.


= A error message with trac on uwsgi ===================================
*** Operational MODE: threaded ***
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/trac/db/sqlite_backend.py", line
37, in <module>
    import pysqlite2.dbapi2 as sqlite
ModuleNotFoundError: No module named 'pysqlite2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/trac/web/main.py", line 40, in
<module>
    from trac.env import open_environment
  File "/usr/local/lib/python3.7/site-packages/trac/env.py", line 42, in
<module>
    from trac.db.convert import copy_tables
  File "/usr/local/lib/python3.7/site-packages/trac/db/convert.py", line 18, in
<module>
    from trac.db import sqlite_backend
  File "/usr/local/lib/python3.7/site-packages/trac/db/sqlite_backend.py", line
39, in <module>
    import sqlite3 as sqlite
  File "/usr/local/lib/python3.7/sqlite3/__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "/usr/local/lib/python3.7/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
unable to load app 0 (mountpoint='') (callable not found or import error)

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


More information about the freebsd-ports-bugs mailing list