--> -->

ImportError

No module named theme

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.

  1. /usr/lib/python2.6/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestModPy object>)

    1. 1109 # parse request data
    2. 1110 try:
    3. 1111 self.initTheme()
    4. 1112
    5. 1113 action = self.form.get('action', [None])[0]
    • self = <MoinMoin.request.RequestModPy object>
    • self.initTheme = <bound method RequestModPy.initTheme of <MoinMoin.request.RequestModPy object>>
  2. /usr/lib/python2.6/site-packages/MoinMoin/request.py in initTheme (self=<MoinMoin.request.RequestModPy object>)

    1. 1084 else:
    2. 1085 theme_name = self.user.theme_name
    3. 1086 self.loadTheme(theme_name)
    4. 1087
    5. 1088 def run(self):
    • self = <MoinMoin.request.RequestModPy object>
    • self.loadTheme = <bound method RequestModPy.loadTheme of <MoinMoin.request.RequestModPy object>>
    • theme_name = 'monobook'
  3. /usr/lib/python2.6/site-packages/MoinMoin/request.py in loadTheme (self=<MoinMoin.request.RequestModPy object>, theme_name='monobook')

    1. 620
    2. 621 try:
    3. 622 Theme = wikiutil.importPlugin(self.cfg, 'theme', theme_name, 'Theme')
    4. 623 except wikiutil.PluginMissingError:
    5. 624 fallback = 1
    • Theme undefined
    • global wikiutil = <module 'MoinMoin.wikiutil' from '/usr/lib/python2.6/site-packages/MoinMoin/wikiutil.pyc'>
    • wikiutil.importPlugin = <function importPlugin>
    • self = <MoinMoin.request.RequestModPy object>
    • self.cfg = <wikiconfig.Config instance>
    • theme_name = 'monobook'
  4. /usr/lib/python2.6/site-packages/MoinMoin/wikiutil.py in importPlugin (cfg=<wikiconfig.Config instance>, kind='theme', name='monobook', function='Theme')

    1. 802 """
    2. 803 try:
    3. 804 return importWikiPlugin(cfg, kind, name, function)
    4. 805 except PluginMissingError:
    5. 806 return importBuiltinPlugin(kind, name, function)
    • global importWikiPlugin = <function importWikiPlugin>
    • cfg = <wikiconfig.Config instance>
    • kind = 'theme'
    • name = 'monobook'
    • function = 'Theme'
  5. /usr/lib/python2.6/site-packages/MoinMoin/wikiutil.py in importWikiPlugin (cfg=<wikiconfig.Config instance>, kind='theme', name='monobook', function='Theme')

    1. 812 See importPlugin docstring.
    2. 813 """
    3. 814 if not name in wikiPlugins(kind, cfg):
    4. 815 raise PluginMissingError
    5. 816 moduleName = '%s.plugin.%s.%s' % (cfg.siteid, kind, name)
    • name = 'monobook'
    • global wikiPlugins = <function wikiPlugins>
    • kind = 'theme'
    • cfg = <wikiconfig.Config instance>
  6. /usr/lib/python2.6/site-packages/MoinMoin/wikiutil.py in wikiPlugins (kind='theme', cfg=<wikiconfig.Config instance>)

    1. 864 # Wiki plugins are located in wikiconfig.plugin module
    2. 865 modulename = '%s.plugin.%s' % (cfg.siteid, kind)
    3. 866 return pysupport.importName(modulename, "modules")
    4. 867
    5. 868
    • global pysupport = <module 'MoinMoin.util.pysupport' from '/usr/lib...hon2.6/site-packages/MoinMoin/util/pysupport.py'>
    • pysupport.importName = <function importName>
    • modulename = 'wikiconfig.plugin.theme'
  7. /usr/lib/python2.6/site-packages/MoinMoin/util/pysupport.py in importName (modulename='wikiconfig.plugin.theme', name='modules')

    1. 66 @return: name from module
    2. 67 """
    3. 68 module = __import__(modulename, globals(), {}, [name])
    4. 69 return getattr(module, name)
    5. 70
    • module undefined
    • builtin __import__ = <built-in function __import__>
    • modulename = 'wikiconfig.plugin.theme'
    • builtin globals = <built-in function globals>
    • name = 'modules'

ImportError

No module named theme

  • args = ('No module named theme',)
  • message = 'No module named theme'

System Details