Roundup Tracker - Issues

Issue 2550841

classification
roundup-demo templates not found in virtualenv
Type: behavior Severity: normal
Components: Installation, Command-line interface Versions: 1.5
process
Status: closed fixed
:
: jerrykan : jerrykan
Priority: normal :

Created on 2014-05-05 05:52 by jerrykan, last changed 2014-06-26 05:48 by jerrykan.

Messages
msg5096 Author: [hidden] (jerrykan) Date: 2014-05-05 05:52
It seems as though when roundup is installed in a virtualenv the
roundup-demo script is unable to find the templates.

Tested on Debian testing with:

  roundup 1.5.0
  virtualenv 1.11.4

Steps to reproduce:

 # virtualenv venv
 # source venv/bin/activate
 # pip install roundup
 # roundup-demo

This seems to be caused by the templates being installed into:

  venv/share/roundup/templates/

but the 'roundup.admin' module imported by the 'roundup-script' is from:

  venv/local/lib/python2.7/site-packages/roundup/admin.py

which in turn (via AdminTool.listTemplates()) is looking for templates in:

  venv/local/lib/python2.7/site-packages/share/roundup/templates
  venv/local/lib/share/roundup/templates
  venv/local/share/roundup/templates

but the templates are located in:

  venv/share/roundup/templates

and there is no symlink for:

  venv/local/share -> venv/share


I am guessing this also will cause problems from 'roundup admin install'.

A temporary workaround for anyone experiencing this issue is to create a
new symlink after initialising the virtualenv:

  ln -s ../share venv/local/share
msg5110 Author: [hidden] (jerrykan) Date: 2014-06-26 05:48
Fix committed in http://sourceforge.net/p/roundup/code/ci/349a83a
History
Date User Action Args
2014-06-26 05:48:20jerrykansetstatus: new -> closed
assignee: jerrykan
resolution: fixed
messages: + msg5110
2014-05-05 11:15:47ThomasAHsetpriority: high -> normal
2014-05-05 05:52:56jerrykansettype: behavior
components: + Installation, Command-line interface
versions: + 1.5
2014-05-05 05:52:08jerrykancreate