* Re: viewcvs: Python error
[not found] <BANLkTimu033Mmx21_chkdf78aQGyTFOoDg@mail.gmail.com>
@ 2011-06-24 10:02 ` Georg-Johann Lay
2011-06-24 11:37 ` Vincent Legoll
0 siblings, 1 reply; 5+ messages in thread
From: Georg-Johann Lay @ 2011-06-24 10:02 UTC (permalink / raw)
To: gcc; +Cc: Vincent Legoll, overseers
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...
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: viewcvs: Python error
2011-06-24 10:02 ` viewcvs: Python error Georg-Johann Lay
@ 2011-06-24 11:37 ` Vincent Legoll
2011-06-24 18:42 ` Ian Lance Taylor
0 siblings, 1 reply; 5+ messages in thread
From: Vincent Legoll @ 2011-06-24 11:37 UTC (permalink / raw)
To: Georg-Johann Lay; +Cc: gcc, overseers
On Fri, Jun 24, 2011 at 12:01 PM, Georg-Johann Lay <avr@gjlay.de> wrote:
> As I don't know where to report and viewcvs still breaks, CCing overseers.
After a bit more investigation...
This may be the changeset that broke pygments running on older
pythons (< 2.4):
https://bitbucket.org/birkenfeld/pygments-main/changeset/8d3fbbf1ffdb
Now as what to do about it, I don't know... The host seems to have very old
software, maybe now is the time for an upgrade...
--
Vincent Legoll
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: viewcvs: Python error
2011-06-24 11:37 ` Vincent Legoll
@ 2011-06-24 18:42 ` Ian Lance Taylor
2011-07-01 18:59 ` Georg-Johann Lay
0 siblings, 1 reply; 5+ messages in thread
From: Ian Lance Taylor @ 2011-06-24 18:42 UTC (permalink / raw)
To: Vincent Legoll; +Cc: Georg-Johann Lay, gcc, overseers
Vincent Legoll <vincent.legoll@gmail.com> writes:
> This may be the changeset that broke pygments running on older
> pythons (< 2.4):
>
> https://bitbucket.org/birkenfeld/pygments-main/changeset/8d3fbbf1ffdb
>
> Now as what to do about it, I don't know... The host seems to have very old
> software, maybe now is the time for an upgrade...
Thanks for identifying the patch. I applied the reverse patch manually
to gcc.gnu.org, and the problem appears to be fixed, at least for now.
Ian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: viewcvs: Python error
2011-06-24 18:42 ` Ian Lance Taylor
@ 2011-07-01 18:59 ` Georg-Johann Lay
2011-07-01 20:52 ` Ian Lance Taylor
0 siblings, 1 reply; 5+ messages in thread
From: Georg-Johann Lay @ 2011-07-01 18:59 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: Vincent Legoll, gcc, overseers
Ian Lance Taylor schrieb:
> Vincent Legoll writes:
>
>>This may be the changeset that broke pygments running on older
>>pythons (< 2.4):
>>
>>https://bitbucket.org/birkenfeld/pygments-main/changeset/8d3fbbf1ffdb
>
> Thanks for identifying the patch. I applied the reverse patch manually
> to gcc.gnu.org, and the problem appears to be fixed, at least for now.
>
> Ian
Hi, thanks for the fix, but it appears the revert changed bit too much.
This issue has returned:
http://gcc.gnu.org/ml/gcc/2011-04/msg00336.html
Johann
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: viewcvs: Python error
2011-07-01 18:59 ` Georg-Johann Lay
@ 2011-07-01 20:52 ` Ian Lance Taylor
0 siblings, 0 replies; 5+ messages in thread
From: Ian Lance Taylor @ 2011-07-01 20:52 UTC (permalink / raw)
To: Georg-Johann Lay; +Cc: Vincent Legoll, gcc, overseers
> Ian Lance Taylor schrieb:
>
>> Thanks for identifying the patch. I applied the reverse patch manually
>> to gcc.gnu.org, and the problem appears to be fixed, at least for now.
>>
>> Ian
>
> Hi, thanks for the fix, but it appears the revert changed bit too
> much. This issue has returned:
>
> http://gcc.gnu.org/ml/gcc/2011-04/msg00336.html
Thanks. Fixed again.
(That happened when I updated the viewvc package, it wasn't due to the
change I made.)
Ian
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-07-01 20:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <BANLkTimu033Mmx21_chkdf78aQGyTFOoDg@mail.gmail.com>
2011-06-24 10:02 ` viewcvs: Python error Georg-Johann Lay
2011-06-24 11:37 ` Vincent Legoll
2011-06-24 18:42 ` Ian Lance Taylor
2011-07-01 18:59 ` Georg-Johann Lay
2011-07-01 20:52 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).