Edgewall Software
Modify

Opened 3 years ago

Last modified 14 months 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 Ryan J Ollos)

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 Ryan J Ollos, 3 years ago

Description: modified (diff)

comment:2 by Ryan J Ollos, 14 months ago

Milestone: next-stable-1.4.xnext-stable-1.6.x

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.