Discussion Forum Plugin

72 views
Skip to first unread message

RayRay

unread,
Apr 13, 2012, 4:07:31 AM4/13/12
to Trac Users
Hi,
I'm using TracDiscussion 0.8 on Trac 0.12.3 and i am getting this
Error in the logs and was wondering if anyone could shine some light
on how to fix it.

2012-04-12 17:34:54,143 Trac[loader] ERROR: Skipping
"TracDiscussion.admin = tracdiscussion.admin":
Traceback (most recent call last):
File "build/bdist.linux-i686/egg/trac/loader.py", line 68, in
_load_eggs
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/
pkg_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
File "build/bdist.linux-i686/egg/tracdiscussion/admin.py", line 17,
in ?
File "/usr/lib/python2.4/site-packages/TracDiscussion-0.8-py2.4.egg/
tracdiscussion/api.py", line 1077
value = 1 if value in ('true', 'yes', True) else 0;

Thank you,

RjOllos

unread,
Apr 13, 2012, 1:57:02 PM4/13/12
to Trac Users


On Apr 13, 1:07 am, RayRay <raymondo...@gmail.com> wrote:
>   File "/usr/lib/python2.4/site-packages/TracDiscussion-0.8-py2.4.egg/
> tracdiscussion/api.py", line 1077
>      value = 1 if value in ('true', 'yes', True) else 0;

It looks like you'll need to use Python 2.5 or later. TracDiscussion
should have a check for the minimum Python version.

On (1), you can find `Conditional expressions of the form (TrueValue
if Condition else FalseValue) were added.`. I ran into this a while
back, and I think it was this (2) SO post that pointed me in the right
direction.

(1) http://www.python.org/download/releases/2.5/highlights/
(2) http://stackoverflow.com/questions/2753664/python-2-4-inline-if-statements

RjOllos

unread,
Apr 13, 2012, 1:59:56 PM4/13/12
to Trac Users


On Apr 13, 1:07 am, RayRay <raymondo...@gmail.com> wrote:
>   File "/usr/lib/python2.4/site-packages/TracDiscussion-0.8-py2.4.egg/
> tracdiscussion/api.py", line 1077
>      value = 1 if value in ('true', 'yes', True) else 0;


See also: http://trac-hacks.org/ticket/9146

RayRay

unread,
Apr 16, 2012, 9:33:11 AM4/16/12
to trac-...@googlegroups.com
Thanks for the Help it has being a great help and will to have hope that that is all that is wrong.
Reply all
Reply to author
Forward
0 new messages