Edgewall Software

Ticket #4882 (closed defect: fixed)

Opened 17 months ago

Last modified 17 months ago

templates skipped during installation

Reported by: theultramage+trac@… Owned by: mgood
Priority: high Milestone: 0.11
Component: general Version: devel
Severity: major Keywords:
Cc:

Description

Since r4819 trac will not install nor run properly, since the installer doesn't add the relevant files&dirs to /share.

File "C:\\UNIX\\bin\\python\\Lib\\site-packages\\mod_python\\importer.py", line 1537, in HandlerDispatch\n    default=default_handler, arg=req, silent=hlist.silent)
File "C:\\UNIX\\bin\\python\\Lib\\site-packages\\mod_python\\importer.py", line 1229, in _process_target\n    result = _execute_target(config, req, object, arg)
File "C:\\UNIX\\bin\\python\\Lib\\site-packages\\mod_python\\importer.py", line 1128, in _execute_target\n    result = object(arg)
File "c:\\unix\\bin\\python\\lib\\site-packages\\Trac-0.11dev-py2.5.egg\\trac\\web\\modpython_frontend.py", line 91, in handler\n    gateway.run(dispatch_request)
File "c:\\unix\\bin\\python\\lib\\site-packages\\Trac-0.11dev-py2.5.egg\\trac\\web\\wsgi.py", line 87, in run\n    response = application(self.environ, self._start_response)
File "c:\\unix\\bin\\python\\lib\\site-packages\\Trac-0.11dev-py2.5.egg\\trac\\web\\main.py", line 385, in dispatch_request\n    env_paths)
File "c:\\unix\\bin\\python\\lib\\site-packages\\Trac-0.11dev-py2.5.egg\\trac\\web\\main.py", line 527, in send_project_index\n    markuptemplate = TemplateLoader(loadpaths).load(template)
File "build\\bdist.win32\\egg\\genshi\\template\\loader.py", line 188, in load\n    raise TemplateNotFound(filename, search_path)
TemplateNotFound: Template "index.html" not found

Adding them there manually won't work due to some missing directory setup or something. Dumping the content of the previous /share/trac into the main directory does the trick (as a quick workaround).

Attachments

Change History

  Changed 17 months ago by mgood

  • keywords needinfo added

Since r4819 the templates are not supposed to go in the /share folder. Like the plugins, Trac now stores the templates in the source tree and uses the setuptools APIs to resolve their location. Based on your information you should find "index.html" in "c:\unix\bin\python\lib\site-packages\Trac-0.11dev-py2.5.egg\trac\templates". How did you download and install Trac? When building Trac from an SVN checkout the revision number should be included in the version number of the egg (Trac-0.11dev-r4819-py2.5.egg). Also check that you've removed any old installations of Trac from the site-packages directory.

follow-up: ↓ 4   Changed 17 months ago by anonymous

I use trac latest trunk, and install it from a svk checkout using "python setup.py install". I always delete all previous files. Python 2.5 is used btw.

I've inspected the egg file (and the extracted content), there is no /templates directory, and no html files in there at all. Could setuptools/windows/python be messing with it?

  Changed 17 months ago by cboos

Which version of setuptools are you using?

in reply to: ↑ 2   Changed 17 months ago by mgood

  • owner changed from jonas to mgood
  • status changed from new to assigned
  • milestone set to 0.11

Replying to anonymous:

I use trac latest trunk, and install it from a svk checkout using "python setup.py install".

At least for now you'll need to check it out via regular SVN, not SVK. When installing from an SVN working copy setuptools can tell which files are under version control and makes sure they're included. Since SVK doesn't keep the .svn folders setuptools can't tell which files are versioned, so it only includes Python source files.

I'll update setup.py to be more explicit about which files need packaged, though you may want to install development versions from SVN anyways so that you can see the revision number in the Trac version.

  Changed 17 months ago by mgood

  • keywords needinfo removed

  Changed 17 months ago by mgood

The same issue also applies to the SpamFilter plugin (#4869).

  Changed 17 months ago by mgood

  • status changed from assigned to closed
  • resolution set to fixed

This has been fixed in r4979:4980 for Trac and r4981 for the SpamFilter.

Add/Change #4882 (templates skipped during installation)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.