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

Bug #1070443 reported by Dario D'Amico
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned
loggerhead
Triaged
High
Unassigned

Bug Description

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.

Revision history for this message
Vincent Ladeuil (vila) wrote :

Sounds like a regression and a couple of missing tests...

Changed in bzr:
importance: Undecided → High
status: New → Confirmed
Changed in loggerhead:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Ľubomír Mlích (hater-zlin) wrote :

$ bzr --version
returns
Bazaar (bzr) 2.7.0dev1

$ apt-cache show bzr |grep Version
returns
Version: 2.6.0+bzr6593-1ubuntu1.1
Version: 2.6.0+bzr6593-1ubuntu1

according to
https://launchpad.net/ubuntu/trusty/+source/loggerhead
bzr version <<2.7 is needed.

Maybe this is the problem?

Revision history for this message
Ľubomír Mlích (hater-zlin) wrote :

I see this error on Ubuntu 14.04

Revision history for this message
Ľubomír Mlích (hater-zlin) wrote :

Workaround for me:

1. download packages from presice pangolin:
http://packages.ubuntu.com/precise/loggerhead
http://packages.ubuntu.com/precise/bzr
http://packages.ubuntu.com/precise/bzr-search
http://packages.ubuntu.com/precise/python-bzrlib

2. install those packages
sudo dpkg -i python-bzrlib_2.5.0-2ubuntu2_i386.deb
sudo dpkg -i bzr_2.5.0-2ubuntu2_all.deb
sudo dpkg -i bzr-search_1.7.0~bzr88-1_all.deb
sudo dpkg -i loggerhead_1.19~bzr461-1_all.deb

3. restart loggerhead service
sudo service loggerhead stop
sudo service loggerhead start

4. stop upgrading these packages
sudo echo "loggerhead hold" |sudo dpkg --set-selections
sudo echo "bzr hold" |sudo dpkg --set-selections
sudo echo "bzr-search hold" |sudo dpkg --set-selections
sudo echo "python-bzrlib hold" |sudo dpkg --set-selections

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.