s3ql post-installation script fails with syntax error in "yield from"

Bug #1340219 reported by Neal McBurnett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
s3ql (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

After the last s3ql package upgrade, on precise, I started getting this error:

Setting up s3ql (1.18-1~precise1) ...
SyntaxError: ('invalid syntax', ('/usr/lib/s3ql/dugong/__init__.py', 409, 18, ' yield from self._co_send(("CONNECT %s:%d HTTP/1.0\\r\\n\\r\\n"\n'))

dpkg: error processing s3ql (--configure):
 subprocess installed post-installation script returned error exit status 101
Errors were encountered while processing:
 s3ql

It seems that the post-installation script noted is relying on the new "yield from" feature that was only introduced in python 3.3 (PEP 380).

Neal McBurnett (nealmcb)
description: updated
Revision history for this message
Nikolaus Rath (nikratio) wrote :

Where did you get this package version from?

The most-recent s3ql package in the official precise repository is 1.9-1 (see http://packages.ubuntu.com/precise/s3ql). The most recent s3ql package for precise in the ppa is 1.18.1-1~precise1 (not 1.18-1~precise1, see https://launchpad.net/~nikratio/+archive/ubuntu/s3ql/+packages).

Either of these packages should work fine.

Changed in s3ql (Ubuntu):
status: New → Incomplete
Revision history for this message
Neal McBurnett (nealmcb) wrote :

Thanks for noting the newer package in universe. And I'm sorry for my typo in the package version.

This is where I was seeing what is actually 1.18.1-1~precise1, in the ppa:

$ wajig policy s3ql
s3ql:
  Installed: 1.18-1~precise1
  Candidate: 1.18.1-1~precise1
  Version table:
     1.18.1-1~precise1 0
        500 http://ppa.launchpad.net/nikratio/s3ql/ubuntu/ precise/main amd64 Packages
 *** 1.18-1~precise1 0
        100 /var/lib/dpkg/status
     1.9-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages

I just removed that nikratio ppa and removed the package, than installed s3ql again and that install worked fine.

I haven't looked back at the version in the ppa, but it does seem like if it used python3-only stuff, it would fail on precise.

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

[Expired for s3ql (Ubuntu) because there has been no activity for 60 days.]

Changed in s3ql (Ubuntu):
status: Incomplete → Expired
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.