Contents
Description
Problem: Cannot run MM 1.9.4 on Windows 7 with current Python distribs (see below for a list of pythons that I tried.)
Date of this bug report: JUL 21 2012.
Details
Pythons I tried:
- python releases on python.org: python-3.2.3.msi - i didn't try this python version since MM docs tell not to use Py 3.
- python releases on python.org: Python-2.5.6.tar.bz2 - this python's source code-only release doesn't make on latest cygwin under WIndows7, gives a GCC compile error: bug in python distribution compilation process.
- python releases on python.org: python-2.5.4.msi for x86 - this binary python release doesn't work with MM (mm gives a windows access violation dialog which aborts the MM process).
python releases on python.org: python-2.4.4.msi for x86 - this binary python release doesn't work with MM (mm gives a traceback and aborts the MM process; see below for Traceback [2]).
python releases on python.org: Python-2.4.6.tar.bz2 - this python's source code-only release makes and installs OK on latest cygwin under Windows7, MM gives a traceback; see Traceback [3] below, after the traceback MM aborts its process.
- python releases on python.org: python-2.7.3.msi for x86 - this binary python release doesn't work with MM (mm gives a windows access violation dialog which aborts the MM process).
python from the latest cygwin: /bin/python2.6.exe ("/bin/python2.6.exe --version" gives "Python 2.6.8") - this binary python release doesn't work with MM (mm gives a traceback --- see Traceback [1] below --- and aborts the MM process).
ActiveState ActivePython 2.7.2.5 (64-bit): Installer for this version of Python seems to hang at the operation "Please wait, determining the disc space requirements...": I waited several hours for this operation to complete, and I have canceled this operation when I timed out after several hours of waiting. Additionally, this installer hung when I pressed "Close Installer application" ([x] button), my Windows had reported that the application is not responding and I waited for several minutes and I forcibly closed the installer's process.
The question is: How do I run MoinMoin locally to handle my wiki on my current computer and my current OS (Win7)?
Tracebacks
Traceback [1]:
C:\bin>C:\bin\cygwin\bin\python2.6.exe /cygdrive/f/PUBLIC_HTML/hoowiki/moin-1.9.4/wikiserver.py 2012-07-21 13:37:33,934 INFO MoinMoin.log:126 using logging configuration read from "/cygdrive/f/PUBLIC_HTML/hoowiki/moin-1.9.4/wikiserverlogging.conf" 2012-07-21 13:37:35,712 INFO werkzeug:116 * Running on http://localhost:8080/ 2012-07-21 13:37:43,889 INFO MoinMoin.config.multiconfig:127 using wiki config: /cygdrive/f/PUBLIC_HTML/hoowiki/moin-1.9.4/wikiconfig.py 0 [unknown (0x6C8)] python2.6 7068 exception::handle: Exception: STATUS_ACCESS_VIOLATION 470 [unknown (0x6C8)] python2.6 7068 open_stackdumpfile: Dumping stack trace to python2.6.exe.stackdump C:\bin>
Contents of "python2.6.exe.stackdump" file:
Exception: STATUS_ACCESS_VIOLATION at eip=67D5D311 eax=000000C8 ebx=8039F03C ecx=00000024 edx=8039F11C esi=8039EFE4 edi=00000000 ebp=FF82A1F8 esp=FF82A120 program=C:\bin\cygwin\bin\python2.6.exe, pid 7068, thread unknown (0x6C8) cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B Stack trace: Frame Function Args End of stack trace
Traceback [2]:
C:\bin>C:\python\python2.4\python.exe -V Python 2.4.4 C:\bin>C:\python\python2.4\python.exe f:/PUBLIC_HTML/hoowiki/moin-1.9.4/wikiserver.py 2012-07-21 14:12:34,917 INFO MoinMoin.log:126 using logging configuration read from "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\wikiserve rlogging.conf" Traceback (most recent call last): File "f:/PUBLIC_HTML/hoowiki/moin-1.9.4/wikiserver.py", line 35, in ? MoinScript().run() File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\script\__init__.py", line 138, in run self.mainloop() File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\script\__init__.py", line 261, in mainloop plugin_class(args[2:], self.options).run() # all starts again there File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\script\__init__.py", line 138, in run self.mainloop() File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\script\server\standalone.py", line 143, in mainloop run_server(**kwargs) File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\web\serving.py", line 138, in run_server application = make_application(shared=docs) File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\web\serving.py", line 82, in make_application from MoinMoin.wsgiapp import application File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\wsgiapp.py", line 14, in ? from MoinMoin.web.contexts import AllContext, Context, XMLRPCContext File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\web\contexts.py", line 13, in ? from werkzeug import Headers, http_date, create_environ, redirect, abort File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\support\werkzeug\__init__.py", line 119, in __getattr__ module = __import__(object_origins[name], None, None, [name]) File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\support\werkzeug\test.py", line 23, in ? from werkzeug.wrappers import BaseRequest File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\support\werkzeug\wrappers.py", line 35, in ? from werkzeug.formparser import FormDataParser, default_stream_factory File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\support\werkzeug\formparser.py", line 16, in ? from functools import update_wrapper ImportError: No module named functools C:\bin>
Traceback [3]
$ cygpath -w / C:\bin\cygwin $ /usr/local/bin/python2.4.exe -V Python 2.4.6 $ /usr/local/bin/python2.4.exe /cygdrive/f/PUBLIC_HTML/hoowiki/moin-1.9.4/wikis erver.py > out 2> err $ cat out err 2012-07-21 14:30:23,271 INFO MoinMoin.log:126 using logging configuration read from "/cygdrive/f/PUBLIC_HTML/hoowiki/moin-1.9.4/wikiserverlogging.conf" Traceback (most recent call last): File "/cygdrive/f/PUBLIC_HTML/hoowiki/moin-1.9.4/wikiserver.py", line 35, in ? MoinScript().run() File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\script\__init__.py", line 138, in run self.mainloop() File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\script\__init__.py", line 261, in mainloop plugin_class(args[2:], self.options).run() # all starts again there File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\script\__init__.py", line 138, in run self.mainloop() File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\script\server\standalone.py", line 143, in mainloop run_server(**kwargs) File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\web\serving.py", line 138, in run_server application = make_application(shared=docs) File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\web\serving.py", line 82, in make_application from MoinMoin.wsgiapp import application File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\wsgiapp.py", line 14, in ? from MoinMoin.web.contexts import AllContext, Context, XMLRPCContext File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\web\contexts.py", line 13, in ? from werkzeug import Headers, http_date, create_environ, redirect, abort File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\support\werkzeug\__init__.py", line 119, in __getattr__ module = __import__(object_origins[name], None, None, [name]) File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\support\werkzeug\test.py", line 23, in ? from werkzeug.wrappers import BaseRequest File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\support\werkzeug\wrappers.py", line 34, in ? from werkzeug.urls import url_decode, iri_to_uri File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\support\werkzeug\urls.py", line 15, in ? from werkzeug.wsgi import make_chunk_iter File "f:\PUBLIC_HTML\hoowiki\moin-1.9.4\MoinMoin\support\werkzeug\wsgi.py", line 18, in ? from zlib import adler32 ImportError: No module named zlib
Note: this is likely a wrongly compiled python interpreter, zlib support should be there.
I compiled this version of python using cygwin's tools, with "./confiure && make && make install"; it compiled and installed ok.
Yes, this is a common issue with compiling python (same thing on linux): if you do not have zlib and zlib-dev headers installed, configure will see that it is not there and just build a python without zlib support. That works as long as you don't use zlib, but nowadays, such stuff is used rather often. Same thing may happen for some other libs.
Additional Warning re: Py 2.5 (unrelated to Windows 7)
Warning: http://www.python.org/download/releases/2.5.6/ page tells: "This release is the final release of Python 2.5; under the current release policy, no security issues in Python 2.5 will be fixed anymore."
Steps to reproduce
- Run "
set DRIVE=f C:\bin\cygwin\bin\python2.6.exe /cygdrive/%DRIVE%/PUBLIC_HTML/hoowiki/moin-1.9.4/wikiserver.py
"
Example
Component selection
- general
Details
MoinMoin Version |
1.9.4 |
OS and Version |
Windows 7 |
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
RogerHaase replied:
I installed Python 2.6.5 and MoinMoin under Windows/7 in July 2010. As I recall, python does not get added to your system path automatically, so try adding python to your system path manually.
To test your python installation, you should be able to open a command window and do "python -V" from any directory.
Also start Python Idle and enter something simple like "2 + 2".
- If that succeeds, try the failing import statements "from functools import update_wrapper", etc.
- success is a blank line, failure is a bunch of error messages
If you start over, just use the current 32-bit version python-2.7.3.msi. No need to try all the older versions or attempt to compile Python yourself.
If you have everything setup correctly, you will be able to open a command window, cd to the root of your wiki, and enter "python wikiserver.py".
If you need more help, tell us what installation guides you are following and maybe a little about your setup (you have a drive F and compile Python yourself).
EvgeniyPhilippov replied:
I added "python 2.7.3 for x86" to the start of Windows env var Path (this is a python distro from http://python.org/ );
"2+2" and abovementioned "import <...>" worked correctly;
MoinMoin on my local wiki ran correctly.
It seems that MoinMoin (??? start) needs the python to be in Path (??? end). Alternatively, MoinMoin (??? start) might need "cd dirname-of-wikiserver.py" (??? end).
I don't need more help, all works correctly now.
Thank you RogerHaase for a helpful reply!
just a note, common python installation features on different platforms aren't our fault
Python 2.4 is not directly supported / tested any more since 1.9.4, see the note about that in docs/CHANGES). Nowadays, 2.4 (and even 2.5) is much too old anyways. Using 2.7 or 2.6 is recommended.
The MoinMoin install guide at http://master19.moinmo.in/InstallDocs tells:
* We recommend using Python 2.4.x or 2.5.x, if possible. * Python 2.6.x should also work, but is less tested. * Python 3.x (or Python older than 2.4) will not work for MoinMoin.
I followed this guide and please modify this guide with up-to-date installation instructions (e.g. please update versions of Python that are necessary to run MoinMoin.)
Oops, ok. Will do. -- ThomasWaldmann 2012-07-22 13:18:34
Dear Thomas, please tell here when you're completed with the install guide, so people will have a chance to cache the updated install guide page locally on their computers. ~~~~ EGP 2025-04-07 10:26:30
Plan
- Priority:
- Assigned to:
- Status: