SuSE 9, Python 2.3+ (the default for suse 9), apache 2 with
mod_python 3.1.3.
When creating a new user, I got the NameError about name
'UnpicklingError' not being defined (the exception is defined in the
pickle module, but not in the global module scope of user.py).
This is the patch that fixed the problem for me:
--- /home/jure/wiki/moin-1.2.2/build/lib/MoinMoin/user.py
2004-06-06 01:58:39.000000000 +0200
+++ user.py 2004-06-09 12:02:21.709993524 +0200
@@ -46,7 +46,7 @@
userdictpickle = os.path.join(config.user_dir,
"userdict.pickle")
try:
_name2id = pickle.load(open(userdictpickle))
- except (UnpicklingError,IOError,EOFError,ValueError):
+ except (pickle.UnpicklingError,IOError,EOFError,ValueError):
_name2id = {}
id = _name2id.get(searchName, None)
if id is None:
Logged In: YES
user_id=100649
fixed in arch / snapshot
the patch posted in the bug report is valid, everybody
running 1.2.2 release should please fix it like that.
So just add "pickle." (without the quotes) in front of
"UnpicklingError" in user.py.
Sorry for that bug, but we had that code in public testing
in multiple wikis - either nobody noticed or nobody reported
it or it happens only in brand new wikis.
Logged In: YES
user_id=6884
I have stumbled upon the same problem when installing brand
new 1.2.2s. This patch works for me as well.
Logged In: YES
user_id=100649
fixed in arch and soon in moin 1.2.3