Opened 6 years ago
Last modified 5 years ago
#13100 closed defect
SQLiteConnector crashes when Mercurial is 4.8rc0 — at Version 1
Reported by: | Jun Omae | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | plugin - mercurial |
Component: | plugin/mercurial | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
$ /dev/shm/hg4.8rc0/bin/pip list Package Version ------------- ------- Genshi 0.7.1 mercurial 4.8rc0 pip 18.1 pkg-resources 0.0.0 setuptools 40.5.0 Trac 1.0.17 wheel 0.32.2 $ /dev/shm/hg4.8rc0/bin/trac-admin /var/trac/1.0-sqlite ... Trac [/var/trac/1.0-sqlite]> wiki list 2018-11-02 01:19:16,988 Trac[pool] ERROR: Exception caught on create Traceback (most recent call last): File "/dev/shm/hg4.8rc0/local/lib/python2.7/site-packages/trac/db/pool.py", line 105, in get_cnx cnx = connector.get_connection(**kwargs) File "/dev/shm/hg4.8rc0/local/lib/python2.7/site-packages/trac/db/sqlite_backend.py", line 172, in get_connection self._version = get_pkginfo(sqlite).get( File "/dev/shm/hg4.8rc0/local/lib/python2.7/site-packages/trac/util/__init__.py", line 790, in get_pkginfo metadata = 'METADATA' if dist.has_metadata('METADATA') else 'PKG-INFO' File "/dev/shm/hg4.8rc0/local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py", line 151, in __getattr__ return getattr(self._module, attr) AttributeError: 'module' object has no attribute 'has_metadata' Error: Unable to get database connection within 0 seconds. (AttributeError: 'module' object has no attribute 'has_metadata')
(tweeted in https://twitter.com/shunichigoto/status/1058003791088365569)
Note:
See TracTickets
for help on using tickets.
We expect a module instance is imported by
import sqlite3
but a hgdemandimport instance is imported with Mercurial 4.8rc0.Mercurial 4.8rc0
Mercurial 4.7.2