Modify

Opened 7 years ago

Closed 7 years ago

#2446 closed defect (fixed)

Problem with DoxygenPlugin and trac 0.11b1

Reported by: anonymous Owned by: cboos
Priority: high Component: DoxygenPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I try to install the doxygen plugin with trac 0.11b1. It doesn't work, I have the following problem :

Trac detected an internal error:

AssertionError: HDF dataset not available. Check your clearsilver installation

Python Traceback Most recent call last:

  • File "c:\program files\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\main.py", line 398, in _dispatch_request Code fragment:
    1. try:
    2. if not env and env_error:
    3. raise HTTPInternalError(env_error)
    4. try:
    5. dispatcher = RequestDispatcher(env)
    6. dispatcher.dispatch(req)
    7. except RequestDone:
    8. pass
    9. resp = req._response or []
    10. except HTTPException, e:
    Local variables: Name Value after [' except RequestDone:', ' pass', ' resp = ... before [' try:', ' if not env and env_error:', ' raise ... dispatcher <trac.web.main.RequestDispatcher object at 0x01512550> e AssertionError('HDF dataset not available. Check your clearsilver ... env <trac.env.Environment object at 0x0104B7F0> env_error None exc_info (<type 'exceptions.AssertionError'>, AssertionError('HDF dataset not ... filename 'c:
    program ... frames [{'function': '_dispatch_request', 'lines_before': [' try:', ' ... has_admin True line ' dispatcher.dispatch(req)' lineno 397 message u'AssertionError: HDF dataset not available. Check your clearsilver ... req <Request "GET u'/doxygen/'"> resp [] tb <traceback object at 0x0170D878> tb_hide None traceback 'Traceback (most recent call last):\n File "c:
    program ...
  • File "c:\program files\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\main.py", line 204, in dispatch Code fragment:
    1. template, content_type = \
    2. self._post_process_request(req, *resp)
    3. # Give the session a chance to persist changes
    4. if req.session:
    5. req.session.save()
    6. req.display(template, content_type or 'text/html')
    7. else: # Genshi
    8. template, data, content_type = \
    9. self._post_process_request(req, *resp)
    10. if 'hdfdump' in req.args:
    11. req.perm.require('TRAC_ADMIN')
    Local variables: Name Value chosen_handler <doxygentrac.doxygentrac.DoxygenPlugin object at 0x015127D0> chrome <trac.web.chrome.Chrome object at 0x011CEEF0> content_type 'text/html' err (<type 'exceptions.AssertionError'>, AssertionError('HDF dataset not ... handler <doxygentrac.doxygentrac.DoxygenPlugin object at 0x015127D0> req <Request "GET u'/doxygen/'"> resp ('doxygen.cs', 'text/html') self <trac.web.main.RequestDispatcher object at 0x01512550> template 'doxygen.cs'
  • File "c:\program files\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\api.py", line 297, in display Code fragment:
    1. def display(self, template, content_type='text/html', status=200):
    2. """Render the response using the ClearSilver template given by the
    3. template parameter, which can be either the name of the template file,
    4. or an already parsed neo_cs.CS object.
    5. """
    6. assert self.hdf, 'HDF dataset not available. Check your clearsilver installation'
    7. if self.args.has_key('hdfdump'):
    8. # FIXME: the administrator should probably be able to disable HDF
    9. # dumps
    10. self.perm.require('TRAC_ADMIN')
    11. content_type = 'text/plain'
    Local variables: Name Value content_type 'text/html' self <Request "GET u'/doxygen/'"> status 200 template 'doxygen.cs'

File "c:\program files\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\main.py", line 398, in _dispatch_request

dispatcher.dispatch(req)

File "c:\program files\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\main.py", line 204, in dispatch

req.display(template, content_type or 'text/html')

File "c:\program files\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\web\api.py", line 297, in display

assert self.hdf, 'HDF dataset not available. Check your clearsilver installation'

System Information:

User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Trac: 0.11b1 Python: 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] setuptools: 0.6c7 SQLite: 3.3.4 pysqlite: 2.3.2 Genshi: 0.4.4 Subversion: 1.4.6 (r28521) jQuery: 1.2.1

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by Blackhex

According to revision history cboos didn't make any further changes to 0.11 branch than just copy of 0.10 branch. This means that DoxygenPlugin is not ready for 0.11 anyhow.

comment:2 Changed 7 years ago by Blackhex

  • Owner changed from Blackhex to cboos

comment:3 Changed 7 years ago by cboos

  • Keywords assersion removed
  • Priority changed from normal to high

There are actually some changes: diff:doxygenplugin/0.10@1983//doxygenplugin/0.11@2069

Seems to work "fine"(*) with 0.11 for me, but yes, it seems there's still only a clearsilver plugin. Strange, I thought I did the migration once, that shouldn't be a big deal.

(*) "fine" as in: there's a lot of issues with this plugin - I don't even know where I'd start with if I had the time to do so ;-) )

comment:4 Changed 7 years ago by cboos

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

(In [3132]) Finalize porting to 0.11 (tested with [trac 6391]).

I remember now why I kept the Clearsilver template... I was a bit reluctant to have to read the doxygen generated files in memory.

So those changes will have a slight performance/memory impact, until Genshi supports raw includes (and more efficient streaming).

Should fix #2446.

Add Comment

Modify Ticket

Action
as closed The owner will remain cboos.
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.