What are loggerhead's requirements?

Asked by Joseph Price on 2010-03-31

Howdy.

I've been playing around with loggerhead today and have been a little annoyed at the lack of documentation about what its requirements are.

I'm currently on Centos 5...
     # bzr --version
     Bazaar (bzr) 2.1.0
       Python interpreter: /usr/bin/python 2.4.3
       Python standard library: /usr/lib/python2.4
       Platform: Linux-2.6.18-53.el5-i686-with-redhat-5-Final
       bzrlib: /usr/lib/python2.4/site-packages/bzrlib

'Surprisingly', loggerhead isn't doing very well.

I've checked out the latest revision of trunk... 403 and when navigating to http://site:8080/changes I am getting the following:

ERROR:loggerhead.bzr-directory: exceptions.AttributeError: 'module' object has no attribute 'dumps'
Traceback (most recent call last):
  File "/opt/loggerhead/loggerhead/apps/error.py", line 31, in __call__
    return self.application(environ, start_response)
  File "/usr/lib/python2.4/site-packages/paste/httpexceptions.py", line 636, in __call__
    return self.application(environ, start_response)
  File "/opt/loggerhead/loggerhead/main.py", line 124, in wrapped
    return app(environ, start_response)
  File "/opt/loggerhead/loggerhead/apps/transport.py", line 163, in __call__
    return BranchesFromTransportServer(
  File "/opt/loggerhead/loggerhead/apps/transport.py", line 127, in __call__
    return self.app_for_branch(b)(environ, start_response)
  File "/opt/loggerhead/loggerhead/apps/branch.py", line 167, in app
    return c(environ, start_response)
  File "/opt/loggerhead/loggerhead/controllers/__init__.py", line 93, in __call__
    vals.update(self.get_values(path, kwargs, headers))
  File "/opt/loggerhead/loggerhead/controllers/changelog_ui.py", line 98, in get_values
    return {
AttributeError: 'module' object has no attribute 'dumps'

Same issue with the 1.17 release.

1.10 does a little better for me, There, all of the changes and diffs work fine. I only get errors when navigating to something like http://localhost:8080/annotate/1?file_id=join2-20100331143057-3zb0zxr8y5yi1h3d-9

ERROR:loggerhead.bzr-directory: exceptions.AttributeError: 'module' object has no attribute 'dumps'
Traceback (most recent call last):
  File "/opt/loggerhead/loggerhead/apps/error.py", line 31, in __call__
    return self.application(environ, start_response)
  File "/usr/lib/python2.4/site-packages/paste/httpexceptions.py", line 636, in __call__
    return self.application(environ, start_response)
  File "/opt/loggerhead/loggerhead/main.py", line 124, in wrapped
    return app(environ, start_response)
  File "/opt/loggerhead/loggerhead/apps/transport.py", line 163, in __call__
    return BranchesFromTransportServer(
  File "/opt/loggerhead/loggerhead/apps/transport.py", line 127, in __call__
    return self.app_for_branch(b)(environ, start_response)
  File "/opt/loggerhead/loggerhead/apps/branch.py", line 167, in app
    return c(environ, start_response)
  File "/opt/loggerhead/loggerhead/controllers/__init__.py", line 93, in __call__
    vals.update(self.get_values(path, kwargs, headers))
  File "/opt/loggerhead/loggerhead/controllers/changelog_ui.py", line 98, in get_values
    return {
AttributeError: 'module' object has no attribute 'dumps'

There's been no real difference going back to bzr 2.0.4.

Do you have any suggestions on how to get a nice working loggerhead?

Thanks for reading.

Question information

Language:
English Edit question
Status:
Solved
For:
loggerhead Edit question
Assignee:
No assignee Edit question
Solved by:
Joseph Price
Solved:
2010-04-01
Last query:
2010-04-01
Last reply:
2010-03-31

That's very messed up -- what does "python -c 'import marshal; print marshal.dumps'" say?

The marshal module is built in to Python, so I don't know what could be wrong here other than your Python install being broken.

Joseph Price (pricechild) said : #2

# python -c 'import marshal; print marshal.dumps'
<built-in function dumps>

Think I got myself a little confused up above with errors between the 3 versions I've been trying. The error with 1.10 is when trying to view files... AttributeError: 'module' object has no attribute 'ProgressBarStack'. Yep, that's deprecated and removed now in trunk. I'll ignore that.

However, still having issues with 1.17 or trunk. Same as the error in my first post.

Joseph Price (pricechild) said : #3

So just to clarify...

Only issue now is when trying to view diffs.

ERROR:loggerhead.loggerhead-403: exceptions.AttributeError: 'module' object has no attribute 'dumps'
Traceback (most recent call last):
  File "/root/jpc/loggerhead-403/loggerhead/apps/error.py", line 31, in __call__
    return self.application(environ, start_response)
  File "/usr/lib/python2.4/site-packages/paste/httpexceptions.py", line 636, in __call__
    return self.application(environ, start_response)
  File "/root/jpc/loggerhead-403/loggerhead/main.py", line 124, in wrapped
    return app(environ, start_response)
  File "/root/jpc/loggerhead-403/loggerhead/apps/transport.py", line 163, in __call__
    return BranchesFromTransportServer(
  File "/root/jpc/loggerhead-403/loggerhead/apps/transport.py", line 127, in __call__
    return self.app_for_branch(b)(environ, start_response)
  File "/root/jpc/loggerhead-403/loggerhead/apps/branch.py", line 167, in app
    return c(environ, start_response)
  File "/root/jpc/loggerhead-403/loggerhead/controllers/__init__.py", line 93, in __call__
    vals.update(self.get_values(path, kwargs, headers))
  File "/root/jpc/loggerhead-403/loggerhead/controllers/revision_ui.py", line 117, in get_values
    return {
AttributeError: 'module' object has no attribute 'dumps'

Joseph Price (pricechild) said : #4

Ah fixed...

I was simply missing simplejson. loggerhead was pulling in json instead which I guess didn't provide what was wanted.

That'll teach me to double check I've satisfied the README...