Paste cannot be used on python2.5

Bug #361163 reported by Gediminas Paulauskas
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
paste (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Jaunty by Gediminas Paulauskas

Bug Description

The packaging of python-paste was not updated for jaunty, so it installs only for python2.6, even if python2.5 is still officially supported.

Impact:
This is a severe regression for webapps that use paster to run and still depend on python2.5. Example is SchoolTool that is built on top of Zope 3.4, which has several incompatibilities with python2.6 and thus requires 2.4 or 2.5 to run. Because of this bug after the server is upgraded to jaunty the schooltool server fails to start.

Steps to reproduce:
$ sudo apt-get install python-pastescript
TEST CASE:
$ paster2.5 help
Traceback (most recent call last):
  File "/usr/bin/paster2.5", line 18, in <module>
    command.run()
  File "/var/lib/python-support/python2.5/paste/script/command.py", line 83, in run
    command = commands[command_name].load()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1912, in load
    if require: self.require(env, installer)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1925, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer))
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 524, in resolve
    raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: Paste>=1.3

The patch attached to this bug was applied to a newer version of paste in debian and karmic. The changes are similar to other packages updated for python2.6 transition.

Revision history for this message
Gediminas Paulauskas (menesis) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package paste - 1.7.2-4

---------------
paste (1.7.2-4) unstable; urgency=low

  * Build depend on python-support >= 1.0.1
    + remove libjs-mochikit from Build-Depends-Indep
    + remove mochikit symlink workaround from debian/rules
  * Prepare for Python 2.6:
    + use py_libdir in debian/rules (LP: #361163)
    + add r7641.patch (taken from upstream repository) - fixes paste.httpserver

paste (1.7.2-3) unstable; urgency=low

  * Link MochiKit before invoking dh_pysupport (Closes: #516320)
    + add libjs-mochikit to Build-Depends-Indep (pysupport's
      movemodules needs it at build time)
  * Standards-Version bumped to 3.8.1 (no changes needed)

paste (1.7.2-2) unstable; urgency=low

  [ Sandro Tosi ]
  * Switch Vcs-Browser field to viewsvn

  [ Piotr Ożarowski ]
  * Change Debian packaging license to MIT (to match upstream)
  * Upload to unstable

paste (1.7.2-1) experimental; urgency=low

  * New upstream release (upload to experimental due to Lenny freeze, to ease
    testing rev. dependencies)
  * Build docs using Sphinx: (Closes: #456554)
    + python-sphinx replaced python-docutils build dependency
    + new suggested packages: libjs-mochikit and libjs-jquery

 -- Scott Kitterman <email address hidden> Thu, 30 Apr 2009 09:00:39 +0100

Changed in paste (Ubuntu):
status: New → Fix Released
Revision history for this message
Gediminas Paulauskas (menesis) wrote :

The fixed version of python-paste is only available in karmic.
A version with only this patch applied is available in https://launchpad.net/~schooltool-owners/+archive/ppa/

description: updated
tags: added: patch python python2.6
summary: - Does not install for all python versions
+ Paste cannot be used on python2.5
Revision history for this message
Gediminas Paulauskas (menesis) wrote :

A smaller patch, the needed lines taken directly from the karmic version

description: updated
Revision history for this message
Gediminas Paulauskas (menesis) wrote :

I want to get this fix into jaunty, but am not able to upload the package to jaunty-proposed, so I have uploaded it to https://launchpad.net/~menesis/+archive/ppa

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.