Modify

Ticket #1121 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

bcfg2 reports fail with the newest version(1.4) of Django

Reported by: https://www.google.com/accounts/o8/id?id=AItOawmLDr6_IwcM-7CHU5E2-UFkuqAyk1X0LFk Owned by: desai
Priority: major Milestone: Bcfg2 1.3.0 Release
Component: bcfg2-reports Version: 1.0
Keywords: Cc:

Description

Hi,

I tried to setup the bcfg2-1.2.3 report with Django-1.4 which is the newest version on July 18, 2012 and I found that it has some issues with the following full traceback.

As Jerome suggested, I tried to comment out one of the two templates or both, the templates error did not disappear.

While this bug is fixed, I tried to use Django-1.3 and it seems to work fine for the bcfg2 report.

Environment:


Request Method: GET
Request URL: http://leopard.crest.iu.edu/bcfg2/grid

Django Version: 1.4
Python Version: 2.6.6
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'Bcfg2.Server.Reports.reports')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware')


Traceback:
File "/usr/lib/python2.6/site-packages/Django-1.4-py2.6.egg/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/Reports/reports/views.py" in _handle_timeview
  82.         return fn(request, **kwargs)
File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/Reports/reports/views.py" in client_index
  169.                               context_instance=RequestContext(request))
File "/usr/lib/python2.6/site-packages/Django-1.4-py2.6.egg/django/shortcuts/__init__.py" in render_to_response
  20.     return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/usr/lib/python2.6/site-packages/Django-1.4-py2.6.egg/django/template/loader.py" in render_to_string
  169.         t = get_template(template_name)
File "/usr/lib/python2.6/site-packages/Django-1.4-py2.6.egg/django/template/loader.py" in get_template
  145.     template, origin = find_template(template_name)
File "/usr/lib/python2.6/site-packages/Django-1.4-py2.6.egg/django/template/loader.py" in find_template
  128.             loader = find_template_loader(loader_name)
File "/usr/lib/python2.6/site-packages/Django-1.4-py2.6.egg/django/template/loader.py" in find_template_loader
  101.             raise ImproperlyConfigured('Error importing template source loader %s: "%s"' % (loader, e))

Exception Type: ImproperlyConfigured at /grid
Exception Value: Error importing template source loader django.template.loaders.filesystem.load_template_source: "'module' object has no attribute 'load_template_source'"

Attachments

Change History

comment:1 Changed 10 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.