Description

When running Moin 1.6.1 on top of a twisted 2.5 server it fails with the following stack trace in the terminal:

Traceback (most recent call last):
  File "./mointwisted", line 20, in <module>
    from mointwisted import Config
  File "/usr/local/python-2.5/share/moin/wikis/main/mointwisted.py", line 30, in <module>
    from MoinMoin.server.twistedmoin import TwistedConfig, makeApp
  File "/usr/local/python/lib/python2.5/site-packages/MoinMoin/server/twistedmoin.py", line 39, in <module>
    from MoinMoin.request import RequestTwisted
ImportError: cannot import name RequestTwisted

Steps to reproduce

In a unix terminal run:

python -c "from MoinMoin.request import RequestTwisted"

Component selection

Details

MoinMoin Version

1.6.1

OS and Version

RHEL 4

Python Version

2.5

Server Setup

Twisted 2.5

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

English

Workaround

Comment out line 39 of MoinMoin/server/twistedmoin.py, and add the below instead

#from MoinMoin.request import RequestTwisted
from MoinMoin.request.request_twisted import Request as RequestTwisted

Discussion

Hmm, sorry may be I don't get it right. Because since 1.6 all server modules were renamed by a prefix of "server_" The current twisted servers name is server_twisted.py. All request modules do have an prefix of "request_". It does sound to me MoinMoin/server/twistedmoin.py is leftover from an older installation ? -- ReimarBauer 2008-02-18 22:44:16

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/TwistedRequestNotFoundIn161 (last edited 2008-02-19 07:34:29 by ThomasWaldmann)