This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: viewcvs: Python error
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: gcc at gcc dot gnu dot org
- Cc: Vincent Legoll <vincent dot legoll at gmail dot com>, overseers at gcc dot gnu dot org
- Date: Fri, 24 Jun 2011 12:01:47 +0200
- Subject: Re: viewcvs: Python error
- References: <BANLkTimu033Mmx21_chkdf78aQGyTFOoDg@mail.gmail.com>
As I don't know where to report and viewcvs still breaks, CCing overseers.
http://gcc.gnu.org/viewcvs/trunk/gcc/testsuite/gcc.dg/unroll_1.c?view=markup&pathrev=174762
> http://gcc.gnu.org/viewcvs/trunk/gcc/testsuite/gcc.dg/unroll_1.c?view=markup&pathrev=174762
>
> Since several days now I observe Python exceptions in viewcvs like that:
>
> An Exception Has Occurred
> Python Traceback
>
> Traceback (most recent call last):
> File "/usr/lib/python2.3/site-packages/viewvc/lib/viewvc.py", line 4318, in main
> request.run_viewvc()
> File "/usr/lib/python2.3/site-packages/viewvc/lib/viewvc.py", line 397, in run_viewvc
> self.view_func(self)
> File "/usr/lib/python2.3/site-packages/viewvc/lib/viewvc.py", line 1763, in view_markup
> markup_or_annotate(request, 0)
> File "/usr/lib/python2.3/site-packages/viewvc/lib/viewvc.py", line 1696, in markup_or_annotate
> path[-1], mime_type)
> File "/usr/lib/python2.3/site-packages/viewvc/lib/viewvc.py", line 1509, in markup_stream_pygments
> from pygments.formatters import HtmlFormatter
> File "/usr/lib/python2.3/site-packages/pygments/formatters/__init__.py", line 14, in ?
> from pygments.formatters._mapping import FORMATTERS
> File "/usr/lib/python2.3/site-packages/pygments/formatters/_mapping.py", line 20, in ?
> from pygments.formatters.html import HtmlFormatter
> File "/usr/lib/python2.3/site-packages/pygments/formatters/html.py", line 17, in ?
> from pygments.token import Token, Text, STANDARD_TYPES
> File "/usr/lib/python2.3/site-packages/pygments/token.py", line 47, in ?
> Token = _TokenType()
> File "/usr/lib/python2.3/site-packages/pygments/token.py", line 26, in __init__
> self.subtypes = set()
> NameError: global name 'set' is not defined
Vincent Legoll wrote:
>> File "/usr/lib/python2.3/site-packages/pygments/token.py", line 26, in __init__
>> self.subtypes = set()
>> NameError: global name 'set' is not defined
>
> set() appeared in python2.4 according to:
> http://docs.python.org/release/2.3.5/lib/built-in-funcs.html
> vs
> http://docs.python.org/release/2.4/lib/built-in-funcs.html
>
> So the fix may be to upgrade python on the host, and the cause may be that
> a new version of viewcvs has been installed which now use set() whereas the
> previous didn't...
>