ImportError
No module named psycopg
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/lib/python-support/python2.5/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0xb24cf6c>)
- 1305 self.page.send_page()
- 1306 else:
- 1307 handler(self.page.page_name, self)
- 1308
- 1309 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler = <function do_show at 0x9fe8224>
- self = <MoinMoin.request.request_wsgi.Request object at 0xb24cf6c>
- self.page = <MoinMoin.Page.Page object at 0xb51ee2c>
- self.page.page_name = u'FLISOL2007/Argentina/CapitalFederal'
/var/lib/python-support/python2.5/MoinMoin/action/__init__.py in do_show (pagename=u'FLISOL2007/Argentina/CapitalFederal', request=<MoinMoin.request.request_wsgi.Request object at 0xb24cf6c>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
- 251 count_hit=count_hit,
- 252 print_mode=print_mode,
- 253 content_only=content_only,
- 254 )
- 255
- content_only = 0
/var/lib/python-support/python2.5/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0xb589e0c>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})
- 1195 format_args=pi['formatargs'],
- 1196 do_cache=do_cache,
- 1197 start_line=pi['lines'])
- 1198
- 1199 # check for pending footnotes
- start_line undefined
- pi = {'acl': <MoinMoin.security.AccessControlList instance at 0xb58932c>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
/var/lib/python-support/python2.5/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0xb589e0c>, request=<MoinMoin.request.request_wsgi.Request object at 0xb24cf6c>, body=u'= Introducci\xf3n =\n\nCon el objetivo de promover y ...ci\xf3n almacenada en el mismo.\n\n\n----\nCategoryCity\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})
- 1288 raise
- 1289 try:
- 1290 code = self.makeCache(request, parser)
- 1291 self.execute(request, parser, code)
- 1292 except Exception, e:
- code undefined
- self = <MoinMoin.Page.Page object at 0xb589e0c>
- self.makeCache = <bound method Page.makeCache of <MoinMoin.Page.Page object at 0xb589e0c>>
- request = <MoinMoin.request.request_wsgi.Request object at 0xb24cf6c>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>
/var/lib/python-support/python2.5/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page object at 0xb589e0c>, request=<MoinMoin.request.request_wsgi.Request object at 0xb24cf6c>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>)
- 1348 saved_current_lang = request.current_lang
- 1349 try:
- 1350 text = request.redirectedOutput(parser.format, formatter)
- 1351 finally:
- 1352 request.current_lang = saved_current_lang
- text undefined
- request = <MoinMoin.request.request_wsgi.Request object at 0xb24cf6c>
- request.redirectedOutput = <bound method Request.redirectedOutput of <MoinM...equest.request_wsgi.Request object at 0xb24cf6c>>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>
- parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>>
- formatter = <MoinMoin.formatter.text_python.Formatter instance at 0xbabac8c>
/var/lib/python-support/python2.5/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.request_wsgi.Request object at 0xb24cf6c>, function=<bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>>, *args=(<MoinMoin.formatter.text_python.Formatter instance at 0xbabac8c>,), **kw={})
- 842 self.redirect(buf)
- 843 try:
- 844 function(*args, **kw)
- 845 finally:
- 846 self.redirect()
- function = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>>
- args = (<MoinMoin.formatter.text_python.Formatter instance at 0xbabac8c>,)
- kw = {}
/var/lib/python-support/python2.5/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>, formatter=<MoinMoin.formatter.text_python.Formatter instance at 0xbabac8c>, inhibit_p=False)
- 1527
- 1528 # Scan line, format and write
- 1529 formatted_line = self.scan(line, inhibit_p=inhibit_p)
- 1530 self.request.write(formatted_line)
- 1531
- formatted_line = u'<p class="line867"><<<>>>Formulario de preregistro</h1>\n'
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>
- self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>>
- line = u'<<InstallFestForm(Argentina/CapitalFederal)>> '
- inhibit_p = False
/var/lib/python-support/python2.5/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>, line=u'<<InstallFestForm(Argentina/CapitalFederal)>> ', inhibit_p=False)
- 1343 self.in_table or self.in_list):
- 1344 result.append(self.formatter.paragraph(1, css_class="line867"))
- 1345 result.append(self.replace(match, inhibit_p))
- 1346 end = match.end()
- 1347 lastpos = end
- result = ['<p class="line867">']
- result.append = <built-in method append of list object at 0xb51cc4c>
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>
- self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>>
- match = <_sre.SRE_Match object at 0xb6fac78>
- inhibit_p = False
/var/lib/python-support/python2.5/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>, match=<_sre.SRE_Match object at 0xb6fac78>, inhibit_p=False)
- 1385 # Get replace method and replace hit
- 1386 replace_func = getattr(self, '_%s_repl' % type)
- 1387 result.append(replace_func(hit, match.groupdict()))
- 1388 return ''.join(result)
- 1389 else:
- result = []
- result.append = <built-in method append of list object at 0xb51c6cc>
- replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>>
- hit = u'Argentina/CapitalFederal'
- match = <_sre.SRE_Match object at 0xb6fac78>
- match.groupdict = <built-in method groupdict of _sre.SRE_Match object at 0xb6fac78>
/var/lib/python-support/python2.5/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>, word=u'Argentina/CapitalFederal', groups={u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...})
- 1310 if self.macro is None:
- 1311 self.macro = macro.Macro(self)
- 1312 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
- 1313 _macro_name_repl = _macro_repl
- 1314 _macro_args_repl = _macro_repl
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xb1609ec>
- self.formatter = <MoinMoin.formatter.text_python.Formatter instance at 0xbabac8c>
- self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_python.Formatter instance at 0xbabac8c>>
- self.macro = <MoinMoin.macro.Macro instance at 0xb4f0c2c>
- macro_name = u'InstallFestForm'
- macro_args = u'Argentina/CapitalFederal'
- markup undefined
- groups = {u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...}
- groups.get = <built-in method get of dict object at 0xb56e2d4>
/var/lib/python-support/python2.5/MoinMoin/formatter/text_python.py in macro (self=<MoinMoin.formatter.text_python.Formatter instance at 0xbabac8c>, macro_obj=<MoinMoin.macro.Macro instance at 0xb4f0c2c>, name=u'InstallFestForm', args=u'Argentina/CapitalFederal', markup=u'<<InstallFestForm(Argentina/CapitalFederal)>>')
- 187
- 188 def macro(self, macro_obj, name, args, markup=None):
- 189 if self.__is_static(macro_obj.get_dependencies(name)):
- 190 # XXX: why is this necessary??
- 191 macro_obj.formatter = self
- self = <MoinMoin.formatter.text_python.Formatter instance at 0xbabac8c>
- self.__is_static undefined
- macro_obj = <MoinMoin.macro.Macro instance at 0xb4f0c2c>
- macro_obj.get_dependencies = <bound method Macro.get_dependencies of <MoinMoin.macro.Macro instance at 0xb4f0c2c>>
- name = u'InstallFestForm'
/var/lib/python-support/python2.5/MoinMoin/macro/__init__.py in get_dependencies (self=<MoinMoin.macro.Macro instance at 0xb4f0c2c>, macro_name=u'InstallFestForm')
- 148 try:
- 149 return wikiutil.importPlugin(self.request.cfg, 'macro',
- 150 macro_name, 'Dependencies')
- 151 except wikiutil.PluginError:
- 152 return self.defaultDependency
- macro_name = u'InstallFestForm'
/var/lib/python-support/python2.5/MoinMoin/wikiutil.py in importPlugin (cfg=<installfest.Config object at 0x9f9d6ec>, kind='macro', name=u'InstallFestForm', function='Dependencies')
- 1105 """
- 1106 try:
- 1107 return importWikiPlugin(cfg, kind, name, function)
- 1108 except PluginMissingError:
- 1109 return importBuiltinPlugin(kind, name, function)
- global importWikiPlugin = <function importWikiPlugin at 0x9e401b4>
- cfg = <installfest.Config object at 0x9f9d6ec>
- kind = 'macro'
- name = u'InstallFestForm'
- function = 'Dependencies'
/var/lib/python-support/python2.5/MoinMoin/wikiutil.py in importWikiPlugin (cfg=<installfest.Config object at 0x9f9d6ec>, kind='macro', name=u'InstallFestForm', function='Dependencies')
- 1118 raise PluginMissingError
- 1119 moduleName = '%s.plugin.%s.%s' % (cfg.siteid, kind, name)
- 1120 return importNameFromPlugin(moduleName, function)
- 1121
- 1122
- global importNameFromPlugin = <function importNameFromPlugin at 0x9e40224>
- moduleName = u'installfest.plugin.macro.InstallFestForm'
- function = 'Dependencies'
/var/lib/python-support/python2.5/MoinMoin/wikiutil.py in importNameFromPlugin (moduleName=u'installfest.plugin.macro.InstallFestForm', name='Dependencies')
- 1142 else:
- 1143 fromlist = [name]
- 1144 module = __import__(moduleName, globals(), {}, fromlist)
- 1145 if fromlist:
- 1146 # module has the obj for module <moduleName>
- module undefined
- builtin __import__ = <built-in function __import__>
- moduleName = u'installfest.plugin.macro.InstallFestForm'
- builtin globals = <built-in function globals>
- fromlist = ['Dependencies']
/srv2/installfest.info/www/data/plugin/macro/InstallFestForm.py in
() - 181
- 182
- 183 from psycopg import *
- 184
- 185 def selectHtml(c,query,sel) :
- psycopg undefined
ImportError
No module named psycopg
- args = ('No module named psycopg',)
- message = 'No module named psycopg'
System Details
- Date: Tue, 09 Feb 2010 15:09:46 +0000
- Platform: Linux jazz 2.6.26-1-xen-686 #1 SMP Fri Mar 13 22:30:40 UTC 2009 i686
- Python: Python 2.5.2 (/usr/bin/python)
- MoinMoin: Release 1.7.1 (release)
