Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7907 closed defect (invalid)

TemplateNotFound: Template "helloworld.html" not found

Reported by: admin Owned by:
Priority: lowest Milestone:
Component: general Version: 0.11b1
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /helloworld, Trac issued an internal error.

(please provide additional details here)

System Information

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.5.2
pysqlite 2.4.0
Genshi 0.4.4
Subversion 1.4.6 (r28521)

Python Traceback

Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\trac\web\main.py", line 398, in _dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python25\Lib\site-packages\trac\web\main.py", line 217, in dispatch
    data, content_type)
  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 635, in load_template
    return self.templates.load(filename, cls=cls)
  File "C:\Python25\Lib\site-packages\genshi\template\loader.py", line 214, in load
    raise TemplateNotFound(filename, search_path)
TemplateNotFound: Template "helloworld.html" not found

Attachments (4)

setup.py (392 bytes ) - added by anonymous 16 years ago.
helloworld.py (790 bytes ) - added by anonymous 16 years ago.
__init__.py (45 bytes ) - added by anonymous 16 years ago.
helloworld.html (448 bytes ) - added by anonymous 16 years ago.

Download all attachments as: .zip

Change History (7)

by anonymous, 16 years ago

Attachment: setup.py added

by anonymous, 16 years ago

Attachment: helloworld.py added

by anonymous, 16 years ago

Attachment: __init__.py added

by anonymous, 16 years ago

Attachment: helloworld.html added

comment:1 by anonymous, 16 years ago

/helloworld-plugin/setup.py /helloworld-plugin/helloworld/init.py /helloworld-plugin/helloworld/helloworld.py /helloworld-plugin/templates/helloworld.html /helloworld-plugin/htdocs/css/ /helloworld-plugin/htdocs/images/

comment:2 by Emmanuel Blot, 16 years ago

Severity: normaltrivial

comment:3 by osimons, 16 years ago

Priority: normallowest
Resolution: invalid
Status: newclosed

From filenames, I suppose you are trying the tutorial from trac-hacks.org or something. So, not really a Trac problem and I don't have time to look at your code. I'll provide you with some pointers and then close the ticket - please use the MailingList or IrcChannel to ask further questions.

Why the template isn't found can be any of a number of reasons, like:

  • You are running Trac beta 1 of 0.11, and that is not supported and may be different from the release 0.11 - upgrade to 0.11.2
  • You are running Genshi 0.4.4, while requirements for Trac 0.11 states that Genshi 0.5+ is needed
  • Plugin isn't installed correctly and cannot be found
  • It is installed but not enabled in trac.ini
  • The code has errors preventing the plugin from loading
  • The plugin does not implement ITemplateProvider correctly, file missing or wrongly named, or setup.py defined incorrectly so that files don't get installed
  • And so on…

First upgrade your software, then use TracLogging for further details on what actually happens in your installation as everything loads and requests are served.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.