Modify

Opened 16 years ago

Closed 16 years ago

#2529 closed defect (fixed)

Plugin fails with Trac 0.11b1

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

Description

DoxygenPlugin: 0.11.0.1 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 setup.py bdist_egg

Output:

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\doxygentrac.py -> 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\__init__.py -> build\bdist.win32\egg\doxygentrac
byte-compiling build\bdist.win32\egg\doxygentrac\doxygentrac.py to doxygentrac.pyc
byte-compiling build\bdist.win32\egg\doxygentrac\__init__.py 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-0.11.0.1-py2.5.egg' 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\api.py", line 339, in send_error
    'text/html')
  File "C:\Python25\Lib\site-packages\trac\web\chrome.py", line 651, in render_template
    template = self.load_template(filename, method=method)
  File "C:\Python25\Lib\site-packages\trac\web\chrome.py", line 627, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "C:\Python25\Lib\site-packages\trac\web\chrome.py", line 390, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build\bdist.win32\egg\doxygentrac\doxygentrac.py", line 186, in get_templates_dirs
    return [resource_filename(__name__, 'templates')]
  File "C:\Python25\lib\site-packages\pkg_resources.py", line 841, in resource_filename
    self, resource_name
  File "C:\Python25\lib\site-packages\pkg_resources.py", line 1311, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "C:\Python25\lib\site-packages\pkg_resources.py", 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 16 years ago by Ferns

Priority: normallowest
Resolution: fixed
Severity: blockertrivial
Status: newclosed

See ticket #2492 on how to fix this.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.