Crashes with bzrlib GlobalConfig error

Bug #952988 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad Developer Utilities
Invalid
High
Unassigned

Bug Description

Looks like there is some bzrlib version specific code, and I've got a different version installed on my system.

Traceback (most recent call last):
  File "/var/launchpad/ec2test-remote.py", line 930, in <module>
    main(sys.argv)
  File "/var/launchpad/ec2test-remote.py", line 911, in main
    smtp_connection = SMTPConnection(bzrlib.config.GlobalConfig())
  File "/usr/lib/pymodules/python2.6/bzrlib/smtp_connection.py", line 67, in __init__
    self._config_smtp_server = config.get('smtp_server')
AttributeError: 'GlobalConfig' object has no attribute 'get'
Traceback (most recent call last):
  File "/home/stub/lp/lp-dev-utils/ec2test/instance.py", line 471, in set_up_and_run
    retval = func(*args, **kw)
  File "/home/stub/lp/lp-dev-utils/ec2test/testrunner.py", line 531, in run_tests
    user_connection.perform(cmd)
  File "/home/stub/lp/lp-dev-utils/ec2test/instance.py", line 696, in perform
    raise RuntimeError('Command failed: %s' % (cmd,))

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

This script was failing on the remote end due to an old AMI.

Changed in lp-dev-utils:
status: New → Invalid
Revision history for this message
Stuart Bishop (stub) wrote :

Nope - still dead. Ignore previous comment.

Changed in lp-dev-utils:
status: Invalid → Triaged
tags: added: bzr
tags: added: bzrlib
Changed in lp-dev-utils:
importance: Undecided → High
Revision history for this message
Stuart Bishop (stub) wrote :

Per vila's advice, the following patch got things sent off:

=== modified file 'ec2test/remote.py'
--- ec2test/remote.py 2012-02-24 18:40:09 +0000
+++ ec2test/remote.py 2012-03-12 14:21:07 +0000
@@ -908,7 +908,7 @@

     pid_filename = os.path.join(LAUNCHPAD_DIR, 'ec2test-remote.pid')

- smtp_connection = SMTPConnection(bzrlib.config.GlobalConfig())
+ smtp_connection = SMTPConnection(bzrlib.config.GlobalStack())

     request = Request(
         options.public_branch, options.public_branch_revno, TEST_DIR,

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

Box didn't have the bzr ppa enabled.

Changed in lp-dev-utils:
status: Triaged → Invalid
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.