[Moin-user] Problem with upgrade to moin-1.7.1 and AD auth

Bernd Bartmann bernd.bartmann at gmail.com
Mon Jul 21 08:53:13 EDT 2008


On Mon, Jul 21, 2008 at 2:23 PM, Bernd Bartmann wrote:
> Hi,
>
> I'm trying to upgrade from moin-1.6.2 to moin-1.7.1. After following
> the HelpOnUpdating guide to the point where I should run  the
> "migation data" command I get an error message when trying to access
> the wiki:
>
>
> ConfigurationError
> ImportError: cannot import name http
> Check that the file is in the same directory as the server script. If
> it is not, you must add the path of the directory where the file is
> located to the python path in the server script. See the comments at
> the top of the server script.
> Check that the configuration file name is either "wikiconfig.py" or
> the module name specified in the wikis list in farmconfig.py. Note
> that the module name does not include the ".py" suffix.
> Error in your configuration file "D:/moin/rd_wiki\wikiconfig.py"
> around line 189.
>
> The problematic line seems to be related to the http auth code that I
> use for AD authentication:
>
> from MoinMoin.auth.http import http
> from MoinMoin.auth import moin_session
> auth = [http, moin_session]
>
> Any ideas what I can do to solve the issue?

Looks like it now has to be:

from MoinMoin.auth.http import HTTPAuth
auth = [HTTPAuth()]

Why does this have to change with every new version?

Best regards,
Bernd.




More information about the Moin-user mailing list