Hello Lena, Thank you for looking into this bug. I have created a minimal test case that illustrates the problem and is completely independent of trac - though it exposes the issue that causes trac to fail.
To install the test case: 1. Extract the attached archive python_bug_2078527.tar.gz into /opt/local/tmp (you can put it somewhere else, but you'll need to edit the PythonPath directive in the supplied apache2.conf file if you do). 2. Add "Include /opt/local/tmp/python_bug_2078527/apache2.conf" to the bottom of the VirtualHost definition in /etc/apache2/sites-available/000-default.conf (assuming the default location of this configuration file). 3. Run systemctl restart apache2 Now go to http://localhost/mod-python-bug-2078527 in a browser. You should see this: Python sys.version 3.12.3 platform.python_version() ValueError: failed to parse CPython sys.version: '3.12.3' If you go to http://localhost/mod-python-bug-2078527?hack_fix=1 you should see this: Python sys.version 3.12.3 (dummy, dummy, dummy) [dummy] platform.python_version() 3.12.3 I hope this helps! Thanks again, Mike. ** Attachment added: "python_bug_2078527.tar.gz" https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/2078527/+attachment/5813129/+files/python_bug_2078527.tar.gz -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2078527 Title: sys.version from mod_python cannot be parsed by the python platform module To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/2078527/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
