On Saturday, May 28, 2016 at 12:21:10 PM UTC-7, Jun Omae wrote:
>
> On Sat, May 28, 2016 at 4:48 PM, Jimbo <[email protected]> wrote: 
> > Hi, I've added tracspamfilter but see in /var/log/syslog: 
> > 
> > svn Trac[loader] ERROR: Skipping "spamfilter.blogspam = 
> > tracspamfilter.filters.blogspam [json]": (version conflict 
> "VersionConflict: 
> > (Python 2.7.11- (/usr/lib/python2.7/lib-dynload), 
> > Requirement.parse('python>=2.6'))") 
> > 
> > Any help on this would be very gratefully received. 
> > 
> > Ubuntu 16.04 LTS, installed from default repos trac 1.0.9, Python 
> 2.7.11+ 
> > Tracspamfilter from 
> > https://trac.edgewall.org/browser/plugins/1.0/spam-filter?format=zip 
> (builds 
> > TracSpamFilter-1.0.9.dev0-py2.7.egg) 
> > 
> > Many thanks in advance. 
>
> It seems that python's version via pkg_resources is broken. 
> I consider that is a python2.7 ubuntu package issue. 
>
> Ubuntu 16.04: 
>
> Python 2.7.11+ (default, Apr 17 2016, 14:00:29) 
> [GCC 5.3.1 20160413] on linux2 
> Type "help", "copyright", "credits" or "license" for more information. 
> >>> import pkg_resources 
> >>> dist = pkg_resources.get_distribution('python') 
> >>> dist 
> Python 2.7.11- (/usr/lib/python2.7/lib-dynload) 
> >>> dist.version 
> u'2.7.11-'      # <== should be '2.7' or '2.7.11' 
> >>> pkg_resources.require('python>=2.6') 
> Traceback (most recent call last): 
>   File "<stdin>", line 1, in <module> 
>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", 
> line 943, in require 
>     needed = self.resolve(parse_requirements(requirements)) 
>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", 
> line 834, in resolve 
>     raise VersionConflict(dist, req).with_context(dependent_req) 
> pkg_resources.VersionConflict: (Python 2.7.11- 
> (/usr/lib/python2.7/lib-dynload), Requirement.parse('python>=2.6')) 
>
> Ubuntu 14.04: 
>
> Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
> [GCC 4.8.2] on linux2 
> Type "help", "copyright", "credits" or "license" for more information. 
> >>> import pkg_resources 
> >>> dist = pkg_resources.get_distribution('python') 
> >>> dist 
> Python 2.7 (/usr/lib/python2.7/lib-dynload) 
> >>> dist.version 
> '2.7' 
> >>> pkg_resources.require('python>=2.6') 
> [Python 2.7 (/usr/lib/python2.7/lib-dynload)] 
>

The traceback I posted in (1) is probably related. I didn't find the issue 
reported in the Ubuntu issue tracker (2). I wonder if we should report this 
so that hopefully it gets fixed and we don't have to find a workaround.

- Ryan

(1) https://trac.edgewall.org/ticket/12491#comment:4
(2) https://bugs.launchpad.net/ubuntu

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to