0.4 recipes: bzr: ERROR: exceptions.AttributeError: 'cStringIO.StringI' object has no attribute 'split' [blocked on migration of PPAs to scalingstack]

Bug #915505 reported by Tamer Saadeh
234
This bug affects 40 people
Affects Status Importance Assigned to Milestone
launchpad-buildd
Fix Released
Critical
Unassigned

Bug Description

When trying to build a recipe on Launchpad (~/tamersaadeh/bugzilla/bugzilla4), the build failed with that error. This also happened to 3 different build of the same recipe I tried.

Below is an excerpt from the failed oneiric build.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builder/cmds.py", line 620, in run
    possible_transports=possible_transports)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builder/cmds.py", line 463, in _get_prepared_branch_from_location
    changed = resolve_revisions(base_branch, if_changed_from=old_recipe)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builder/recipe.py", line 653, in resolve_revisions
    if_changed_from=if_changed_from_revisions)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builder/recipe.py", line 602, in _resolve_revisions_recurse
    substitute_branch_vars(new_branch.name, new_branch.branch, new_branch.revid)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/builder/recipe.py", line 1018, in substitute_branch_vars
    cl = changelog.Changelog(tree.get_file(cl_file_id))
  File "/var/lib/python-support/python2.5/debian_bundle/changelog.py", line 203, in __init__
    self.parse_changelog(file, max_blocks, allow_empty_author=allow_empty_author)
  File "/var/lib/python-support/python2.5/debian_bundle/changelog.py", line 222, in parse_changelog
    for line in self._file.split('\n'):
AttributeError: 'cStringIO.StringI' object has no attribute 'split'

bzr 2.4.0 on python 2.5.2 (Linux-2.6.24-29-xen-x86_64-with-debian-lenny-sid)
arguments: ['/usr/bin/bzr', 'dailydeb', '--safe', '--no-build', '/home/buildd
    /build-dac899605c5287e56d4f68d2c5d5f6cd89fb7bd4/chroot-
    autobuild/home/buildd/work/recipe', '/home/buildd/build-
    dac899605c5287e56d4f68d2c5d5f6cd89fb7bd4/chroot-
    autobuild/home/buildd/work/tree', '--manifest', '/home/buildd/build-
    dac899605c5287e56d4f68d2c5d5f6cd89fb7bd4/chroot-
    autobuild/home/buildd/work/tree/manifest', '--allow-fallback-to-native',
    '--append-version', '~oneiric1']
plugins: bash_completion[2.4.0], builder[0.7.2dev], changelog_merge[2.4.0],
    launchpad[2.4.0], netrc_credential_store[2.4.0], news_merge[2.4.0],
    weave_fmt[2.4.0]
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
(0.75604699999999991, 0.060002999999999994, 0, 0, 0, 0, 7602, 16, 0, 7176, 0, 0, 0, 0, 273, 63)
RUN: /usr/share/launchpad-buildd/slavebin/scan-for-processes ['/usr/share/launchpad-buildd/slavebin/scan-for-processes', 'dac899605c5287e56d4f68d2c5d5f6cd89fb7bd4']

Here are the links to the full logs of the failed builds:
1. https://launchpadlibrarian.net/89750689/buildlog.txt.gz (natty)
2. https://launchpadlibrarian.net/89750403/buildlog.txt.gz (oneiric)
3. https://launchpadlibrarian.net/89750503/buildlog.txt.gz (precise)

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is happening because launchpad's buildd's are still using an older version of python-debian.

affects: bzr → launchpad-buildd
Revision history for this message
Tamer Saadeh (tamersaadeh) wrote :

Ok, but is this a global issue or just specific to my branch/builds?

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

It's a global issue, but you should only encounter it with newer recipe versions.

Aaron Bentley (abentley)
Changed in launchpad-buildd:
status: New → Triaged
importance: Undecided → High
Alberto Mardegan (mardy)
Changed in opensesame-libaccounts-glib:
importance: Undecided → High
Changed in launchpad-buildd:
importance: High → Critical
Revision history for this message
Alberto Mardegan (mardy) wrote :

Is there an ETA for the deployment of the new version of python-debian?
I'd like to know, because if it's a long process then we'd rather use the 0.3 recipe version then.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Any update on this? I have a lot of daily builds that can't work until this is fixed...

Revision history for this message
Stuart Bishop (stub) wrote :

The update to the production buildds is tracked in RT #46345

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Robert, you should be able to work around this by using version "0.3".

Alberto Mardegan (mardy)
no longer affects: online-accounts-libaccounts-glib
Revision history for this message
sebikul (sebikul) wrote :

Are there any news regarding this issue? I really need to use the new tags available in format 0.4

Revision history for this message
i30817 (i30817) wrote :

9 months later...

Chad Miller (cmiller)
summary: - bzr: ERROR: exceptions.AttributeError: 'cStringIO.StringI' object has no
- attribute 'split'
+ 0.4 recipes: bzr: ERROR: exceptions.AttributeError: 'cStringIO.StringI'
+ object has no attribute 'split'
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: 0.4 recipes: bzr: ERROR: exceptions.AttributeError: 'cStringIO.StringI' object has no attribute 'split'

This really is too bad. The latest tag is especially useful for doing stable build PPA's.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Echoing Clint's comment, really need {latest-tag} to do correct daily builds.

Revision history for this message
Stefan Tauner (stefanct) wrote :

more than 15 months later... some sort of timeline, or at least a list of things to do or insurmountable obstacles would be really appreciated.

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

Hello, is there any update for this?

Revision history for this message
Rohan Garg (rohangarg) wrote :

You can workaround this issue by using 'nest' instead of 'merge'

Colin Watson (cjwatson)
summary: 0.4 recipes: bzr: ERROR: exceptions.AttributeError: 'cStringIO.StringI'
- object has no attribute 'split'
+ object has no attribute 'split' [blocked on migration of PPAs to
+ builderstack]
Revision history for this message
René Fritze (renemilk) wrote : Re: 0.4 recipes: bzr: ERROR: exceptions.AttributeError: 'cStringIO.StringI' object has no attribute 'split' [blocked on migration of PPAs to builderstack]

Imho this bug needs prominent linking on https://help.launchpad.net/Packaging/SourceBuilds/Recipes#Version_numbers_and_substitution_variables
Please at least note which 0.4 features are broken (all?).

Revision history for this message
Colin Watson (cjwatson) wrote :

I'm not sure exactly which features are broken, so I'm hesitant to edit the documentation. scalingstack is currently undergoing acceptance testing and tweaking on staging, though, so we might finally not be too far off having this fixed.

summary: 0.4 recipes: bzr: ERROR: exceptions.AttributeError: 'cStringIO.StringI'
object has no attribute 'split' [blocked on migration of PPAs to
- builderstack]
+ scalingstack]
Revision history for this message
Colin Watson (cjwatson) wrote :

The new scalingstack infrastructure for virtual builders has been rolled out on production. I've tested that the recipe text used in the original report of this bug now works:

  https://code.launchpad.net/~cjwatson/+recipe/bugzilla-daily-lptest

We won't close this bug just yet, as it's still possible that we'll discover some critical problem with the new builders and need to back out to the old system until we can fix it. However, you should now be able to run test builds with the 0.4 recipe format. Please let us know if you spot any problems with it.

Colin Watson (cjwatson)
Changed in launchpad-buildd:
status: Triaged → In Progress
William Grant (wgrant)
Changed in launchpad-buildd:
status: In Progress → Fix Released
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.