Re: [PyWrapper-devel] 2.5 follow up. Trouble getting going.
Status: Alpha
Brought to you by:
jatorre
From: <rp...@in...> - 2006-12-12 12:23:41
|
Hi Roger, I had problems with the mysql-python-1.2.1 library and I solved my=20 problem with the MySQL-python-1.2.0. Best regards, Ram=F3n. Roger Hyam escribi=F3: > 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 =20 > backwards. > > On starting the cherrypy server I get a series of warnings: > > ./start_serv.py 8080 > > WARNING! from pywrapper.model: =20 > REQ_STRUCTURE_UNKNOWN_SCHEMA_TAG:::Unknown xml schema construct =20 > 'pattern' encountered in line 1562. Ignored. > > WARNING! from pywrapper.model: =20 > REQ_STRUCTURE_UNKNOWN_SCHEMA_TAG:::Unknown xml schema construct =20 > 'minlength' encountered in line 1364. Ignored. > > WARNING! from pywrapper.model: =20 > REQ_STRUCTURE_UNKNOWN_SCHEMA_TAG:::Unknown xml schema construct =20 > 'whitespace' encountered in line 1365. Ignored. > > ... > > before the server actually kicks off. > > Configure PyWrapper v3.0.0 CherryPy server using /Users/rogerhyam/=20 > 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/=20 > pywrapper_3.0.0/lib/cherrypy/_cprequest.py", line 539, in respond > cherrypy.response.body =3D self.handler() > File "/Users/rogerhyam/Documents/tdwg/pywrapper_3.0.0/=20 > 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/=20 > pywrapper_3.0.0/webapp/root.py", line 48, in index > datasources=3Dsorted(self.getDsaList()) > File "/Users/rogerhyam/Documents/tdwg/pywrapper_3.0.0/=20 > pywrapper_3.0.0/webapp/page.py", line 95, in render > return tmpl.serialize(output=3D'html') > File "/Users/rogerhyam/Documents/tdwg/pywrapper_3.0.0/=20 > 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/=20 > pywrapper_3.0.0/lib/kid/serialization.py", line 51, in serialize > text =3D list(self.generate(stream, encoding, fragment)) > File "/Users/rogerhyam/Documents/tdwg/pywrapper_3.0.0/=20 > 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 =20 > anything dumb with the libraries - but they were all fine before. The =20 > only thing I have done since the GUID was working (other than install =20 > the MySQL package) was reboot the machine. > > If I run a Python shell and type 'foobar'.encode('utf-8') I get a =20 > 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 > > > > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > PyWrapper-devel mailing list > PyW...@li... > https://lists.sourceforge.net/lists/listinfo/pywrapper-devel > =20 |