loggerhead in plugin mode crashes

Bug #377551 reported by Cris Boylan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
loggerhead
Fix Released
High
Matt Nordhoff

Bug Description

when running loggerhead as a plugin from the trunk revision (346) I get a failure with:

[crispin@yossarian bzr_conv]$ bzr serve --http
bzr: ERROR: exceptions.TypeError: __init__() takes exactly 3 arguments (2 given)

Traceback (most recent call last):
  File "/home/mandrake/rpm/BUILDROOT/bzr-1.14.1-1mdv2010.0.x86_64//usr/lib64/python2.6/site-packages/bzrlib/commands.py", line 727, in exception_to_return_code
  File "/home/mandrake/rpm/BUILDROOT/bzr-1.14.1-1mdv2010.0.x86_64//usr/lib64/python2.6/site-packages/bzrlib/commands.py", line 922, in run_bzr
  File "/home/mandrake/rpm/BUILDROOT/bzr-1.14.1-1mdv2010.0.x86_64//usr/lib64/python2.6/site-packages/bzrlib/commands.py", line 559, in run_argv_aliases
  File "/home/crispin/.bazaar/plugins/loggerhead/__init__.py", line 77, in run
    a = HTTPExceptionHandler(BranchesFromTransportRoot('.'))
TypeError: __init__() takes exactly 3 arguments (2 given)

bzr 1.14.1 on python 2.6.1 (linux2)
arguments: ['/usr/bin/bzr', 'serve', '--http']
encoding: 'ISO-8859-1', fsenc: 'ISO-8859-1', lang: 'en_GB'
plugins:
  bzrtools /usr/lib/python2.6/site-packages/bzrlib/plugins/bzrtools [1.14]
  cvsps_import /home/crispin/.bazaar/plugins/cvsps_import [unknown]
  gtk /usr/lib/python2.6/site-packages/bzrlib/plugins/gtk [0.95.0.final.1]
  launchpad /usr/lib64/python2.6/site-packages/bzrlib/plugins/launchpad [unknown]
  loggerhead /home/crispin/.bazaar/plugins/loggerhead [1.11]
  netrc_credential_store /usr/lib64/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [unknown]
  qbzr /usr/lib/python2.6/site-packages/bzrlib/plugins/qbzr [0.9.9]
  search /home/crispin/.bazaar/plugins/search [1.7dev]
  stats /home/crispin/.bazaar/plugins/stats [unknown]
  upload /home/crispin/.bazaar/plugins/upload [1.0dev]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Cris Boylan (crispin-boylan) wrote :

have tried to edit the __init__.py to pass a LoggerheadConfig() object to BranchesFromTransportRoot() which is where it is failing, but this tries to reparse the command line which then fails:

Usage: bzr [options] <path>

bzr: error: no such option: --http

Changed in loggerhead:
assignee: nobody → Matt Nordhoff (mnordhoff)
importance: Undecided → High
status: New → Confirmed
Changed in loggerhead:
status: Confirmed → In Progress
Revision history for this message
Matt Nordhoff (mnordhoff) wrote :

Merged in lp:loggerhead r350.

Changed in loggerhead:
status: In Progress → Fix Committed
Martin Albisetti (beuno)
Changed in loggerhead:
status: Fix Committed → Fix Released
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.