UndefinedError: "diff" not defined

0 views
Skip to first unread message

HeySeuss

unread,
Apr 3, 2007, 4:20:36 PM4/3/07
to Trac Users
I recently upgraded Trac to 0.11dev-r5182, after some nasty damage to
the system that it's hosted on. It was part of a fix/re-install of
Trac that was needed.

Now, though, whenever I'm editing pages and try to view the Preview
Page, I get an internal Trac Error of

UndefinedError: "diff" not defined

with most recent call last:

File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5182-py2.4.egg/
trac/wiki/templates/wiki_edit.html", line 49, in <Expression u"diff
and 'Review Changes' or 'Preview'">
<legend>${diff and 'Review Changes' or 'Preview'} (<a
href="#edit">skip</a>)</legend>

Further version info:
Trac: 0.11dev-r5182
Python: 2.4.3 (#1, Oct 23 2006, 14:19:47) [GCC 4.1.1 20060525 (Red
Hat 4.1.1-1)]
setuptools: 0.6c5
SQLite: 3.3.3
pysqlite: 1.1.7
Genshi: 0.4dev-r531
Subversion: 1.3.2 (r19776)


I would really appreciate any pointing in the right direction to try
and fix this, at least.

TIA,
-HS

Emmanuel Blot

unread,
Apr 3, 2007, 5:07:37 PM4/3/07
to trac-...@googlegroups.com
You need Genshi <= r509 to work with the current trunk.

HTH,
Manu


--
Manu

HeySeuss

unread,
Apr 4, 2007, 9:59:13 AM4/4/07
to Trac Users
Ah. My newb mistake. :) That fixed it right up, thank you for the
prompt response!

I'm fairly new to the whole 'bleeding-edge' thing, but I'm looking to
get into it. Is this information on the revision-dependencies
something that's announced via the dev list, or in the check-in
comments (or somewhere else)?

Thanks again,
-HS

Emmanuel Blot

unread,
Apr 4, 2007, 1:58:42 PM4/4/07
to trac-...@googlegroups.com
> I'm fairly new to the whole 'bleeding-edge' thing, but I'm looking to
> get into it. Is this information on the revision-dependencies
> something that's announced via the dev list, or in the check-in
> comments (or somewhere else)?

It has been discussed on the Trac-Dev (not announced AFAICT), it has
been shortly documented on the milestone:0.11 page, and most
important, the temporary dependency has been defined in the setup.py
file.

However, there have been very few temporary issues of this kind in the
trunk up to now. Bad luck ;-)

Cheers,
Manu

Reply all
Reply to author
Forward
0 new messages