MoinMoin/InstallDocs

This HTML page contains the basic install docs that can be found on http://moinmaster.wikiwikiweb.de/MoinMoin/InstallDocs. It contains all necessary information to get your wiki up and running, even without being online. If you have a permanent internet connection, you might want to browse the docs on the HelpOnInstalling page, which might contain more up-to-date information.

After following the procedures on this page, you should have a working wiki and can browse the rest of the online docs there.

How to install your own MoinMoin Wiki

This page describes the installation procedure of MoinMoin. In the next section, there is a list of real-world Installation Scenarios that help you to understand how to apply the instructions in different environments. If you already have a wiki running and want to upgrade, see HelpOnUpdating.

A MoinMoin installation is done by some elementary steps:

  • Basic Installation explains the "setup.py" step of the installation in more detail. This is uses to get the MoinMoin code and wiki template installed onto your system. This applies equally to all scenarios, and you should read it before trying a live installation.

  • Wiki Instance Creation explains how you make a new wiki instance (data and configuration), this is also common to all scenarios.

  • Getting the web server to serve static stuff under the /wiki URL (url_prefix) - used for theme CSS and images, etc. - this is slightly different for the various web servers that can be used - see below.

  • Getting the web server to execute the moin code when you access wiki pages. This is done either by CGI, FastCGI, mod_python or Twisted or the built-in stand alone server - this is slightly different for the various web servers that can be used - see below.
  • After a successful installation, you might want to read more about configuration and other options that you, as the wiki administrator, can set up. HelpOnAdministration contains links to pages that cover these topics. Especially, the HelpOnConfiguration and HelpOnUpdating pages provide additional information regarding wiki setup and maintenance.

  • Trouble-shooting helps with fixing any general problems you might encounter, which apply to any installation platform.

Installation steps specific for some web servers and operating systems

The following links will show you concrete examples of installation sessions, showing the commands used and explaining what they do. You must first read the general information on installing above before doing the installation steps described on the pages linked from below:

Linux:

Long-Running-Process Setup:

Mac OS X:

Windows:

--> -->

ValueError

Empty module name

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.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)

    1. 1170 self.page.send_page(self, msg=msg)
    2. 1171 else:
    3. 1172 handler(self.page.page_name, self)
    4. 1173
    5. 1174 # generate page footer (actions that do not want this footer use
    • handler = <function do_show>
    • self = <MoinMoin.request.RequestCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'MoinMoin/InstallDocs'
  2. /usr/lib/python2.4/site-packages/MoinMoin/wikiaction.py in do_show (pagename=u'MoinMoin/InstallDocs', request=<MoinMoin.request.RequestCGI object>)

    1. 466 else:
    2. 467 request.cacheable = 1
    3. 468 Page(request, pagename).send_page(request, count_hit=1)
    4. 469
    5. 470
    • global Page = <class MoinMoin.Page.Page>
    • request = <MoinMoin.request.RequestCGI object>
    • pagename = u'MoinMoin/InstallDocs'
    • ).send_page undefined
    • count_hit undefined
  3. /usr/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, msg='', **keywords={'count_hit': 1})

    1. 1254 format_args=pi_formatargs,
    2. 1255 do_cache=do_cache,
    3. 1256 start_line=pi_lines)
    4. 1257
    5. 1258 # check for pending footnotes
    • start_line undefined
    • pi_lines = 8
  4. /usr/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'\nThis HTML page contains the basic install docs ...alling/TroubleShooting, "Trouble-shooting", 1)]]\n', format_args=u'', do_cache=1, **kw={'start_line': 8})

    1. 1345 try:
    2. 1346 code = self.loadCache(request)
    3. 1347 self.execute(request, parser, code)
    4. 1348 except Exception, e:
    5. 1349 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page instance>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestCGI object>
    • parser = <MoinMoin.parser.wiki.Parser instance>
    • code = <code object ? at 0x985cb20, file "MoinMoin/InstallDocs", line 2>
  5. /usr/lib/python2.4/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object ? at 0x985cb20, file "MoinMoin/InstallDocs", line 2>)

    1. 1374 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1375 try:
    3. 1376 exec code
    4. 1377 except 'CacheNeedsUpdate':
    5. 1378 raise Exception('CacheNeedsUpdate')
    • code = <code object ? at 0x985cb20, file "MoinMoin/InstallDocs", line 2>
  6. /opt/tipwiki/cgi-bin/MoinMoin/InstallDocs in ?

  7. /usr/lib/python2.4/site-packages/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'Include', args=u'HelpOnInstalling/BasicInstallation')

    1. 288 def macro(self, macro_obj, name, args):
    2. 289 # call the macro
    3. 290 return macro_obj.execute(name, args)
    4. 291
    5. 292 def _get_bang_args(self, line):
    • macro_obj = <MoinMoin.wikimacro.Macro instance>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance>>
    • name = u'Include'
    • args = u'HelpOnInstalling/BasicInstallation'
  8. /usr/lib/python2.4/site-packages/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance>, macro_name=u'Include', args=u'HelpOnInstalling/BasicInstallation')

    1. 118 else:
    2. 119 raise ImportError("Cannot load macro %s" % macro_name)
    3. 120 return execute(self, args)
    4. 121
    5. 122 def _m_lang(self, text):
    • execute = <function execute>
    • self = <MoinMoin.wikimacro.Macro instance>
    • args = u'HelpOnInstalling/BasicInstallation'
  9. /usr/lib/python2.4/site-packages/MoinMoin/macro/Include.py in execute (macro=<MoinMoin.wikimacro.Macro instance>, text=u'HelpOnInstalling/BasicInstallation', args_re=<_sre.SRE_Pattern object>, title_re=<_sre.SRE_Pattern object>, called_by_toc=0)

    1. 220 cid = request.makeUniqueID("Include_%s" % wikiutil.quoteWikinameURL(inc_page.page_name))
    2. 221 inc_page.send_page(request, content_only=1, content_id=cid,
    3. 222 omit_footnotes=True)
    4. 223 result.append(strfile.getvalue())
    5. 224 finally:
    • omit_footnotes undefined
    • builtin True = True
  10. /usr/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, msg='', **keywords={'content_id': u'Include_HelpOnInstalling/BasicInstallation', 'content_only': 1, 'omit_footnotes': True})

    1. 1254 format_args=pi_formatargs,
    2. 1255 do_cache=do_cache,
    3. 1256 start_line=pi_lines)
    4. 1257
    5. 1258 # check for pending footnotes
    • start_line undefined
    • pi_lines = 7
  11. /usr/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u"\n## Description\n'''How to do a basic installatio..., and easily upgrade to new Moin``Moin versions.\n", format_args=u'', do_cache=1, **kw={'start_line': 7})

    1. 1345 try:
    2. 1346 code = self.loadCache(request)
    3. 1347 self.execute(request, parser, code)
    4. 1348 except Exception, e:
    5. 1349 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page instance>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestCGI object>
    • parser = <MoinMoin.parser.wiki.Parser instance>
    • code = <code object ? at 0x96d3b60, file "HelpOnInstalling/BasicInstallation", line 2>
  12. /usr/lib/python2.4/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object ? at 0x96d3b60, file "HelpOnInstalling/BasicInstallation", line 2>)

    1. 1374 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1375 try:
    3. 1376 exec code
    4. 1377 except 'CacheNeedsUpdate':
    5. 1378 raise Exception('CacheNeedsUpdate')
    • code = <code object ? at 0x96d3b60, file "HelpOnInstalling/BasicInstallation", line 2>
  13. /opt/tipwiki/cgi-bin/HelpOnInstalling/BasicInstallation in ?

  14. /usr/lib/python2.4/site-packages/MoinMoin/formatter/base.py in attachment_inlined (self=<MoinMoin.formatter.text_html.Formatter instance>, url=u'pythontest.cgi', text=u'pythontest.cgi', **kw={})

    1. 118 fpath = AttachFile.getFilename(self.request, pagename, fname)
    2. 119 base, ext = os.path.splitext(filename)
    3. 120 Parser = wikiutil.getParserForExtension(self.request.cfg, ext)
    4. 121 if Parser is not None:
    5. 122 try:
    • Parser undefined
    • global wikiutil = <module 'MoinMoin.wikiutil' from '/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py'>
    • wikiutil.getParserForExtension = <function getParserForExtension>
    • self = <MoinMoin.formatter.text_html.Formatter instance>
    • self.request = <MoinMoin.request.RequestCGI object>
    • self.request.cfg = <wikiconfig.Config instance>
    • ext = u'.cgi'
  15. /usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py in getParserForExtension (cfg=<wikiconfig.Config instance>, extension=u'.cgi')

    1. 907 for pname in getPlugins('parser', cfg):
    2. 908 try:
    3. 909 Parser = importPlugin(cfg, 'parser', pname, 'Parser')
    4. 910 except PluginMissingError:
    5. 911 continue
    • Parser = <class MoinMoin.parser.xslt.Parser>
    • global importPlugin = <function importPlugin>
    • cfg = <wikiconfig.Config instance>
    • pname = '.___init__'
  16. /usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py in importPlugin (cfg=<wikiconfig.Config instance>, kind='parser', name='.___init__', function='Parser')

    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 = 'parser'
    • name = '.___init__'
    • function = 'Parser'
  17. /usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py in importWikiPlugin (cfg=<wikiconfig.Config instance>, kind='parser', name='.___init__', function='Parser')

    1. 815 raise PluginMissingError
    2. 816 moduleName = '%s.plugin.%s.%s' % (cfg.siteid, kind, name)
    3. 817 return importNameFromPlugin(moduleName, function)
    4. 818
    5. 819
    • global importNameFromPlugin = <function importNameFromPlugin>
    • moduleName = 'wikiconfig.plugin.parser..___init__'
    • function = 'Parser'
  18. /usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py in importNameFromPlugin (moduleName='wikiconfig.plugin.parser..___init__', name='Parser')

    1. 834 Raise PluginAttributeError if name does not exists.
    2. 835 """
    3. 836 module = __import__(moduleName, globals(), {}, [name])
    4. 837 try:
    5. 838 return getattr(module, name)
    • module undefined
    • builtin __import__ = <built-in function __import__>
    • moduleName = 'wikiconfig.plugin.parser..___init__'
    • builtin globals = <built-in function globals>
    • name = 'Parser'

ValueError

Empty module name

  • args = ('Empty module name',)

System Details

  • Date: Wed, 11 Dec 2019 19:58:40 +0000
  • Platform: Linux orion.cs.kitami-it.ac.jp 2.6.18-419.el5 #1 SMP Fri Feb 24 22:06:09 UTC 2017 i686
  • Python: Python 2.4.3 (/usr/bin/python)
  • MoinMoin: Release 1.5.7 (release)