Opened 7 years ago

Closed 4 years ago

Last modified 4 years ago

#8594 closed defect (fixed)

ttd/htdocs needs to have something in it

Reported by: branson Owned by: Alexander von Bremen-Kühne
Priority: normal Component: TicketTeamDispatcherPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


I had two hacks..


package_data={PACKAGE_SHORT: ['tpl/*','htdocs/*']},
mkdir ttd/htdocs
touch ttd/htdocs/empty.html

else you get errors such as:

2011-03-10 23:03:24,501 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/tracwysiwyg/wysiwyg-load.js'">
2011-03-10 23:03:24,510 Trac[module] INFO: Loading htdocs dir
2011-03-10 23:03:24,510 Trac[chrome] DEBUG: Prepare chrome data for request
2011-03-10 23:03:24,511 Trac[session] DEBUG: Retrieving session for ID 'branson'
2011-03-10 23:03:24,515 Trac[main] DEBUG: Negotiated locale: None -> en_US
2011-03-10 23:03:24,529 Trac[main] ERROR: Internal Server Error: 
Traceback (most recent call last):
  File "build/bdist.macosx-10.6-universal/egg/trac/web/", line 511, in _dispatch_request
  File "build/bdist.macosx-10.6-universal/egg/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.macosx-10.6-universal/egg/trac/web/", line 463, in process_request
    in provider.get_htdocs_dirs() or []
  File "build/bdist.macosx-10.6-universal/egg/ttd/", line 118, in get_htdocs_dirs
    return [('ttd', resource_filename(__name__, 'htdocs'))]
  File "/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 841, in resource_filename
    self, resource_name
  File "/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 1311, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 1322, in _extract_resource
    zip_stat = self.zipinfo[zip_path]
KeyError: ttd/htdocs

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by Ryan J Ollos

Resolution: duplicate
Status: newclosed

Duplicate of #8587.

comment:2 Changed 4 years ago by Ryan J Ollos

Resolution: duplicatefixed

In 13579:

0.3dev: Plugin does not have an htdocs directory, so get_htdocs_dir needs to return an empty list. Fixes #8587, #8594.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Alexander von Bremen-Kühne.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.