TypeError: keys and values must be strings
- From:
- Sean Fioritto
- Date:
- 2009-09-24 @ 00:42
Hey folks, Zed, whoever reads this list --
I'm trying to get the one shot blog example up and running in my shiny new
virtualenv in Ubuntu. It appears as if my Python 2.6 is missing gdbm, (or
something similar) and the Confirm storage is falling back on dumbdb causing
the stack trace below.
I followed all of the directions in "Deploying Lamson Level 1" explicitly,
multiple times in fact. Wondering if anyone else has had this problem? Is
there a straight forward solution? I am missing some standard extensions in
my lamson python 2,6. I downloaded the python standard lib extensions, (an
ubuntu package), with the thought that I could compile and install them in
my lamson virtualenv, but after running into a few blips I decided to ping
the list and see if there was a better way...
I'm also going to try getting everything up and running using pip, just so I
can start hacking.
I'm not completely new to this type of problem but I'm not an expert so if
it seems like I'm missing something obvious, I probably am, and any help is
greatly appreciated. Also apologies if this is already in the archives
somewhere, but they don't appear to be working?
thanks,
Sean
Traceback (most recent call last):
File
"/home/sean/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0pre5-py2.6.egg/lamson/routing.py",
line 373, in call_safely
func(message, **kwargs)
File
"/home/sean/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0pre5-py2.6.egg/lamson/routing.py",
line 494, in routing_wrapper
next_state = func(message, *args, **kw)
File
"/home/sean/deploy/source/lamson-1.0pre5/examples/osb/app/handlers/comment.py",
line 18, in START
CONFIRM.send(relay, "comment", message, "mail/comment_confirm.msg",
locals())
File
"/home/sean/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0pre5-py2.6.egg/lamson/confirm.py",
line 179, in send
confirm_address = self.register(target, message)
File
"/home/sean/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0pre5-py2.6.egg/lamson/confirm.py",
line 142, in register
self.storage.store(target, from_address, secret, pending_id)
File
"/home/sean/deploy/LAMSON/lib/python2.6/site-packages/lamson-1.0pre5-py2.6.egg/lamson/confirm.py",
line 74, in store
pending_message_id)
File "/home/sean/deploy/lib/python2.6/shelve.py", line 133, in __setitem__
self.dict[key] = f.getvalue()
File "/home/sean/deploy/lib/python2.6/dumbdbm.py", line 164, in
__setitem__
raise TypeError, "keys and values must be strings"
TypeError: keys and values must be strings
F