[Moin-user] ImportErrorCannot load macro FullSearch
Sebastian Nordhoff
s.nordhoff at uva.nl
Mon Sep 26 04:19:12 EDT 2005
Hi all,
thanks to Alexander's help, my wiki works now for basic functions such as
editing. I have a problem with Categories, though. The FullSearch Macro
does not seem to work, and I get an ImportError.
See error message (static) at http://www.jasyjatere.com/error.html or
below.
<error msg>
LDS complete
FrontPage
RecentChanges
FindPage
HelpContents
LDS
FAQ
LDS complete
List of all sections of the Lingua Descrptive Series Questionnaire
List of pages in this category:
--> -->
ImportErrorCannot load macro FullSearch Please include this information in
your bug reports!:
Python Python 2.2.3: /usr/bin/python
Linux XEN001-C02.totalin.com 2.4.21-27.0.1.EL #1 Fri Dec 24 02:04:03 GMT
2004 i686
MoinMoin Release 1.3.5 [Revision 1.3.5 release]
Mon Sep 26 13:27:18 2005
A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.
/home/httpd/vhosts/jasyjatere.com/cgi-bin/MoinMoin/request.py in
run(self=<MoinMoin.request.RequestCGI object>)
914 else:
915 try:
916 cgitb.Hook(file=self).handle(saved_exc)
917 # was: cgitb.handler()
918 except:
cgitb = <module 'MoinMoin.support.cgitb' from
'/home/htt...syjatere.com/cgi-bin/MoinMoin/support/cgitb.pyc'>, cgitb.Hook
= <class MoinMoin.support.cgitb.Hook>, file undefined, self =
<MoinMoin.request.RequestCGI object>, ).handle undefined, saved_exc =
(<class exceptions.ImportError>, <exceptions.ImportError instance>,
<traceback object>)
/home/httpd/vhosts/jasyjatere.com/cgi-bin/MoinMoin/Page.py in
send_page(self=<MoinMoin.Page.Page instance>,
request=<MoinMoin.request.RequestCGI object>, msg='',
**keywords={'count_hit': 1})
1152 else:
1153 # parse the text and send the page content
1154 self.send_page_content(request, Parser, body,
format_args=pi_formatargs, do_cache=do_cache)
1155
1156 # check for pending footnotes
self = <MoinMoin.Page.Page instance>, self.send_page_content = <bound
method Page.send_page_content of <MoinMoin.Page.Page instance>>, request =
<MoinMoin.request.RequestCGI object>, Parser = <class
MoinMoin.parser.wiki.Parser>, body = u'\nList of all sections of the
Lingua Descrptive
S...FullSearch(CategoryLDS)]]\n\n----\nCategoryCategory\n', format_args
undefined, pi_formatargs = u'', do_cache = 1
/home/httpd/vhosts/jasyjatere.com/cgi-bin/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'\nList of all sections of the Lingua
Descrptive S...FullSearch(CategoryLDS)]]\n\n----\nCategoryCategory\n',
needsupdate=1, format_args=u'', do_cache=1)
1312 __file__ =
os.path.join(moinmodule.__loader__.archive, 'dummy')
1313
1314 exec code
1315 except 'CacheNeedsUpdate':
1316 # if something goes wrong, try without caching
code = <code object ? at 0x9a18070, file "LDS complete", line 2>
?
/home/httpd/vhosts/jasyjatere.com/cgi-bin/MoinMoin/formatter/base.py in
macro(self=<MoinMoin.formatter.text_html.Formatter instance>,
macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'FullSearch',
args=u'CategoryLDS')
229 def macro(self, macro_obj, name, args):
230 # call the macro
231 return macro_obj.execute(name, args)
232
233 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'FullSearch', args = u'CategoryLDS'
/home/httpd/vhosts/jasyjatere.com/cgi-bin/MoinMoin/wikimacro.py in
execute(self=<MoinMoin.wikimacro.Macro instance>,
macro_name=u'FullSearch', args=u'CategoryLDS')
110 return self._m_lang(macro_name, args)
111
112 raise ImportError("Cannot load macro %s" % macro_name)
113
114 def _m_lang(self, lang_name, text):
ImportError undefined, macro_name = u'FullSearch'
ImportError: Cannot load macro FullSearch
__doc__ = "Import can't find module, or can't find name in module."
__getitem__ = <bound method ImportError.__getitem__ of
<exceptions.ImportError instance>>
__init__ = <bound method ImportError.__init__ of
<exceptions.ImportError instance>>
__module__ = 'exceptions'
__str__ = <bound method ImportError.__str__ of
<exceptions.ImportError instance>>
args = (u'Cannot load macro FullSearch',)
</error msg>
the MoinMoin/macro directory is as follows
__init__.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
__init__.pyc
4.00 KB
Sept 26, 2005
apache apache rw- --- ---
AbandonedPages.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
Action.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
Action.pyc
4.00 KB
Sept 26, 2005
apache apache rw- --- ---
AttachInfo.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
AttachList.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
BR.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
BR.pyc
4.00 KB
Sept 26, 2005
apache apache rw- --- ---
EditedSystemPages.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
EditTemplates.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
EditTemplates.pyc
4.00 KB
Sept 26, 2005
apache apache rw- --- ---
FootNote.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
Form.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
FullSearch.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
FullSearch.pyc
4.00 KB
Sept 26, 2005
apache apache rw- --- ---
FullSearch.pyc.old
4.00 KB
Sept 26, 2005
apache apache rw- --- ---
GetText.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
GetTextFormatted.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
Include.py
12.0 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
LikePages.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
LikePages.pyc
4.00 KB
Sept 26, 2005
apache apache rw- --- ---
MonthCalendar.py
24.0 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
Navigation.py
8.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
NewPage.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
OrphanedPages.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
PageHits.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
PageSize.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
RandomPage.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
RandomQuote.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
RecentChanges.py
16.0 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
ShowSmileys.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
StatsChart.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
SystemAdmin.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
TableOfContents.py
8.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
TableOfContents.pyc
8.00 KB
Sept 26, 2005
apache apache rw- --- ---
TeudView.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
Verbatim.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
Verbatim.pyc
4.00 KB
Sept 26, 2005
apache apache rw- --- ---
WantedPages.py
4.00 KB
Sept 26, 2005
jasyjatere psacln rwx rwx rwx
1-41 jasyjatere.com / cgi-bin / MoinMoin / macro items of 41 total
Thanks for your help
Sebastian
More information about the Moin-user
mailing list