Journal attendance export report broke by today access

Bug #1341519 reported by romsihackximus on 2014-07-14
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SchoolTool Journal
Medium
Douglas Cerna

Bug Description

System failure while generating export. Ticket nr. d7250a38-e9c2-4efc-81cd-91c73c072985.

Douglas Cerna (replaceafill) wrote :

Could you please attach the following files:

/var/log/schooltool/celery_report.log
/var/log/schooltool/error.log
/var/log/schooltool/paste.log

Thanks.

Changed in schooltool:
status: New → Incomplete
importance: Undecided → Medium
assignee: nobody → Douglas Cerna (replaceafill)
Download full text (36.4 KiB)

I am having the same issue in Exporting Journal Attendance.

"System failure.

Ticket nr. e9cd51d9-c666-48c5-985e-0a5b97b292f6.

Please contact your administrator."

Traceback
File "/usr/lib/python2.7/dist-packages/schooltool/task/tasks.py", line 184, in runTransaction
  result = callable(*args, **kw)
File "/usr/lib/python2.7/dist-packages/schooltool/report/report.py", line 451, in execute
  report_file = self.renderToFile(renderer, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/schooltool/report/report.py", line 500, in renderToFile
  self.renderReport(renderer, stream, *args, **kw)
File "/usr/lib/python2.7/dist-packages/schooltool/export/export.py", line 934, in renderReport
  workbook = renderer(*args, **kw)
File "/usr/lib/python2.7/dist-packages/schooltool/lyceum/journal/browser/journal.py", line 1965, in __call__
  self.export_month_worksheets(workbook)
File "/usr/lib/python2.7/dist-packages/schooltool/lyceum/journal/browser/journal.py", line 1946, in export_month_worksheets
  self.print_grades(ws, nm, len(months))
File "/usr/lib/python2.7/dist-packages/schooltool/lyceum/journal/browser/journal.py", line 1923, in print_grades
  table = sorted(self.table(), key=lambda x:self.studentSortKey)
File "/usr/lib/python2.7/dist-packages/schooltool/lyceum/journal/browser/journal.py", line 1242, in table
  active_students = students.on(self.request.util.today).any(ACTIVE)

Traceback
File "/usr/lib/python2.7/dist-packages/schooltool/task/tasks.py", line 211, in __call__
  result = self.runTransaction('execute', True, self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/schooltool/task/tasks.py", line 201, in runTransaction
  raise failure

CELERY REPORT LOG ###################

[2014-09-02 14:43:09,524: WARNING/PoolWorker-1] Exception

'RemoteReportRequest' object has no attribute 'util'

Traceback

File "/usr/lib/python2.7/dist-packages/schooltool/task/tasks.py", line 184, in runTransaction
  result = callable(*args, **kw)
File "/usr/lib/python2.7/dist-packages/schooltool/report/report.py", line 451, in execute
  report_file = self.renderToFile(renderer, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/schooltool/report/report.py", line 500, in renderToFile
  self.renderReport(renderer, stream, *args, **kw)
File "/usr/lib/python2.7/dist-packages/schooltool/export/export.py", line 934, in renderReport
  workbook = renderer(*args, **kw)
File "/usr/lib/python2.7/dist-packages/schooltool/lyceum/journal/browser/journal.py", line 1965, in __call__
  self.export_month_worksheets(workbook)
File "/usr/lib/python2.7/dist-packages/schooltool/lyceum/journal/browser/journal.py", line 1946, in export_month_worksheets
  self.print_grades(ws, nm, len(months))
File "/usr/lib/python2.7/dist-packages/schooltool/lyceum/journal/browser/journal.py", line 1923, in print_grades
  table = sorted(self.table(), key=lambda x:self.studentSortKey)
File "/usr/lib/python2.7/dist-packages/schooltool/lyceum/journal/browser/journal.py", line 1242, in table
  active_students = students.on(self.request.util.today).any(ACTIVE)

Exception

ExceptionWithTraceback (AttributeError('RemoteReportRequest' object has no attribute 'util',))

Traceback

File "/usr/l...

Changed in schooltool:
status: Incomplete → Confirmed
affects: schooltool → schooltool.lyceum.journal
summary: - Please contact your administrator.
+ Journal attendance export report broke by today access
Douglas Cerna (replaceafill) wrote :

Thanks Patrick. I just fixed this issue and it should be included in the next release.

Changed in schooltool.lyceum.journal:
status: Confirmed → Fix Committed
Changed in schooltool.lyceum.journal:
milestone: none → 2.8.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers