Error evolving score systems

Bug #882656 reported by Gediminas Paulauskas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool Gradebook
Fix Released
High
Gediminas Paulauskas

Bug Description

From Bug #857539 Comment #10

2011-10-20 19:37:00,237 main db: evolving in mode EVOLVEMINIMUM
2011-10-20 19:37:00,238 main db/schooltool.requirement: running install
generation
2011-10-20 19:37:00,268 main db/schooltool.requirement: failed to run install
Traceback (most recent call last):
 File "/usr/lib/python2.7/dist-packages/zope/app/generations/generations.py",
line 450, in evolve
   manager.install(context)
 File "/usr/lib/python2.7/dist-packages/zope/app/generations/generations.py",
line 160, in install
   evolver.evolve(context)
 File "/usr/lib/python2.7/dist-
packages/schooltool/requirement/generations/install.py", line 30, in evolve
   evolve1.evolve(context)
 File "/usr/lib/python2.7/dist-
packages/schooltool/requirement/generations/evolve1.py", line 67, in evolve
   removeUtils(site_manager, ICustomScoreSystem)
 File "/usr/lib/python2.7/dist-
packages/schooltool/requirement/generations/evolve1.py", line 46, in
removeUtils
   assert n_provided == n_utils
AssertionError

An assert in evolution script is nasty, because if it is hit, application cannot start. But this is a case that "we do not handle", although I don't know how that could happen.

This code in was added to gradebook after 0.9.0 (post-Natty)

Revision history for this message
Gediminas Paulauskas (menesis) wrote :

Maybe schooltool.gradebook.generations.evolve1 has not run? But this would be a very old schooltool (1.2 or earlier)

Revision history for this message
Gediminas Paulauskas (menesis) wrote :

Ikpeer: you can try installing an earlier version of gradebook. Get it from
http://packages.ubuntu.com/natty/python-schooltool.gradebook

and install with

$ sudo dpkg --install python-schooltool.gradebook_0.9.0-0ubuntu1_all.deb

SchoolTool should now start without this error.

Then, you can upgrade gradebook again to the version from oneiric. Maybe this time evolution will succeed.

Revision history for this message
Ikpeer (ikpeer) wrote :

This has worked very well. I can use the database again - which is quite important for me. Thank you very, very much!

Before the upgrade to Oneiric I used Natty with the package Schooltool-2009 (Schooltool 1.6?). I started the usual upgrade and after this schooltool didn't start up anymore.

Nevertheless I am ready to test new versions - if only I have a functional production version ready.

Thank you for your work on schooltool.

Changed in schooltool.gradebook:
assignee: nobody → Justas Sadzevičius (justas-pov)
Revision history for this message
Gediminas Paulauskas (menesis) wrote :

I have tried to resolve this in http://bazaar.launchpad.net/~schooltool-owners/schooltool.gradebook/flourish/revision/381

released as 1.9.2

Not sure if this change solves the problem, or it was enough to run an older version first, but marking this as fixed.

Changed in schooltool.gradebook:
milestone: none → 1.9.2
assignee: Justas Sadzevičius (justas-pov) → Gediminas Paulauskas (menesis)
importance: Undecided → High
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.