Description of problem: Fedora 9 comes with python-cherrypy-3.0.3-2.f9. When you install TurboGears, and when you try to use it, an error is thrown: File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 528, in resolve raise VersionConflict(dist,req) # XXX put more info here When viewing requirements in /usr/lib/python2.5/site-packages/TurboGears-1.0.4.4-py2.5.egg-info/requires.txt, the following is displayed at the top line: CherryPy >= 2.3.0,<3.0.0alpha This should read at least CherryPy >= 2.3.0,<=3.0.3, since this version is actually installed with Fedora 9 Patch #1 from the .src.rpm of TurboGears (TurboGears-1.0.4.4-cherrypyreq.patch), is incomplete Version-Release number of selected component (if applicable): 1.0.4.4-2.fc9 How reproducible: Always Steps to Reproduce: 1. yum -y install TurboGears 2. Run python pkrul@kdc:~ :) > python Python 2.5.1 (r251:54863, Apr 8 2008, 01:20:16) [GCC 4.3.0 20080404 (Red Hat 4.3.0-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pkg_resources >>> pkg_resources.require("TurboGears") Actual results: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 626, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 528, in resolve raise VersionConflict(dist,req) # XXX put more info here pkg_resources.VersionConflict: (CherryPy 3.0.3 (/usr/lib/python2.5/site-packages), Requirement.parse('CherryPy>=2.3.0,<3.0.0alpha')) Expected results: [TurboGears 1.0.4.4 (/usr/lib/python2.5/site-packages), TurboKid 1.0.4 (/usr/lib/python2.5/site-packages), TurboJson 1.1.2 (/usr/lib/python2.5/site-packages), TurboCheetah 1.0 (/usr/lib/python2.5/site-packages), simplejson 1.8.1 (/usr/lib/python2.5/site-packages), setuptools 0.6c7 (/usr/lib/python2.5/site-packages), RuleDispatch 0.5a0.dev-r2306 (/usr/lib/python2.5/site-packages), PasteScript 1.6.2 (/usr/lib/python2.5/site-packages), FormEncode 1.0 (/usr/lib/python2.5/site-packages), DecoratorTools 1.7 (/usr/lib/python2.5/site-packages), configobj 4.5.2 (/usr/lib/python2.5/site-packages), CherryPy 3.0.3 (/usr/lib/python2.5/site-packages), kid 0.9.6 (/usr/lib/python2.5/site-packages), RuleDispatch 0.5a0.dev-r2306 (/usr/lib/python2.5/site-packages), Cheetah 2.0.1 (/usr/lib/python2.5/site-packages), PyProtocols 1.0a0dev-r2302 (/usr/lib/python2.5/site-packages), PasteDeploy 1.3.1 (/usr/lib/python2.5/site-packages), Paste 1.6 (/usr/lib/python2.5/site-packages), DecoratorTools 1.7 (/usr/lib/python2.5/site-packages)] Additional info: Patch attached. This is required for Freeipa ipa_webgui to run properly
Created attachment 305836 [details] New patch for src.rpm
Created attachment 305837 [details] Patch to src.rpm
TurboGears-1.0.x is not supposed to work with CherryPy-3.x. The requirements in the TurboGears rpm properly specify the python-cherrypy2 package. There should have been a note in the release notes explaining that newly created web applications should be fine but old ones would need to have some changes made but it looks like we didn't get the correct notes listed :-( In Fedora 9, the changes noted here should be necessary for any system with both python-cherrypy and python-cherrypy2 installed, not just sqlalchemy: http://docs.fedoraproject.org/release-notes/f9/en_US/sn-WebServers.html#sn-turbogears-apps If you make those changes and freeipa's webgui doesn't work, I'll be happy to help you port it. Just let me know what cvs module I need to checkout and what command I need to run.
Request to update the release notes has been added:: http://fedoraproject.org/wiki/Docs/Beats/WebServers