Modify ↓
Opened 4 years ago
Last modified 2 years ago
#13457 new defect
Jinja2 version is blank on Trac 1.5.3 in Fedora 35
| Reported by: | Jun Omae | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | next-stable-1.6.x |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
The reporter says Jinja2 version is blank on Trac 1.5.3 in Fedora 35. See gmessage:trac-users:JJA_WX-JH-4/m/LxUK15C0EQAJ.
# cat /etc/redhat-release
Fedora release 35 (Thirty Five)
# python3
Python 3.10.0 (default, Oct 4 2021, 00:00:00) [GCC 11.2.1 20210728 (Red Hat 11.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import jinja2
>>> from trac.util import get_pkginfo
>>> get_pkginfo(jinja2)
{}
>>> import pkg_resources
>>> from trac.util import get_module_path
>>> get_module_path(jinja2)
'/usr/lib/python3.10/site-packages'
>>> dists = list(pkg_resources.find_distributions('/usr/lib/python3.10/site-packages', only=True))
>>> dists
[Trac 1.5.3 (/usr/lib/python3.10/site-packages), setuptools 57.4.0 (/usr/lib/python3.10/site-packages), pytz 2021.3 (/usr/lib/python3.10/site-packages), Jinja2 3.0.1 (/usr/lib/python3.10/site-packages), Babel 2.9.1 (/usr/lib/python3.10/site-packages)]
>>> dist = dists[3]
>>> dist
Jinja2 3.0.1 (/usr/lib/python3.10/site-packages)
>>> dist.location
'/usr/lib/python3.10/site-packages'
>>> dist.has_metadata('installed-files.txt')
False
>>> dist.has_metadata('SOURCES.txt')
True
>>> for name in dist.get_metadata_lines('SOURCES.txt'):
... if 'jinja2/__init__.py' in name:
... name
...
'src/jinja2/__init__.py'
We expect that a line exactly matched with jinja2/__init__.py exists in SOURCES.txt file, however the entry starts with src/.
Attachments (0)
Change History (2)
comment:1 by , 4 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 2 years ago
| Milestone: | next-stable-1.4.x → next-stable-1.6.x |
|---|
Note:
See TracTickets
for help on using tickets.



Milestone renamed