Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Discussion Forum Plugin

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


raymondo891 at gmail

Apr 13, 2012, 1:07 AM

Post #1 of 4 (238 views)
Permalink
Discussion Forum Plugin

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,

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.


ryano at physiosonics

Apr 13, 2012, 10:57 AM

Post #2 of 4 (226 views)
Permalink
Re: Discussion Forum Plugin [In reply to]

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

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.


ryano at physiosonics

Apr 13, 2012, 10:59 AM

Post #3 of 4 (236 views)
Permalink
Re: Discussion Forum Plugin [In reply to]

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

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.


raymondo891 at gmail

Apr 16, 2012, 6:33 AM

Post #4 of 4 (225 views)
Permalink
Re: Discussion Forum Plugin [In reply to]

Thanks for the Help it has being a great help and will to have hope that
that is all that is wrong.

On Friday, 13 April 2012 18:59:56 UTC+1, RjOllos wrote:
>
>
>
> 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
>

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/njPreCuWC24J.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.