Sendoff having trouble under Jaunty

Bug #369234 reported by Craig Maloney
4
Affects Status Importance Assigned to Milestone
sendoff
Triaged
Medium
Unassigned

Bug Description

I recently upgraded to Jaunty, and am seeing the following error:

Traceback (most recent call last):
  File "/usr/bin/sendoff", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2562, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 524, in resolve
    raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: sendoff==0.0.8

I'm using python-paramik 1.7.4-0.1, and sendoff 0.0.8

Revision history for this message
Richard Harding (rharding) wrote :

Bug seems related to the install path in site-packages. Please check if the sendoff.egg is in the 2.5 or 2.6 packages dir.

If it's in the 2.5, it might not be in the path of your current python and needs to either removed/reinstalled to go into 2.6 or moved and the bin in /usr/bin/sendoff to point to the right path.

Revision history for this message
Richard Harding (rharding) wrote :

Found the actual culprit. The built egg creates a link in /usr/bin/sendoff.

That file:
#!/us/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'sendoff==0.0.8','console_scripts','sendoff'
__requires__ = 'sendoff==0.0.8'
import sys
from pkg_resources import load_entry_point

sys.exit(
   load_entry_point('sendoff==0.0.8', 'console_scripts', 'sendoff')()
)

Updating the python link to be python 2.5 specifically should fix the command line call and find the application.

Revision history for this message
Richard Harding (rharding) wrote :

Verified that changing the
#! to python2.5 corrects the issue.

Changed in sendoff:
importance: Undecided → Medium
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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