Description
PluginMissingError when attempting to use creole markup with GUI editor.
Steps to reproduce
- Set the default markup to creole and editor to 'gui'
cat << EOT>>wikiconfig.py default_markup = 'creole' editor_default = 'gui' EOT
Create a new page (e.g. http://localhost/wiki/TestingCreoleWithGUI?action=edit)
- Attempt to save or preview the page
Details
- This is with version 1.6.2.
{i} I should note that I just downloaded 1.7 from http://hg.moinmo.in/moin/1.7/archive/tip.tar.bz2 (file name: 1-7-2f1100735fa4.tar.bz2) and it generates the same error.
PluginMissingError
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.
/opt/moin-1.6.2/lib/python2.4/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object>)
- 1281 self.page.send_page(msg=msg)
- 1282 else:
- 1283 handler(self.page.page_name, self)
- 1284
- 1285 # every action that didn't use to raise MoinMoinNoFooter must call this now:
- handler = <function execute>
- self = <MoinMoin.request.request_cgi.Request object>
- self.page = <MoinMoin.Page.Page object>
- self.page.page_name = u'Testing'
/opt/moin-1.6.2/lib/python2.4/site-packages/MoinMoin/action/edit.py in execute (pagename=u'Testing', request=<MoinMoin.request.request_cgi.Request object>)
- 94 else:
- 95 converter_name = 'undefined' # XXX we don't have other converters yet
- 96 convert = wikiutil.importPlugin(request.cfg, "converter", converter_name, 'convert')
- 97 savetext = convert(request, pagename, savetext)
- 98
- convert undefined
- global wikiutil = <module 'MoinMoin.wikiutil' from '/opt/moin-1.6....b/python2.4/site-packages/MoinMoin/wikiutil.pyc'>
- wikiutil.importPlugin = <function importPlugin>
- request = <MoinMoin.request.request_cgi.Request object>
- request.cfg = <wikiconfig.Config instance>
- converter_name = 'undefined'
/opt/moin-1.6.2/lib/python2.4/site-packages/MoinMoin/wikiutil.py in importPlugin (cfg=<wikiconfig.Config instance>, kind='converter', name='undefined', function='convert')
- 1102 return importWikiPlugin(cfg, kind, name, function)
- 1103 except PluginMissingError:
- 1104 return importBuiltinPlugin(kind, name, function)
- 1105
- 1106
- global importBuiltinPlugin = <function importBuiltinPlugin>
- kind = 'converter'
- name = 'undefined'
- function = 'convert'
/opt/moin-1.6.2/lib/python2.4/site-packages/MoinMoin/wikiutil.py in importBuiltinPlugin (kind='converter', name='undefined', function='convert')
- 1122 """
- 1123 if not name in builtinPlugins(kind):
- 1124 raise PluginMissingError
- 1125 moduleName = 'MoinMoin.%s.%s' % (kind, name)
- 1126 return importNameFromPlugin(moduleName, function)
- global PluginMissingError = <class MoinMoin.wikiutil.PluginMissingError>
PluginMissingError
- args = ()
System Details
- Date: 2008年4月02日 01:51:34 +0000
- Platform: Linux miriam.siemster.net 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:37:38 EST 2008 x86_64
- Python: Python 2.4.3 (/usr/bin/python)
- MoinMoin: Release 1.6.2 (release)
Workaround
Don't configure as described in 1. as it is not supported.
Discussion
Until we have a converter from html to creole markup this doesn't work. As it is not possible yet to save to creole (or any other markup than wiki markup), we should restrict gui editor to wiki parser only.
I can't reproduce the plugin missing error in 1.7 please give more details. -- ReimarBauer 2008年04月02日 07:05:57
This is a bug in the edit action, it should check the parser and disallow the gui editor if necessary. -- AlexanderSchremmer 2008年07月23日 12:16:46
Regarding 1.7
Not sure what you need, here goes. -- Siemster 2008年04月03日 04:04:34
The file downloaded from http://hg.moinmo.in/moin/1.7/archive/tip.tar.bz2
[root@miriam ~]# ls -gGt 1-7-2f1100735fa4.tar.bz2 -rw-rw-r-- 1 5378823 Apr 1 20:36 1-7-2f1100735fa4.tar.bz2 [root@miriam ~]# md5sum 1-7-2f1100735fa4.tar.bz2 ec7d700b72aef3ac3410a719faff7e2c 1-7-2f1100735fa4.tar.bz2
- Installation steps (shell == bash)
MOIN_VERSION=1.7.2 WIKI_NAME=wiki-172 WIKI_ROOT=/var/local VERSION_NAME=moin-${MOIN_VERSION} PREFIX=${INSTALL_ROOT}/${VERSION_NAME} INSTALL_LOG=$HOME/${VERSION_NAME}-install.log TEMP_DIR=`mktemp -d -p $HOME` cp 1-7-2f1100735fa4.tar.bz2 $TEMP_DIR/ cd $TEMP_DIR tar -xjf 1-7-2f1100735fa4.tar.bz2 cd 1-7-2f1100735fa4 python setup.py install --prefix=${PREFIX} --record=${INSTALL_LOG} cd $HOME rm -rf ${TEMP_DIR} WWW_USER=`grep "^User" /etc/httpd/conf/httpd.conf | awk '{print 2ドル}'` WWW_GROUP=`grep "^Group" /etc/httpd/conf/httpd.conf | awk '{print 2ドル}'` SHARE=${PREFIX}/share/moin INSTANCE=${WIKI_ROOT}/${VERSION_NAME}/${WIKI_NAME} DATA_DIR=$INSTANCE/data DATA_UNDERLAY_DIR=${WIKI_ROOT}/${VERSION_NAME}/underlay mkdir -p $INSTANCE cp -R $SHARE/data $INSTANCE cp $SHARE/underlay.tar ${WIKI_ROOT}/${VERSION_NAME} ( cd ${WIKI_ROOT}/${VERSION_NAME} tar -xf underlay.tar ) cp $SHARE/config/wikiconfig.py $INSTANCE chown -R $WWW_USER.$WWW_GROUP ${WIKI_ROOT}/${VERSION_NAME}/* chmod -R ug+rwX ${WIKI_ROOT}/${VERSION_NAME}/* chmod -R o-rwx ${WIKI_ROOT}/${VERSION_NAME}/* cd $INSTANCE mkdir cgi-bin cp $SHARE/server/moin.cgi cgi-bin chown -R $WWW_USER.$WWW_GROUP cgi-bin chmod -R ug+rx cgi-bin chmod -R o-rwx cgi-bin vi $INSTANCE/cgi-bin/moin.cgi vi $INSTANCE/wikiconfig.py ( mkdir $MOINMOIN_DIR/MoinMoin/dict; cd $MOINMOIN_DIR/MoinMoin/dict; ln -s /usr/share/dict/words .; ) cat << EOT >> /etc/httpd/conf.d/moin.conf Alias /moin_static${STATIC_VER}/ ${SHARE}/htdocs/ <Directory "${SHARE}/htdocs/"> Order deny,allow Allow from all </Directory> ScriptAlias /wiki/$WIKI_NAME $CGI <Directory "$INSTANCE/cgi-bin/"> Order deny,allow Allow from all </Directory> EOT chmod 644 /etc/httpd/conf.d/moin.conf /etc/init.d/httpd reload
- The wikiconfig.py used
[root@miriam wiki-172]# grep -vP "^\s+#" wikiconfig.py | uniq # -*- coding: iso-8859-1 -*- # IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a # western country and you don't know that you use utf-8, you probably want to # use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode # encoding) you MUST use: coding: utf-8 # That setting must match the encoding your editor uses when you modify the # settings below. If it does not, special non-ASCII chars will be wrong. """ MoinMoin - Configuration for a single wiki If you run a single wiki only, you can omit the farmconfig.py config file and just use wikiconfig.py - it will be used for every request we get in that case. Note that there are more config options than you'll find in the version of this file that is installed by default; see the module MoinMoin.config.multiconfig for a full list of names and their default values. Also, the URL http://moinmo.in/HelpOnConfiguration has a list of config options. ** Please do not use this file for a wiki farm. Use the sample file from the wikifarm directory instead! ** """ from MoinMoin.config.multiconfig import DefaultConfig class Config(DefaultConfig): sitename = u'Untitled Wiki' logo_string = u'<img src="/moin_static170/common/moinmoin.png" alt="MoinMoin Logo">' page_front_page = u"FrontPage" data_dir = '/var/local/moin-1.7.2/wiki-172/data/' data_underlay_dir = '/var/local/moin-1.7.2/underlay/' url_prefix_static = '/moin_static172/' navi_bar = [ u'RecentChanges', u'FindPage', u'HelpContents', ] theme_default = 'modern' language_default = 'en' page_category_regex = u'^Category[A-Z]' page_dict_regex = u'[a-z]Dict$' page_form_regex = u'[a-z]Form$' page_group_regex = u'[a-z]Group$' page_template_regex = u'[a-z]Template$' show_hosts = 1 default_markup = 'creole' editor_default = 'gui'
- The moin.cgi used
[root@miriam wiki-172]# grep -vP "^\s+#" cgi-bin/moin.cgi | uniq #!/usr/bin/env python # -*- coding: iso-8859-1 -*- """ MoinMoin - CGI Driver Script @copyright: 2000-2005 by Juergen Hermann <jh@web.de> @license: GNU GPL, see COPYING for details. """ import sys # YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP. sys.path.insert(0, '/var/local/moin-1.7.2/wiki-172/') # or if you did not use setup.py. sys.path.insert(0, '/opt/moin-1.7.2/lib/python2.4/site-packages') ## sys.path.insert(0, '/path/to/farmconfig') ## import os ## os.environ['MOIN_DEBUG'] = '1' from MoinMoin import log log.load_config('.../wiki/config/logging/conffile') # XXX fix path from MoinMoin.server.server_cgi import CgiConfig, run class Config(CgiConfig): name = 'moin' run(Config)
- From the moin.log
2008年04月01日 21:37:02,768 WARNING MoinMoin.log:95 Using built-in fallback logging configuration! 2008年04月01日 21:37:02,768 WARNING MoinMoin.log:97 load_config failed with "No section: 'formatters'". 2008年04月01日 21:37:02,929 DEBUG MoinMoin.config.multiconfig:81 could not import farmconfig, mapping all URLs to wikiconfig 2008年04月01日 21:37:02,937 INFO MoinMoin.config.multiconfig:119 using wiki config: /var/local/moin-1.7.2/wiki-172/wikiconfig.pyc 2008年04月01日 21:37:02,939 DEBUG MoinMoin.i18n:62 trying to load translations from cache 2008年04月01日 21:37:02,940 DEBUG MoinMoin.i18n:88 loading language metadata from disk cache 2008年04月01日 21:37:02,970 DEBUG MoinMoin.i18n:208 pickle en load success 2008年04月01日 21:37:02,972 DEBUG MoinMoin.i18n:298 formatting for 'en' on the fly: "Other users will be ''warned'' until %(bumptime)s that you are editing this page." 2008年04月01日 21:37:02,972 DEBUG MoinMoin.i18n:171 formatting: "Other users will be ''warned'' until %(bumptime)s that you are editing this page." 2008年04月01日 21:37:03,318 DEBUG MoinMoin.i18n:298 formatting for 'en' on the fly: u" Emphasis:: <<Verbatim('')>>''italics''<<Verbatim('')>>; <<Verbatim(''')>>'''bold'''<<Verbatim(''')>>; <<Verbatim(''''')>>'''''bold italics'''''<<Verbatim(''''')>>; <<Verbatim('')>>''mixed ''<<Verbatim(''')>>'''''bold'''<<Verbatim(''')>> and italics''<<Verbatim('')>>; <<Verbatim(----)>> horizontal rule.\n Headings:: = Title 1 =; == Title 2 ==; === Title 3 ===; ==== Title 4 ====; ===== Title 5 =====.\n Lists:: space and one of: * bullets; 1., a., A., i., I. numbered items; 1.#n start numbering at n; space alone indents.\n Links:: <<Verbatim(JoinCapitalizedWords)>>; <<Verbatim([[target|linktext]])>>.\n Tables:: || cell text |||| cell text spanning 2 columns ||; no trailing white space allowed after tables or titles.\n\n(!) For more help, see HelpOnEditing or SyntaxReference.\n" 2008年04月01日 21:37:03,319 DEBUG MoinMoin.i18n:171 formatting: u" Emphasis:: <<Verbatim('')>>''italics''<<Verbatim('')>>; <<Verbatim(''')>>'''bold'''<<Verbatim(''')>>; <<Verbatim(''''')>>'''''bold italics'''''<<Verbatim(''''')>>; <<Verbatim('')>>''mixed ''<<Verbatim(''')>>'''''bold'''<<Verbatim(''')>> and italics''<<Verbatim('')>>; <<Verbatim(----)>> horizontal rule.\n Headings:: = Title 1 =; == Title 2 ==; === Title 3 ===; ==== Title 4 ====; ===== Title 5 =====.\n Lists:: space and one of: * bullets; 1., a., A., i., I. numbered items; 1.#n start numbering at n; space alone indents.\n Links:: <<Verbatim(JoinCapitalizedWords)>>; <<Verbatim([[target|linktext]])>>.\n Tables:: || cell text |||| cell text spanning 2 columns ||; no trailing white space allowed after tables or titles.\n\n(!) For more help, see HelpOnEditing or SyntaxReference.\n" 2008年04月01日 21:37:13,973 WARNING MoinMoin.log:95 Using built-in fallback logging configuration! 2008年04月01日 21:37:13,973 WARNING MoinMoin.log:97 load_config failed with "No section: 'formatters'". 2008年04月01日 21:37:14,134 DEBUG MoinMoin.config.multiconfig:81 could not import farmconfig, mapping all URLs to wikiconfig 2008年04月01日 21:37:14,141 INFO MoinMoin.config.multiconfig:119 using wiki config: /var/local/moin-1.7.2/wiki-172/wikiconfig.pyc 2008年04月01日 21:37:14,143 DEBUG MoinMoin.i18n:62 trying to load translations from cache 2008年04月01日 21:37:14,143 DEBUG MoinMoin.i18n:88 loading language metadata from disk cache 2008年04月01日 21:37:14,174 DEBUG MoinMoin.wikiutil:2450 checkTicket: returning True, got u'0047f2f14f.Testing.edit.c366e09b4645c0390240c9d7878d65524497ce7e', expected u'0047f2f14f.Testing.edit.c366e09b4645c0390240c9d7878d65524497ce7e' 2008年04月01日 21:37:14,176 DEBUG MoinMoin.i18n:208 pickle en load success 2008年04月01日 21:37:14,178 DEBUG MoinMoin.i18n:298 formatting for 'en' on the fly: "Other users will be ''warned'' until %(bumptime)s that you are editing this page." 2008年04月01日 21:37:14,179 DEBUG MoinMoin.i18n:171 formatting: "Other users will be ''warned'' until %(bumptime)s that you are editing this page." 2008年04月01日 21:37:24,646 WARNING MoinMoin.log:95 Using built-in fallback logging configuration! 2008年04月01日 21:37:24,646 WARNING MoinMoin.log:97 load_config failed with "No section: 'formatters'". 2008年04月01日 21:37:24,860 DEBUG MoinMoin.config.multiconfig:81 could not import farmconfig, mapping all URLs to wikiconfig 2008年04月01日 21:37:24,868 INFO MoinMoin.config.multiconfig:119 using wiki config: /var/local/moin-1.7.2/wiki-172/wikiconfig.pyc 2008年04月01日 21:37:24,870 DEBUG MoinMoin.i18n:62 trying to load translations from cache 2008年04月01日 21:37:24,871 DEBUG MoinMoin.i18n:88 loading language metadata from disk cache 2008年04月01日 21:37:24,915 DEBUG MoinMoin.wikiutil:2450 checkTicket: returning True, got u'0047f2f15a.Testing.edit.85c245ca7ec1e2fdeb508b4950458b7d54468842', expected u'0047f2f15a.Testing.edit.85c245ca7ec1e2fdeb508b4950458b7d54468842' 2008年04月01日 21:37:24,918 DEBUG MoinMoin.i18n:208 pickle en load success 2008年04月01日 21:37:24,923 DEBUG MoinMoin.i18n:298 formatting for 'en' on the fly: "Other users will be ''warned'' until %(bumptime)s that you are editing this page." 2008年04月01日 21:37:24,924 DEBUG MoinMoin.i18n:171 formatting: "Other users will be ''warned'' until %(bumptime)s that you are editing this page." 2008年04月01日 21:37:28,764 WARNING MoinMoin.log:95 Using built-in fallback logging configuration! 2008年04月01日 21:37:28,764 WARNING MoinMoin.log:97 load_config failed with "No section: 'formatters'". 2008年04月01日 21:37:28,966 DEBUG MoinMoin.config.multiconfig:81 could not import farmconfig, mapping all URLs to wikiconfig 2008年04月01日 21:37:28,975 INFO MoinMoin.config.multiconfig:119 using wiki config: /var/local/moin-1.7.2/wiki-172/wikiconfig.pyc 2008年04月01日 21:37:28,978 DEBUG MoinMoin.i18n:62 trying to load translations from cache 2008年04月01日 21:37:28,978 DEBUG MoinMoin.i18n:88 loading language metadata from disk cache 2008年04月01日 21:37:29,186 DEBUG MoinMoin.wikiutil:2450 checkTicket: returning True, got u'0047f2f165.Testing.edit.99a6d775c766495e38c7fee07ef4a3f5f8d314be', expected u'0047f2f165.Testing.edit.99a6d775c766495e38c7fee07ef4a3f5f8d314be' 2008年04月01日 21:37:29,192 DEBUG MoinMoin.i18n:208 pickle en load success 2008年04月01日 21:37:29,198 DEBUG MoinMoin.i18n:298 formatting for 'en' on the fly: "Other users will be ''warned'' until %(bumptime)s that you are editing this page." 2008年04月01日 21:37:29,200 DEBUG MoinMoin.i18n:171 formatting: "Other users will be ''warned'' until %(bumptime)s that you are editing this page." 2008年04月01日 21:37:35,414 WARNING MoinMoin.log:95 Using built-in fallback logging configuration! 2008年04月01日 21:37:35,414 WARNING MoinMoin.log:97 load_config failed with "No section: 'formatters'". 2008年04月01日 21:37:35,562 DEBUG MoinMoin.config.multiconfig:81 could not import farmconfig, mapping all URLs to wikiconfig 2008年04月01日 21:37:35,569 INFO MoinMoin.config.multiconfig:119 using wiki config: /var/local/moin-1.7.2/wiki-172/wikiconfig.pyc 2008年04月01日 21:37:35,571 DEBUG MoinMoin.i18n:62 trying to load translations from cache 2008年04月01日 21:37:35,572 DEBUG MoinMoin.i18n:88 loading language metadata from disk cache 2008年04月01日 21:37:35,603 DEBUG MoinMoin.wikiutil:2450 checkTicket: returning True, got u'0047f2f169.Testing.edit.db2830f0ee14ea0868b76ab2f0861ebace937f9c', expected u'0047f2f169.Testing.edit.db2830f0ee14ea0868b76ab2f0861ebace937f9c' 2008年04月01日 21:37:35,610 ERROR MoinMoin.failure:159 An exception occured. Traceback (most recent call last): File "/opt/moin-1.7.2/lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 1275, in run handler(self.page.page_name, self) File "/opt/moin-1.7.2/lib/python2.4/site-packages/MoinMoin/action/edit.py", line 96, in execute convert = wikiutil.importPlugin(request.cfg, "converter", converter_name, 'convert') File "/opt/moin-1.7.2/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 1105, in importPlugin return importBuiltinPlugin(kind, name, function) File "/opt/moin-1.7.2/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 1125, in importBuiltinPlugin raise PluginMissingError PluginMissingError
Plan
- Priority:
- Assigned to:
- Status: