Your message dated Sat, 27 Jun 2009 17:34:10 +0200
with message-id <[email protected]>
and subject line python-moinmoin: Difficult to run Moin in standalone mode
has caused the Debian Bug report #487801,
regarding python-moinmoin: Difficult to run Moin in standalone mode
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
487801: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487801
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-moinmoin
Version: 1.7.0-3
Severity: important

I can't figure out how to run Moin in standalone mode. Having copied
over the data and underlay directories, there are several ways to
proceed.

<http://moinmo.in/DesktopEdition> says that running 'python moin.py'
doesn't work. Ok, so this is because moin's files live in sys.path
rather than in the current directory, but running simply 'moin' just
spits out an error about not specifying a command.

Maybe those instructions are just bogus however. Looking at
<http://moinmo.in/HelpOnInstalling/StandaloneServer> it should be
possible to run 'moin --config-dir=/etc/moin server standalone
--docs=/usr/share/moin/htdocs', but this complains that the module
wikiserverconfig cannot be found. I tried creating a wikiserverconfig.py
based on /usr/share/moin/config/wikiconfig.py, but that gave me
'TypeError: __init__() takes exactly 2 arguments (1 given)'. Ok, I guess
I need to look elsewhere.

/usr/share/python-support/python-moinmoin/MoinMoin/server/server_standalone.py
contains some inline instructions for creating a server, and their code
runs, but then trying to access the wiki yields 'ImportError: No module
named wikiconfig'... renaming the script to wikiconfig.py gives me
'RuntimeError: You can run only one server per process!'. Hm...

I noticed that the original moin source archive contains a top-level
wikiserverconfig.py file that seems to do the job, except that accessing
the wiki complains that /org/mywiki/data does not exist. Even if I try
overriding data_dir in wikiserverconfig.py does not change this error.
It looks like the clever Debian /etc/moin directory containing the
farmconfig stuff is getting in the way, even though I don't want to use
it and am not importing anything from that directory (at least
deliberately).

Anyway I am giving up for now, hopefully someone can help by providing
some instructions to run moin in standalone/desktop mode. :)

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (530, 'testing'), (520, 'unstable'), (510, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-moinmoin depends on:
ii  python                        2.5.2-1    An interactive high-level object-o
ii  python-support                0.8.1      automated rebuilding support for P

Versions of packages python-moinmoin recommends:
ii  exim4                         4.69-5     meta-package to ease Exim MTA (v4)
ii  exim4-daemon-light [mail-tran 4.69-5+b1  lightweight Exim MTA (v4) daemon
ii  python-xapian                 1.0.5-1    Xapian search engine interface for

-- no debconf information



--- End Message ---
--- Begin Message ---
fixed 487801 1.7.1-2
thanks

Hello,

I have made some tests, and it seems to behave as documented in Lenny's
moinmoin 1.7.1

#My system is configured as described in the package README.Debian:
# I have configured the /etc/moin/* files
# I have created a folder, and initialized the wiki with "data" 
# and "underlay"

python /usr/share/python-support/python-moinmoin/MoinMoin/script/moin.py \
  --config-dir=/etc/moin \
  server standalone \
  --doc=/usr/share/moin/htdocs/

As mentioned in the documentation, The statement "url_prefix=''" must
not be used in the configuration file, so moinmoin use it's built-in
location for static content.

The behavior seems fine now, the documentation seems "good enough".

Let me know if you have more problem running moinmoin as standalone.
Meanwhile, I am closing the bug.

Thank you for reporting your tests.

Franklin



--- End Message ---

Reply via email to