[PyWrapper-devel] 2.5 follow up. Trouble getting going.
Status: Alpha
Brought to you by:
jatorre
|
From: Roger H. <ro...@td...> - 2006-12-12 12:12:07
|
Hi All,
Following up from my last post (under Python 2.5 on OS X 10.4).
I installed the MySQL driver into Python and seem to have gone
backwards.
On starting the cherrypy server I get a series of warnings:
./start_serv.py 8080
WARNING! from pywrapper.model:
REQ_STRUCTURE_UNKNOWN_SCHEMA_TAG:::Unknown xml schema construct
'pattern' encountered in line 1562. Ignored.
WARNING! from pywrapper.model:
REQ_STRUCTURE_UNKNOWN_SCHEMA_TAG:::Unknown xml schema construct
'minlength' encountered in line 1364. Ignored.
WARNING! from pywrapper.model:
REQ_STRUCTURE_UNKNOWN_SCHEMA_TAG:::Unknown xml schema construct
'whitespace' encountered in line 1365. Ignored.
...
before the server actually kicks off.
Configure PyWrapper v3.0.0 CherryPy server using /Users/rogerhyam/
Documents/tdwg/pywrapper_3.0.0/pywrapper_3.0.0/config/webapp.cfg
mounting PyWrapper webapps to /pywrapper
run server on port 8080
start engine...
When I go to the URL I get a 500
http://localhost:8080/pywrapper/
Traceback (most recent call last):
File "/Users/rogerhyam/Documents/tdwg/pywrapper_3.0.0/
pywrapper_3.0.0/lib/cherrypy/_cprequest.py", line 539, in respond
cherrypy.response.body = self.handler()
File "/Users/rogerhyam/Documents/tdwg/pywrapper_3.0.0/
pywrapper_3.0.0/lib/cherrypy/_cprequest.py", line 110, in __call__
return self.callable(*self.args, **self.kwargs)
File "/Users/rogerhyam/Documents/tdwg/pywrapper_3.0.0/
pywrapper_3.0.0/webapp/root.py", line 48, in index
datasources=sorted(self.getDsaList())
File "/Users/rogerhyam/Documents/tdwg/pywrapper_3.0.0/
pywrapper_3.0.0/webapp/page.py", line 95, in render
return tmpl.serialize(output='html')
File "/Users/rogerhyam/Documents/tdwg/pywrapper_3.0.0/
pywrapper_3.0.0/lib/kid/__init__.py", line 236, in serialize
return serializer.serialize(self, encoding, fragment)
File "/Users/rogerhyam/Documents/tdwg/pywrapper_3.0.0/
pywrapper_3.0.0/lib/kid/serialization.py", line 51, in serialize
text = list(self.generate(stream, encoding, fragment))
File "/Users/rogerhyam/Documents/tdwg/pywrapper_3.0.0/
pywrapper_3.0.0/lib/kid/serialization.py", line 353, in generate
yield "<" + qname.encode(encoding)
LookupError: unknown encoding: utf-8
I am looking around in the code and googling to see if I am doing
anything dumb with the libraries - but they were all fine before. The
only thing I have done since the GUID was working (other than install
the MySQL package) was reboot the machine.
If I run a Python shell and type 'foobar'.encode('utf-8') I get a
foobar echoed back to me so I guess my Python install is healthy.
Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 'foobar'.encode('utf-8')
'foobar'
I am a little stuck on this so any help would be most appreciated.
Thanks,
Roger
|