Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stephenlauck/9d8969f54f50b371381e4a837f55c230 to your computer and use it in GitHub Desktop.
Save stephenlauck/9d8969f54f50b371381e4a837f55c230 to your computer and use it in GitHub Desktop.
<type 'exceptions.ImportError'> Python 2.7.18rc1: /usr/bin/python
Tue May 19 03:54:38 2020
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
556 """Runs the handler, flushes the streams, and ends the request."""
557 try:
=> 558 protocolStatus, appStatus = self.server.handler(self)
559 except:
560 traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>>
/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
1116 try:
1117 try:
=> 1118 result = self.application(environ, start_response)
1119 try:
1120 for data in result:
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <werkzeug.wsgi.SharedDataMiddleware object>, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/share/moin/server/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/webspace/wiki.libsdl.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;...e/apng,*/*;q=0.8,application/signed-exchange;v=b3', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.9', 'HTTP_CONNECTION': 'close', ...}, start_response = <function start_response>
/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py in __call__(self=<werkzeug.wsgi.SharedDataMiddleware object>, environ={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/share/moin/server/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/webspace/wiki.libsdl.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;...e/apng,*/*;q=0.8,application/signed-exchange;v=b3', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.9', 'HTTP_CONNECTION': 'close', ...}, start_response=<function start_response>)
589 break
590 if file_loader is None or not self.is_allowed(real_filename):
=> 591 return self.app(environ, start_response)
592
593 guessed_type = mimetypes.guess_type(real_filename)
self = <werkzeug.wsgi.SharedDataMiddleware object>, self.app = <MoinMoin.wsgiapp.Application object>, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/share/moin/server/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/webspace/wiki.libsdl.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;...e/apng,*/*;q=0.8,application/signed-exchange;v=b3', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.9', 'HTTP_CONNECTION': 'close', ...}, start_response = <function start_response>
/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in __call__(self=<MoinMoin.wsgiapp.Application object>, environ={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/usr/share/moin/server/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/webspace/wiki.libsdl.org', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;...e/apng,*/*;q=0.8,application/signed-exchange;v=b3', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.9', 'HTTP_CONNECTION': 'close', ...}, start_response=<function start_response>)
262 context = init(request)
263 try:
=> 264 response = run(context)
265 finally:
266 context.clock.stop('total')
response undefined, global run = <function run>, context = <AllContext ['AllContext']>
/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in run(context=<AllContext ['AllContext']>)
87 response = xmlrpc.xmlrpc2(XMLRPCContext(request))
88 else:
=> 89 response = dispatch(request, context, action_name)
90 context.cfg.session_service.finalize(context, context.session)
91 return response
response undefined, global dispatch = <function dispatch>, request = <AppRequest 0 bytes [200 OK]>, context = <AllContext ['AllContext']>, action_name = u'fullsearch'
/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in dispatch(request=<AppRequest 0 bytes [200 OK]>, context=<AllContext ['AllContext']>, action_name=u'fullsearch')
135 # 2. handle action
136 else:
=> 137 response = handle_action(context, pagename, action_name)
138 if isinstance(response, Context):
139 response = response.request
response undefined, global handle_action = <function handle_action>, context = <AllContext ['AllContext']>, pagename = u'SDL_Init', action_name = u'fullsearch'
/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in handle_action(context=<AllContext ['AllContext']>, pagename=u'SDL_Init', action_name=u'fullsearch')
188 else:
189 from MoinMoin import action
=> 190 handler = action.getHandler(context, action_name)
191 if handler is None:
192 msg = _("You are not allowed to do %(action_name)s on this page.") % {
handler undefined, action = <module 'MoinMoin.action' from '/usr/lib/python2.7/dist-packages/MoinMoin/action/__init__.pyc'>, action.getHandler = <function getHandler>, context = <AllContext ['AllContext']>, action_name = u'fullsearch'
/usr/lib/python2.7/dist-packages/MoinMoin/action/__init__.py in getHandler(request=<AllContext ['AllContext']>, action=u'fullsearch', identifier='execute')
339
340 try:
=> 341 handler = wikiutil.importPlugin(cfg, "action", action, identifier)
342 except wikiutil.PluginMissingError:
343 handler = globals().get('do_' + action)
handler undefined, global wikiutil = <module 'MoinMoin.wikiutil' from '/usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.pyc'>, wikiutil.importPlugin = <function importPlugin>, cfg = <libsdl.Config object>, action = u'fullsearch', identifier = 'execute'
/usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.py in importPlugin(cfg=<libsdl.Config object>, kind='action', name=u'fullsearch', function='execute')
1063 return importWikiPlugin(cfg, kind, name, function)
1064 except PluginMissingError:
=> 1065 return importBuiltinPlugin(kind, name, function)
1066
1067
global importBuiltinPlugin = <function importBuiltinPlugin>, kind = 'action', name = u'fullsearch', function = 'execute'
/usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.py in importBuiltinPlugin(kind='action', name=u'fullsearch', function='execute')
1087 raise PluginMissingError()
1088 moduleName = 'MoinMoin.%s.%s' % (kind, name)
=> 1089 return importNameFromPlugin(moduleName, function)
1090
1091
global importNameFromPlugin = <function importNameFromPlugin>, moduleName = u'MoinMoin.action.fullsearch', function = 'execute'
/usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.py in importNameFromPlugin(moduleName=u'MoinMoin.action.fullsearch', name='execute')
1100 else:
1101 fromlist = [name]
=> 1102 module = __import__(moduleName, globals(), {}, fromlist)
1103 if fromlist:
1104 # module has the obj for module <moduleName>
module undefined, builtin __import__ = <built-in function __import__>, moduleName = u'MoinMoin.action.fullsearch', builtin globals = <built-in function globals>, fromlist = ['execute']
/usr/lib/python2.7/dist-packages/MoinMoin/action/fullsearch.py in <module>()
12 from MoinMoin.Page import Page
13 from MoinMoin import wikiutil
=> 14 from parsedatetime.parsedatetime import Calendar
15 from MoinMoin.web.utils import check_surge_protect
16
parsedatetime undefined, Calendar undefined
<type 'exceptions.ImportError'>: No module named parsedatetime.parsedatetime
args = ('No module named parsedatetime.parsedatetime',)
message = 'No module named parsedatetime.parsedatetime'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment