Red Hat Bugzilla – Bug 632459
TurboGears2 incompatible with Pylons == 1.0
Last modified: 2016-09-19 22:41:14 EDT
Description of problem:
When trying to start a tg2 app with paster in F-14, it fails because tg2 wants 'Pylons>=0.9.7,<1.0b1'.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
A. Go into a TG2 app directory and start it with paster
-- or --
B. Just execute "paster" with tg2 installed
nils@gibraltar:~/web/Foo> paster serve --reload development.ini
Traceback (most recent call last):
File "/usr/bin/paster", line 9, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
File "/usr/lib/python2.7/site-packages/paste/script/command.py", line 73, in run
commands = get_commands()
File "/usr/lib/python2.7/site-packages/paste/script/command.py", line 115, in get_commands
plugins = pluginlib.resolve_plugins(plugins)
File "/usr/lib/python2.7/site-packages/paste/script/pluginlib.py", line 81, in resolve_plugins
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 654, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 556, in resolve
raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (Pylons 1.0 (/usr/lib/python2.7/site-packages), Requirement.parse('Pylons>=0.9.7,<1.0b1'))
Usage: /usr/bin/paster COMMAND
Usage: paster [paster_options] COMMAND [command_options]
--version show program's version number and exit
--plugin=PLUGINS Add a plugin to the list of commands (plugins are Egg
specs; will also require() the Egg)
-h, --help Show this help message
Cannot load command tginfo: (Pylons 1.0 (/usr/lib/python2.7/site-packages), Requirement.parse('Pylons>=0.9.7,<1.0b1'))
Cannot load command quickstart: (Pylons 1.0 (/usr/lib/python2.7/site-packages), Requirement.parse('Pylons>=0.9.7,<1.0b1'))
A. no error message, app started
B. no warnings about tginfo, quickstart, but descriptions of them
There seem to be some fixes regarding the Pylons version, but they refer to a version 0.10/0.10rc1 which seems ominous to me.
Also, the following commit seems to have typos which haven't been fixed since, it accesses "config['pylons.stritmpl_contextt_tmpl_context']" which doesn't exist in pylons (at least not mine) but strongly resembles a double-paste error:
Author: percious <devnull@localhost>
Date: Sun May 16 16:29:12 2010 -0400
pylons 0.10 support started
Note that I used git-hg to get a read-only git copy of the repo (I miss too many git things in Mercurial), the corresponding Mercurial revision/changeset is 1035:16a62723c084.
I knew I would forget something this late:
- The fixes are post 2.1b2 in the upstream Hg repo
- Reproducer B. doesn't work inside a TG2 app directory (inside it behaves as A.)
TurboGears2.1 is currently incompatible with Pylons 1.0. I just spoke with upstream, and apparently there are still a few more issues to iron out.
So, do we want pull Pylons 1.0 from F14? or create a 0.9.7 compat package?
I'm not sure as I'm only using it through TurboGears, not directly. I'm fine with either.
There's a community who are using pylons directly so pulling pylons-1.0 probably isn't an option.
Compat package is an option.
Fixing the remaining issues in TG2 is another option. lmacken and I are thinking this is the most desirable course. I've packaged python-chameleon so we can start running the tg2 unittests and figure out what's broken. Need someone to review:
python-chameleon review is done. I'll build it for Fedora 14/rawhide next week. So we should be able to start unittesting this soon.
While we wait for that to go to stable (won't be until after the f14 beta release) we should probably enable the test suite in rawhide and see what's broken.
Looks like upstream removed the Pylons<=0.9.7 requirement after last weekends sprints.
TurboGears2-2.1-0.3.rc1.dev1048.fc14 has been submitted as an update for Fedora 14.
TurboGears2-2.1-0.3.rc1.dev1048.fc14 has been pushed to the Fedora 14 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 TurboGears2'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/TurboGears2-2.1-0.3.rc1.dev1048.fc14
TurboGears2-2.1-0.3.rc1.dev1048.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.