Description

UnicodeDecodeError

Steps to reproduce

  1. I Installed a brand new moinmoin wiki 1.9.3. i run it with wikiserver.py
  2. I went to http://localhost:8080/LanguageSetup?action=language_setup and installed some packages. some worked some gave me the error: http://paste.ubuntuusers.de/405527/

I am on Ubuntu with Python 2.7.2

Example

Component selection

  • general

Details

MoinMoin Version

1.9.3

OS and Version

ubuntu

Python Version

2.7.2

Server Setup

wikiserver.py

Server Details

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

Workaround

Discussion

is any of the pathes configured using u'...'? e.g. data_..._dir? try without u.

What is the reason behind this idea?

Well, obviously it tries to decode the (byte)string to unicode. If one part of the path is unicode, that might be the reason for it trying to do that when joining together the path.

Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
>>> a = u'foo'
>>> b = 'bar'
>>> os.path.join(a, b)
u'foo/bar'
>>> import posixpath
>>> posixpath.join(a, b)
u'foo/bar'
>>> a
u'foo'
>>> b
'bar'

For my Python 2.7.2+ (default, Oct 4 2011, 20:06:09) I have the same result as for 2.6.5

So one of the pathes is not in unicode defined but needs it.

  • /!\ It might very well work if NO path component is unicode. We never had an issue with that, but I suspect the original poster is having unicode path components.

Discussion

Can you try with python 2.6.x?

Plan

  • Priority:
  • Assigned to:
  • Status:


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/UnicodeDecodeError while installing help and system pages (last edited 2012年02月10日 10:13:35 by ThomasWaldmann )

AltStyle によって変換されたページ (->オリジナル) /