Modify

Opened 6 years ago

Closed 6 years ago

#3149 closed defect (fixed)

NameError: global name 'get_path_rev_line' is not defined

Reported by: wbranderson@… Owned by: proofek
Priority: normal Component: PeerReviewPlugin
Severity: normal Keywords: get_path_rev_line not defined error
Cc: Trac Release: 0.11

Description

When attempting to change a ticket's "cc:" fields and close the ticket, I obtained the following error. The PeerReview plugin is making the last call (where the error occurs, but I understand that the call is originating from the autoquery plugin. If this issue is in the autoquery plugin, please let me know and I will post the ticket there.

Anyway, the error reported by Trac is the ticket summary:

"NameError: global name 'get_path_rev_line' is not defined"

The traceback is below.

File "C:\Python24\lib\site-packages\autoquery-0.1.2-py2.4.egg\autoquery\templates\autoquery_ticket.html", line 72, in <Expression u'wiki_to_html(context, change.comment, escape_newlines=preserve_newlines)'>

${wiki_to_html(context, change.comment, escape_newlines=preserve_newlines)}

File "c:\python24\lib\site-packages\Trac-0.11rc1-py2.4.egg\trac\util\compat.py", line 130, in newfunc

return func_(*(args + fargs), dict(kwargs, fkwargs))

File "c:\python24\lib\site-packages\Trac-0.11rc1-py2.4.egg\trac\wiki\formatter.py", line 1094, in format_to_html

return HtmlFormatter(env, context, wikidom).generate(escape_newlines)

File "c:\python24\lib\site-packages\Trac-0.11rc1-py2.4.egg\trac\wiki\formatter.py", line 1053, in generate

escape_newlines)

File "c:\python24\lib\site-packages\Trac-0.11rc1-py2.4.egg\trac\wiki\formatter.py", line 862, in format

result = re.sub(self.wikiparser.rules, self.replace, line)

File "C:\Python24\lib\sre.py", line 142, in sub

return _compile(pattern, 0).sub(repl, string, count)

File "c:\python24\lib\site-packages\Trac-0.11rc1-py2.4.egg\trac\wiki\formatter.py", line 807, in replace

replacement = self.handle_match(fullmatch)

File "c:\python24\lib\site-packages\Trac-0.11rc1-py2.4.egg\trac\wiki\formatter.py", line 803, in handle_match

return internal_handler(match, fullmatch)

File "c:\python24\lib\site-packages\Trac-0.11rc1-py2.4.egg\trac\wiki\formatter.py", line 374, in _lhref_formatter

return self._make_link(ns, target, match, label)

File "c:\python24\lib\site-packages\Trac-0.11rc1-py2.4.egg\trac\wiki\formatter.py", line 381, in _make_link

escape(label, False))

File "build\bdist.win32\egg\codereview\peerReviewBrowser.py", line 285, in _format_link

I am running:

User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Trac: 0.11rc1
Python: 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)]
setuptools: 0.6c7
SQLite: 3.4.0
pysqlite: 2.3.5
Genshi: 0.5dev-r855
Subversion: 1.4.2 (r22196)
jQuery: 1.2.3

Any help in resolving the issue would be appreciated!

Brett

Attachments (0)

Change History (7)

comment:1 follow-up: Changed 6 years ago by anonymous

Which version of the plugin are u using?

comment:2 in reply to: ↑ 1 ; follow-up: Changed 6 years ago by wbranderson@…

Replying to anonymous:

Which version of the plugin are u using?

I am using the 2.0dev plugin version.

comment:3 in reply to: ↑ 2 Changed 6 years ago by proofek

Replying to wbranderson@gmail.com:

Replying to anonymous:

Which version of the plugin are u using?

I am using the 2.0dev plugin version.

When and how did you obtain/install it?

comment:4 follow-up: Changed 6 years ago by wbranderson@…

I checked it out of the repository (the 0.11 directory, I do believe) on June 3 and installed it with easy_install. The egg was created on June 3rd at 3:08 PM EST.

comment:5 in reply to: ↑ 4 ; follow-up: Changed 6 years ago by proofek

Replying to wbranderson@gmail.com:

I checked it out of the repository (the 0.11 directory, I do believe) on June 3 and installed it with easy_install. The egg was created on June 3rd at 3:08 PM EST.

I think I fixed that on the 5th. Can you update it now (trunk or 0.11) and let me know if you still have this problems?

comment:6 in reply to: ↑ 5 Changed 6 years ago by anonymous

Replying to proofek:

Replying to wbranderson@gmail.com:

I checked it out of the repository (the 0.11 directory, I do believe) on June 3 and installed it with easy_install. The egg was created on June 3rd at 3:08 PM EST.

I think I fixed that on the 5th. Can you update it now (trunk or 0.11) and let me know if you still have this problems?

I'll upgrade tomorrow when I get into work and will let you know what happens. Thanks for the help.

comment:7 Changed 6 years ago by wbranderson@…

  • Resolution set to fixed
  • Status changed from new to closed

Just checked out the head rev from 0.11, cooked the egg, and all is well. Problem solved!

Thanks for the help.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.