Modify

Opened 5 years ago

Closed 3 years ago

#5540 closed defect (fixed)

TracDownloader crashes Trac

Reported by: anonymous Owned by: rjollos
Priority: high Component: TracDownloaderPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11

Description (last modified by rjollos)

Hi,

Whenever I have the TracDownloader egg installed (placed in plugins folder), I get this error message when trying to load any page on my trac:

Traceback (most recent call last):
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\api.py", line 367, in send_error
    'text/html')
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\chrome.py", line 708, in render_template
    data = self.populate_data(req, data)
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\chrome.py", line 618, in populate_data
    d['chrome'].update(req.chrome)
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\api.py", line 194, in __getattr__
    value = self.callbacks[name](self)
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\chrome.py", line 476, in prepare_request
    for category, name, text in contributor.get_navigation_items(req):
  File "build\bdist.win32\egg\tracdownloader\web_ui.py", line 53, in get_navigation_items
    self.env.href.downloader())
LookupError: unknown encoding: /my-project/downloader

How do I fix this?

Thanks.

Attachments (0)

Change History (7)

comment:1 Changed 5 years ago by anonymous

  • Severity changed from normal to critical

same error

Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\trac\web\api.py", line 377, in send_error
    'text/html')
  File "C:\Python25\Lib\site-packages\trac\web\chrome.py", line 725, in render_template
    req.chrome[type_].append(
  File "C:\Python25\Lib\site-packages\trac\web\api.py", line 195, in __getattr__
    value = self.callbacks[name](self)
  File "C:\Python25\Lib\site-packages\trac\web\chrome.py", line 489, in prepare_request
    for category, name, text in contributor.get_navigation_items(req):
  File "build\bdist.win32\egg\tracdownloader\web_ui.py", line 53, in get_navigation_items
    self.env.href.downloader())
LookupError: unknown encoding: /nge/downloader

This append only when the Downloader Module is enabled.

[components]
tracdownloader.admin.downloaderadminpage = enabled
tracdownloader.web_ui.downloadermodule = enabled

==> previous error messsage

[components]
tracdownloader.admin.downloaderadminpage = enabled
tracdownloader.web_ui.downloadermodule = disable

==> no error but no ui

the plugin has been installed globaly (because local .egg need dependencies and i don't found pycatpcha for py2.5)

comment:2 Changed 3 years ago by rjollos

  • Description modified (diff)
  • Owner changed from peca to rjollos
  • Status changed from new to assigned

comment:3 Changed 3 years ago by rjollos

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

(In [11234]) Fixes #5540: Fixed encoding error in defining the navigation item for the INavigationContributor interface.

comment:4 Changed 3 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:4 Changed 3 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:5 Changed 3 years ago by rjollos

You've reopened this, so I'm assuming you have more information to provide, like a description of why the fix isn't working for you?

comment:6 Changed 3 years ago by rjollos

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

In the future, please make a comment when reopening tickets.

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.