Re: [PyWrapper-devel] 2.5 follow up. Trouble getting going.
Status: Alpha
Brought to you by:
jatorre
From: Roger H. <ro...@td...> - 2006-12-12 18:51:18
|
Thanks Ram=F3n, I installed 1.2.0 but it doesn't seem to have made any difference. I =20 still get the same error messages. They look like XML parsing problems but I am not sure how to =20 investigate this further. I have re-installed lxml using easy_install =20= rather than the regular build. Doesn't make any difference. I'll sleep on it and see if I can think of anything. Thanks, Roger On 12 Dec 2006, at 12:23, Ram=F3n P=E9rez wrote: > 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. =20 >> The only thing I have done since the GUID was working (other than =20= >> install 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 =20 >> information. >> >>> 'foobar'.encode('utf-8') >> 'foobar' >> >> I am a little stuck on this so any help would be most appreciated. >> >> Thanks, >> >> Roger >> >> >> >> ---------------------------------------------------------------------=20= >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to =20 >> share your >> opinions on IT & business topics through brief surveys - and earn =20 >> cash >> http://www.techsay.com/default.php?=20 >> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >> _______________________________________________ >> PyWrapper-devel mailing list >> PyW...@li... >> https://lists.sourceforge.net/lists/listinfo/pywrapper-devel >> >> <rpperez.vcf> > ----------------------------------------------------------------------=20= > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to =20 > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV____________________________= ____=20 > _______________ > PyWrapper-devel mailing list > PyW...@li... > https://lists.sourceforge.net/lists/listinfo/pywrapper-devel |