Seems like the examples are out of date. I wasn't able to get the cherry py 3 server to work with Amplee. After easy installing amplee, I tried to use the examples to run an HTTP server with amplee.
cd /opt
mkdir /opt/amplee
svn co https://svn.defuze.org/oss/amplee/amplee/examples
cd simple
python server.py
I saw an issue here because of a typo in the example.
Traceback (most recent call last):
File "server.py", line 40, in ?
from searchapplication import SearchApplication
File "/opt/amplee/examples/simple/searchapplication.py", line 5, in ?
from amplee.ext.opensearch.description import OpenSearchDescription
File "/usr/lib/python2.4/site-packages/amplee-0.6.0-py2.4.egg/amplee/ext/opensearch/description.py", line 6, in ?
from email.utils import parseaddr, formataddr
ImportError: No module named utils
This required a fix in the amplee egg in python's site-packages
pushd /usr/lib/python2.4/site-packages/amplee-0.6.0-py2.4.egg/
cd amplee/ext/opensearch
sed s/email.utils/email.Utils description.py
popd
I saw another issue at this point
Traceback (most recent call last):
File "server.py", line 43, in ?
cherrypy.signal_handler.subscribe()
AttributeError: 'module' object has no attribute 'signal_handler'
To resolve this, I edited the server.py and comment out line 43. After that --
[27/Mar/2008:23:44:01] AtomPub service application ready