Loggerhead crashes on start: bzr: ERROR: exceptions.TypeError: serve_http() takes at most 4 arguments (5 given)

Bug #1100258 reported by Dario D'Amico
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
loggerhead
New
Undecided
Unassigned

Bug Description

I originally filed a bug report for Bazaar (bug #1070443 for Bazaar, NOT Loggerhead)
because the error message instructed me to do so, but since it could be a Loggerhead
bug and there haven't been new releases of these two softwares since then, I'm posting it
again, unchanged, as a Loggerhead bug.

----- Original text follows -----

I try to serve on Mac OS X 10.7.4 using the following command:

$ bzr serve --http

This results in the following error:

bzr: ERROR: exceptions.TypeError: serve_http() takes at most 4 arguments (5 given)

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1141, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 5560, in run
    protocol(t, listen, port, inet, client_timeout)
TypeError: serve_http() takes at most 4 arguments (5 given)

bzr 2.6b2 on python 2.6.7 (Darwin-11.4.0-x86_64-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'serve', '--http']
plugins: bash_completion[2.6b2], bzrtools[2.5.0], changelog_merge[2.6b2],
    colo[0.4.0], email[unknown], explorer[1.3.0], fastimport[0.14.0dev],
    git[0.6.8], keychain[0.1.0], launchpad[2.6b2], loggerhead[1.18.1],
    loom[2.2.0], netrc_credential_store[2.6b2], news_merge[2.6b2],
    pipeline[1.4.0], po_merge[2.6b2], qbzr[0.23.0], rewrite[0.6.3],
    svn[1.2.2], upload[1.1.0], weave_fmt[2.6b2], xmloutput[0.8.8]
encoding: 'utf-8', fsenc: 'utf-8', 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.

My Bazaar version is Bazaar-2.6b2-OSX-10.6-1.dmg and I'm not sure why I got this version since it is not listed here:

http://wiki.bazaar.canonical.com/MacOSXDownloads

But it is listed here:

https://launchpad.net/bzr/+download

I installed Loggerhead on 23 October at 18:10 CEST 2012 by going in my plugin directory and typing:

bzr branch lp:loggerhead

I also tried to run the setup:

$ python setup.py build_ext -i

But I get an error:

Traceback (most recent call last):
  File "setup.py", line 23, in <module>
    import loggerhead
  File "/Users/Dario/.bazaar/plugins/loggerhead/loggerhead/__init__.py", line 29, in <module>
    pkg_resources.get_distribution('Paste>=1.6')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 311, in get_distribution
    if isinstance(dist,Requirement): dist = get_provider(dist)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 197, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: Paste>=1.6

The same error occurs with loggerhead-1.18.1.tar.gz, either with the command above or with make.

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.