Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#4882 closed defect (fixed)

templates skipped during installation

Reported by: theultramage+trac@… Owned by: Matthew Good
Priority: high Milestone: 0.11
Component: general Version: devel
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

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 (0)

Change History (7)

comment:1 by Matthew Good, 17 years ago

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.

comment:2 by anonymous, 17 years ago

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?

comment:3 by Christian Boos, 17 years ago

Which version of setuptools are you using?

in reply to:  2 comment:4 by Matthew Good, 17 years ago

Milestone: 0.11
Owner: changed from Jonas Borgström to Matthew Good
Status: newassigned

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.

comment:5 by Matthew Good, 17 years ago

Keywords: needinfo removed

comment:6 by Matthew Good, 17 years ago

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

comment:7 by Matthew Good, 17 years ago

Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good 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.