Opened 6 years ago

Closed 6 years ago

#2529 closed defect (fixed)

Plugin fails with Trac 0.11b1

Reported by: Ferns Owned by: cboos
Priority: lowest Component: DoxygenPlugin
Severity: trivial Keywords:
Cc: Trac Release: 0.11


Trac: 0.11b1
Python version: 2.5
Server: Tracd
OS: Windows

I have a complete fresh installation of Trac 0.11b and tried to add the doxygen plugin.
I have downloaded the source and ran the setup:
python bdist_egg


running bdist_egg
running egg_info
writing TracDoxygen.egg-info\PKG-INFO
writing top-level names to TracDoxygen.egg-info\top_level.txt
writing dependency_links to TracDoxygen.egg-info\dependency_links.txt
writing entry points to TracDoxygen.egg-info\entry_points.txt
reading manifest file 'TracDoxygen.egg-info\SOURCES.txt'
writing manifest file 'TracDoxygen.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build\bdist.win32\egg
creating build\bdist.win32\egg\doxygentrac
copying build\lib\doxygentrac\ -> build\bdist.win32\egg\doxygentrac
creating build\bdist.win32\egg\doxygentrac\htdocs
creating build\bdist.win32\egg\doxygentrac\htdocs\css
copying build\lib\doxygentrac\htdocs\css\doxygen.css -> build\bdist.win32\egg\doxygentrac\htdocs\css
copying build\lib\doxygentrac\ -> build\bdist.win32\egg\doxygentrac
byte-compiling build\bdist.win32\egg\doxygentrac\ to doxygentrac.pyc
byte-compiling build\bdist.win32\egg\doxygentrac\ to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
copying TracDoxygen.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying TracDoxygen.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying TracDoxygen.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
copying TracDoxygen.egg-info\entry_points.txt -> build\bdist.win32\egg\EGG-INFO
copying TracDoxygen.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
copying TracDoxygen.egg-info\zip-safe -> build\bdist.win32\egg\EGG-INFO
creating 'dist\TracDoxygen-' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)

I moved the egg to the plugin directory, set the trac.ini and restarted the tracd server.
However, after I select my project I get the following error in Internet Explorer:

Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\trac\web\", line 339, in send_error
  File "C:\Python25\Lib\site-packages\trac\web\", line 651, in render_template
    template = self.load_template(filename, method=method)
  File "C:\Python25\Lib\site-packages\trac\web\", line 627, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "C:\Python25\Lib\site-packages\trac\web\", line 390, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build\bdist.win32\egg\doxygentrac\", line 186, in get_templates_dirs
    return [resource_filename(__name__, 'templates')]
  File "C:\Python25\lib\site-packages\", line 841, in resource_filename
    self, resource_name
  File "C:\Python25\lib\site-packages\", line 1311, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "C:\Python25\lib\site-packages\", line 1322, in _extract_resource
    zip_stat = self.zipinfo[zip_path]
  KeyError: 'doxygentrac\\templates'

Only completely removing the egg seems "fix" this problem. I previously had trac 0.9.3 with the doxygenplugin (not sure what version, about two years old I guess) and that has always worked perfectly.

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by Ferns

  • Priority changed from normal to lowest
  • Resolution set to fixed
  • Severity changed from blocker to trivial
  • Status changed from new to closed

See ticket #2492 on how to fix this.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from cboos. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.