Opened 17 years ago
Closed 17 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)
Change History (7)
by , 17 years ago
by , 17 years ago
| Attachment: | helloworld.py added | 
|---|
by , 17 years ago
| Attachment: | __init__.py added | 
|---|
by , 17 years ago
| Attachment: | helloworld.html added | 
|---|
comment:1 by , 17 years ago
comment:2 by , 17 years ago
| Severity: | normal → trivial | 
|---|
comment:3 by , 17 years ago
| Priority: | normal → lowest | 
|---|---|
| Resolution: | → invalid | 
| Status: | new → closed | 
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 
ITemplateProvidercorrectly, file missing or wrongly named, orsetup.pydefined 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.



  
/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/