You have been subscribed to a public bug:

Installation on Lucid fails with a syntax errorr in the
debian_source_package_name() function. Output pasted below. This is an
upgrade because I'd already "fixed" the problem yesterday, when I
installed bzr-builder for the first time.

cafuego@cachaca:~
; sudo aptitude safe-upgrade
...
Preparing to replace bzr-builder 0.6+bzr127+0.0ubuntu51~lucid1 (using 
.../bzr-builder_0.6+bzr128+0.0ubuntu51~lucid1_all.deb) ...
Unpacking replacement bzr-builder ...
Setting up bzr-builder (0.6+bzr128+0.0ubuntu51~lucid1) ...
/usr/lib/python2.5/site-packages/bzrlib/plugins/builder/cmds.py:510: Warning: 
'with' will become a reserved keyword in Python 2.6
Compiling /usr/lib/python2.5/site-packages/bzrlib/plugins/builder/cmds.py ...
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builder/cmds.py", line 
510
    with open(control_path, 'r') as f:
            ^
SyntaxError: invalid syntax

pycentral: pycentral pkginstall: error byte-compiling files (12)
pycentral pkginstall: error byte-compiling files (12)
dpkg: error processing bzr-builder (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 bzr-builder
E: Sub-process /usr/bin/dpkg returned an error code (1)

Python env:

cafuego@cachaca:~ 
; ls -la /usr/bin/python*
lrwxrwxrwx 1 root root       9 2011-05-29 23:39 /usr/bin/python -> python2.6
lrwxrwxrwx 1 root root       9 2010-06-22 09:58 /usr/bin/python2 -> python2.6
-rwxr-xr-x 1 root root 1382984 2010-01-21 10:01 /usr/bin/python2.5
-rwxr-xr-x 1 root root 2613296 2010-04-17 00:42 /usr/bin/python2.6
-rwxr-xr-x 1 root root    1452 2010-04-17 00:41 /usr/bin/python2.6-config
lrwxrwxrwx 1 root root      16 2010-06-22 09:58 /usr/bin/python-config -> 
python2.6-config

If I rewrite the offending function as below, install completes
successfully:

def debian_source_package_name(control_path):
    """Open a debian control file and extract the package name.

    """
    f = open(control_path, 'r')
    control = deb822.Deb822(f)
    return control["Source"]

** Affects: bzr-builder (Ubuntu)
     Importance: Low
         Status: Triaged

-- 
Can't install on Lucid due to syntax error
https://bugs.launchpad.net/bugs/790587
You received this bug notification because you are a member of Ubuntu Bugs, 
which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to