#1040933 TracError: InvalidVersion: Invalid version: '3.5.0-git20211031.e6458ec-1-b1'

Package:
trac
Source:
trac
Submitter:
Christian T. Steigies
Date:
2023-12-08 18:03:07 UTC
Severity:
normal
#1040933#5
Date:
2023-07-12 14:40:46 UTC
From:
To:
Dear Maintainer,
I have upgraded a server to bookworm.  On this server trac has been running
fine since before buster with the package installed from unstable.
After upgrading to bookworm the trac webpage reported:

Internal Server Error
TracError: InvalidVersion: Invalid version: '3.5.0-git20211031.e6458ec-1-b1'

This "Invalid version" seems to be from libapache2-mod-python, so I rebuilt
this package after changing the version to a purely numeric version number (3.5.0.1-1).
While rebuilding libapache2-mod-python, I saw this message during configure:
checking for --with-python... /usr/bin/python3
checking Python version...   File "<string>", line 1
import sys; print({}.{}.format(*sys.version_info))
 ^
SyntaxError: invalid syntax

The package builds fine (but can not be built twice from the same source
dir), however, and after installing version 3.5.0.1-1, trac is working fine
again.  While there seems to be a problem with libapache2-mod-python, I
don't think that the version number is invalid, the changelog says: "New
upstream git snapshot, upstream no longer cuts releases", so the version
check somewhere in trac should be adjusted.

Thanks for maintaining trac, I can't wait to see version 1.6 ;-)
Christian

#1040933#10
Date:
2023-11-15 12:23:36 UTC
From:
To:
Hi,

This issue happens with 1.6-1 from sid on a bookworm system.  It can be
fixed installing libapache2-mod-python from sid (3.5.0.1-1) too.

Cheers


      EnekoLacunza

Director Técnico | Zuzendari teknikoa

Binovo IT Human Project

	943 569 206 <tel:943 569 206>

	elacunza@binovo.es <mailto:elacunza@binovo.es>

	binovo.es <//binovo.es>

	Astigarragako Bidea, 2 - 2 izda. Oficina 10-11, 20180 Oiartzun


youtube <https://www.youtube.com/user/CANALBINOVO/>
	linkedin <https://www.linkedin.com/company/37269706/>

#1040933#15
Date:
2023-12-06 17:14:09 UTC
From:
To:
Hi,

I am running into this same issue after dist upgrading from buster to
bullseye then bookworm today. The trac package of bookworm-backports is
broken. Building the trac package from buster on bookworm is not an
option, because bookworm no longer provides the old python packages from
buster. I do need to get trac up and running after the upgrade. What
packages do I need to backport manually from testing to make the
bookworm-backports trac package work on bookworm or will the backport
get fixed. Thank you.

Regards,

#1040933#20
Date:
2023-12-08 17:55:09 UTC
From:
To:
Maybe it is broken when used with Apache?
In my job, we use Trac with nginx and gunicorn.
Maybe that is a possible workaround for you, too?