Bug 506367

Summary: CherryPy version 3.1.2 is required to work with Python 2.6
Product: [Fedora] Fedora Reporter: Mitchell Berger <mitchb>
Component: python-cherrypyAssignee: Luke Macken <lmacken>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 11CC: a.badger, lmacken, mitchb, pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.1.2-1.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-24 19:31:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mitchell Berger 2009-06-16 21:54:05 UTC
Description of problem:
_cpchecker.py replaces warnings.formatwarning, and the argument
list was not consistent with the definition in Python 2.6 until
CherryPy version 3.1.2.  Fedora 11 is currently shipping version
3.1.1, without the necessary patch.

Version-Release number of selected component (if applicable):
3.1.1-2.fc11.noarch

How reproducible:
N/A - the code in this package simply doesn't contain the needed
patch.

Additional info:
CherryPy ticket discussing this issue:
http://www.cherrypy.org/ticket/891
CherryPy patch in version 3.1.2 resolving this issue:
http://www.cherrypy.org/changeset/2096
Python ticket discussing this issue:
http://bugs.python.org/issue4891

Comment 1 Toshio Ernie Kuratomi 2009-06-17 04:45:01 UTC
Does this break cherrypy to the point that 3.1.1 is unusable on python-2.6?  I'm pushing an update but need to decide whether to push to testing or directly to stable.

Comment 2 Mitchell Berger 2009-06-17 05:17:29 UTC
If the CherryPy checker is enabled, which it is by default, then
any warning it produces will become a fatal exception that prevents
the application from starting up.  If your code produces no warnings,
then it will still be able to run.

To test this, you can begin with the scaffold sample application
and add these two lines to the end of example.conf:

[/tmp]
tools.staticdir.on: True

(This would ordinarily produce a warning, but with CherryPy 3.1.1
and Python 2.6, the application cannot start.)

Since the fatal error only occurs when you would have otherwise
received a warning, it may not be critical enough to bypass testing;
we'll rely on your judgment.  Thanks for the quick reply!

Comment 3 Fedora Update System 2009-06-17 05:52:53 UTC
python-cherrypy-3.1.2-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/python-cherrypy-3.1.2-1.fc11

Comment 4 Fedora Update System 2009-06-19 13:35:06 UTC
python-cherrypy-3.1.2-1.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update python-cherrypy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-6702

Comment 5 Fedora Update System 2009-06-24 19:31:49 UTC
python-cherrypy-3.1.2-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.