Ok, now I know a bit more about the error. According to the instructions, into the "farmconfig.py" file you have to specify url's pattern and config's file for each wiki of the farm. In my case, one of these wikis is called "dis". I found out that whenever I created the file "dis.py" the farm broke down. That is, if I changed the name of the file to other one (as "wikidis.py") the problem did disappear. After of being thinking about it I supposed that It was possible that python was getting confused with other file with the same name. Indeed, I've checked that python's lib contains a file called "dis.py".

My real problem lies in I know nothing about python. I took me one day to realize that may be there were a conflict.

  Hope it helps.

(and sorry for my english)

Antonio Diaz escribió:

  I started  from scratch and now it works. I don't what was wrong.

Antonio Diaz Sanchez escribió:

   Hi,

I'm trying to configure a wikifarm. I've read the documentation and I think that I've followed the right steps but whenever I try to run this the apache's log says something like that: "ImportError: cannot import name wikituil. Premature end of script headers: moin.cgi".

I'm using python2.4 although I've also tried it using python2.5. What can I do?

   Here is the complete log message:

[Thu Nov 27 09:07:41 2008] [error] [client 10.141.188.134] 2008-11-27 09:07:41,213 WARNING MoinMoin.log:137 using logging configuration read from built-in fallback in MoinMoin.log module! [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] Traceback (most recent call last): [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] File "/srv/wiki/bin/moin.cgi", line 37, in ? [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] from MoinMoin.server.server_cgi import CgiConfig, run [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] File "/usr/local/lib/python2.4/site-packages/MoinMoin/server/server_cgi.py", line 25, in ? [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] from MoinMoin.request import request_cgi [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] File "/usr/local/lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 48, in ? [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] from MoinMoin.Page import Page [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] File "/usr/local/lib/python2.4/site-packages/MoinMoin/Page.py", line 42, in ? [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] [Thu Nov 27 09:07:44 2008] [error] [client 10..141.188.134] from MoinMoin import config, caching, user, util, wikiutil [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] File "/usr/local/lib/python2.4/site-packages/MoinMoin/user.py", line 29, in ? [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] from MoinMoin import config, caching, wikiutil, i18n, events [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] File "/usr/local/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 25, in ? [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] from inspect import getargspec, isfunction, isclass, ismethod [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] File "/usr/lib/python2.4/inspect.py", line 31, in ? [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] import sys, os, types, string, re, dis, imp, tokenize, linecache [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] File "/srv/wiki/dis.py", line 16, in ? [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188..134] [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] from farmconfig import FarmConfig [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] File "/srv/wiki/farmconfig.py", line 69, in ? [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] from MoinMoin.config.multiconfig import DefaultConfig [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] File "/usr/local/lib/python2.4/site-packages/MoinMoin/config/multiconfig.py", line 19, in ? [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] [Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] from MoinMoin import config, error, util, wikiutil
[Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] ImportError
[Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] :
[Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] cannot import name wikiutil
[Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134]
[Thu Nov 27 09:07:44 2008] [error] [client 10.141.188.134] Premature end of script headers: moin.cgi



------------------------------------------------------------------------

------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------

_______________________________________________
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user




                
______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to