Omschrijf ThemeMarket/Explorer/Bugs/ImportErrorNoModuleNamed hier.
I have a standalone MoinMoin 1.8.3 Wiki MoinMoin Desktop Edition (MMDE)
I have downloaded The latest Explorer Firts It worked.
After changing some lines in my wikiconfig.py The Wiki with other themes still works (the defaults and Mandarin, FixedLeft) The changes are: <
>
. #Show_hosts = True <
> Show_hosts = False <
> superuser=[u"",] <
> acl_rights_before = u":read,write,delet,revert,admin" <
> #acl_rights_default = u"All:read,write,delete,revert,admin" <
> acl_rights_default = u'Known:read,write,delete,revert All:read' <
> sitename = u'MoinMoin ' <
> #logo_string = u'
' <
> logo_string=u'
Scotts Wiski' <
> theme_default='mandarin' <
>
. <
>
When I choose Explorer now (in IE and FF) I get the next Error page:
{{{
ImportError
No module named p_8a1a84b57a2eac3a9be90ce630a235b20d1d84dd.theme.explorer
If you want to report a bug, please save this page and attach it to your bug report.
Show debugging information Report bug Visit MoinMoin wiki
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.
C:\Moin-1.8.3\MoinMoin\request\__init__.py in run (self=)
1309 self.page.send_page()
1310 else:
1311 handler(self.page.page_name, self)
1312
1313 # every action that didn't use to raise MoinMoinFinish must call this now:
handler = , self = , self.page = , self.page.page_name = u'FrontPage',
C:\Moin-1.8.3\MoinMoin\action\userprefs.py in execute (pagename=u'FrontPage', request=)
104 request.emit_http_headers()
105 request.theme.add_msg(msg, msg_class)
106 request.theme.send_title(title, page=request.page, pagename=pagename)
107 # Start content (important for RTL support)
108 request.write(request.formatter.startContent("content"))
request = , request.theme = , request.theme.send_title = >, title = 'Settings', page undefined , request.page = , pagename = u'FrontPage',
C:\Moin-1.8.3\MoinMoin\theme\__init__.py in send_title (self=, text='Settings', **keywords={'page': , 'pagename': u'FrontPage'})
1785 output.append(self.editorheader(d))
1786 else:
1787 output.append(self.header(d))
1788
1789 # emit it
output = [u'\n\n'], output.append = , self = , self.header = >, d = {'available_actions': ['use self.request.availableActions(page)'], 'home_page': (u'Self', u'BertBarske'), 'last_edit_info': '', 'logo_string': u'
Scotts Wiski', 'msg': [('User preferences saved!', 'dialog')], 'navibar': ['use self.navibar(d)'], 'page': , 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', 'page_help_contents': 'HelpContents', ...},
C:\Moin-1.8.3\wiki\data\plugin\theme\explorer.py in header (self=, d={'available_actions': ['use self.request.availableActions(page)'], 'home_page': (u'Self', u'BertBarske'), 'last_edit_info': '', 'logo_string': u'
Scotts Wiski', 'msg': [('User preferences saved!', 'dialog')], 'navibar': ['use self.navibar(d)'], 'page': , 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', 'page_help_contents': 'HelpContents', ...}, **kw={})
195 module_name = self.module_name
196 # Init the wiki tree
197 self.wiki_tree = WikiTree(self, self.page_name)
198
199 # Initialize default settings
self = , self.wiki_tree undefined , global WikiTree = , self.page_name = u'FrontPage',
C:\Moin-1.8.3\wiki\data\plugin\theme\explorer.py in __init__ (self=, theme=, page_name=u'FrontPage')
772 # Check if there's a cached wiki tree
773 if disk_cache.exists():
774 version, self.cache = self.cPickle.loads(disk_cache.content())
775 if version == self.release and self.cache[4:7] == [self.root, self.orphaned, self.underlay]:
776 # Only use cached data if it corresponds to the wiki_tree version
global version = , self = , self.cache = None, self.cPickle = , self.cPickle.loads = , disk_cache = , disk_cache.content = >,
ImportError
No module named p_8a1a84b57a2eac3a9be90ce630a235b20d1d84dd.theme.explorer
args = ('No module named p_8a1a84b57a2eac3a9be90ce630a235b20d1d84dd.theme.explorer',)
message = 'No module named p_8a1a84b57a2eac3a9be90ce630a235b20d1d84dd.theme.explorer'
System Details
•Date: Fri, 15 May 2009 21:05:30 +0000
•Platform: win32 (nt)
•Python: Python 2.6.2 (C:\Python26\python.exe)
•MoinMoin: Release 1.8.3 (release)
}}}
Xunchen Liu, Oct, 11, 2009. Moin-1.8.5. Explorer-theme 2.4
I got the same problem. I can have it running on firefox on Fedora, but not on Windows7 with Python 2.6.3.
my error message is cannot find the
{{{
p_8a1a84b57a2eac3a9be90ce630a235b20d1d84dd.theme.explorer
}}}
too! I found if I remove the explore.py from the addon folder it will work again.
but I really like the theme. anyone could work it out?
----
I had the same problem after copying a wiki instance to a new one. I fixed it by deleting the content of the cache/wikiconfig folder and restarting apache (i use mod_wsgi). These are the commands on debian
{{{
rm //data/cache/wikiconfig/* -R
sudo apache2ctl restart
}}}
I also played with renaming explorer.py and deleting explorer.pyc. Maybe someone can confirm this fix.