Ticket #3 (closed defect: fixed)

Opened 8 months ago

Last modified 1 month ago

Simple example server fails to come up

Reported by: guest Assigned to: sylvain
Priority: major Milestone: amplee-0.6.1
Component: amplee Version: amplee-0.6.0
Keywords: Cc: nrmehtais@gmail.com

Description

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

Change History

04/17/08 02:53:46 changed by sylvain

  • status changed from new to assigned.
  • component changed from other to amplee.

It's my fault. I usually work against the latest CP trunk and forget about testing with previous version.

I will fix that.

05/07/08 09:47:49 changed by sylvain

  • version changed from Current to amplee-0.6.1.

05/07/08 10:00:04 changed by sylvain

  • version changed from amplee-0.6.1 to amplee-0.6.0.
  • milestone changed from Next Release to amplee-0.6.1.

10/20/08 14:59:50 changed by sylvain

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in [768].