Thread: [PyWrapper-devel] Problem : DbModuleMissingError
Status: Alpha
Brought to you by:
jatorre
From: Joana G. M. <jgo...@gm...> - 2008-07-10 14:06:17
|
Hi everybody, I 'm trying to config pywrapper. But when I was click in one of these links: http://rs.tdwg.org/dwc/dwcore/<http://localhost:8000/pywrapper/configtool/biocore/mappings/schema?ns=http%3A%2F%2Frs.tdwg.org%2Fdwc%2Fdwcore%2F>or http://rs.tdwg.org/dwc/geospatial/<http://localhost:8000/pywrapper/configtool/biocore/mappings/schema?ns=http%3A%2F%2Frs.tdwg.org%2Fdwc%2Fgeospatial%2F> Concept lists These are the conceptual XML schemas mapped to your database and the number of existing mappings. Follow the link to edit the mappings as lists of concepts: - 007 concepts in http://rs.tdwg.org/dwc/dwcore/<http://localhost:8000/pywrapper/configtool/biocore/mappings/schema?ns=http%3A%2F%2Frs.tdwg.org%2Fdwc%2Fdwcore%2F> - 002 concepts in http://rs.tdwg.org/dwc/geospatial/<http://localhost:8000/pywrapper/configtool/biocore/mappings/schema?ns=http%3A%2F%2Frs.tdwg.org%2Fdwc%2Fgeospatial%2F> Show this error!!!. I'm new using pywrapper. Do you know how I can do to resolve this problem? thanks for your help!! Joana 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. Traceback (most recent call last): File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\cherrypy\_cprequest.py", line 551, in respond cherrypy.response.body = self.handler() File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\cherrypy\_cpdispatch.py", line 24, in __call__ return self.callable(*self.args, **self.kwargs) File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\webapp\configtool\cfgtool.py", line 90, in default return getattr(self.dsaAdminObj, action)(dsa, *morePosArgs, **kwargs) File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\webapp\configtool\dsaAdmin.py", line 366, in mappings return getattr(self.mapperObj, action)(dsa, *args, **kwargs) File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\webapp\configtool\mappings\mapper.py", line 102, in schema CNS=self.CNServer File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\webapp\configtool\mappings\mapper.py", line 44, in render return page.Page.render(self, logout=True, menu_items=submenu, curr_menu_idx=4, title=title, dsa=dsa, dsaObj=dsaObj, dbmodObj=dbmodObj, **kwargs) File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\webapp\page.py", line 99, in render return tmpl.serialize(output='html') File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\__init__.py", line 299, in serialize raise_template_error(module=self.__module__) File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\__init__.py", line 297, in serialize return serializer.serialize(self, encoding, fragment, format) File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\serialization.py", line 105, in serialize text = ''.join(self.generate(stream, encoding, fragment, format)) File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\serialization.py", line 630, in generate for ev, item in self.apply_filters(stream, format): File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\serialization.py", line 163, in format_stream for ev, item in stream: File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\parser.py", line 219, in _coalesce for ev, item in stream: File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\serialization.py", line 478, in inject_meta_tags for ev, item in stream: File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\parser.py", line 177, in _track for p in stream: File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\filter.py", line 30, in apply_matches item = stream.expand() File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\parser.py", line 106, in expand for ev, item in self._iter: File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\parser.py", line 177, in _track for p in stream: File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\parser.py", line 219, in _coalesce for ev, item in stream: File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\webapp\configtool/mappings/schema.py", line 390, in _pull File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\kid\parser.py", line 177, in _track for p in stream: File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\webapp\lib.py", line 266, in __attrtype_select File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\biocase\pywrapper\datasource.py", line 204, in getDbModObj self.dbModObj = DBModuleClass(dsaObj=self, opStatusObj=opStatusObj) File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\biocase\pywrapper\dbmod\dbmod_postgres.py", line 66, in __init__ DBBasemodule.__init__(self, dsaObj, opStatusObj, integrateSqlParameters=False) File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\biocase\pywrapper\dbmod\base_dbmod.py", line 53, in __init__ self.conn = self.createDBconnection() File "C:\Documents and Settings\joana\Desktop\pywrapper_3.1.0a\pywrapper_3.1.0alpha\lib\biocase\pywrapper\dbmod\dbmod_postgres.py", line 80, in createDBconnection raise DbModuleMissingError(log, 'pyPgSQL') NameError: global name 'DbModuleMissingError' is not defined Error location in template file 'C:\\Documents and Settings\\joana\\Desktop\\pywrapper_3.1.0a\\pywrapper_3.1.0alpha\\webapp\\configtool/mappings/schema.kid' between line 113, column 9 and line 114: ... </h3> -- Joana G. Malaverri Mestranda em Ciências da Computação IC-UNICAMP Fono: 3305-4514 |