Comment 8 for bug 857539

Revision history for this message
Ikpeer (ikpeer) wrote : Re: [Bug 857539] Re: Unable to evolve timetables

Hi, everybody!

> I wonder why have you encountered this error if you "use schooltool
> every day".
>
> "flourish" series is in development still, so you would be installing
> this version only if you want to help us test that the new user
> interface. It is usable, but we are still fixing important bugs like
> this one.

Some days ago I upgraded to Ubuntu 11.10. After the upgrade schooltool didn't
start up anymore, because of the failing evolving. That's why I installed what
I thought of being the actual version (1.9.1). There are some days left,
because we have still autumn vacations here. But in the next week I will need
it badly again.

So which is the production version for "Oneiric ocelot"? Where should I get
the packages?

I did the compiling as you pointed me to, but the instance could not be
evolved (output see below).

Thank you very much for your support.

Andrej Keiper

---------------------------------------------------------------------------------------------------------------
root@aduola:/usr/src/flourish# make run
bin/start-schooltool-instance instance
Reading configuration from /usr/src/flourish/instance/schooltool.conf
2011-10-20 17:24:58,056 main db: evolving in mode EVOLVEMINIMUM
2011-10-20 17:24:58,057 main db/schooltool: currently at generation 35,
targetting generation 37
2011-10-20 17:24:58,106 Couldn't load state for 0x26
Traceback (most recent call last):
  File "/usr/src/flourish/eggs/ZODB3-3.9.7-py2.7-linux-
x86_64.egg/ZODB/Connection.py", line 851, in setstate
    self._setstate(obj)
  File "/usr/src/flourish/eggs/ZODB3-3.9.7-py2.7-linux-
x86_64.egg/ZODB/Connection.py", line 919, in _setstate
    self._reader.setGhostState(obj, p)
  File "/usr/src/flourish/eggs/ZODB3-3.9.7-py2.7-linux-
x86_64.egg/ZODB/serialize.py", line 630, in setGhostState
    obj.__setstate__(state)
  File "/usr/src/flourish/eggs/zope.component-3.10.0-
py2.7.egg/zope/component/persistentregistry.py", line 40, in __setstate__
    self._createLookup()
  File "/usr/src/flourish/eggs/zope.interface-3.6.1-py2.7-linux-
x86_64.egg/zope/interface/adapter.py", line 91, in _createLookup
    self._v_lookup = self.LookupClass(self)
  File "/usr/src/flourish/eggs/zope.interface-3.6.1-py2.7-linux-
x86_64.egg/zope/interface/adapter.py", line 439, in __init__
    self.init_extendors()
  File "/usr/src/flourish/eggs/zope.interface-3.6.1-py2.7-linux-
x86_64.egg/zope/interface/adapter.py", line 476, in init_extendors
    self.add_extendor(p)
  File "/usr/src/flourish/eggs/zope.interface-3.6.1-py2.7-linux-
x86_64.egg/zope/interface/adapter.py", line 480, in add_extendor
    for i in provided.__iro__:
AttributeError: type object 'ICustomScoreSystem' has no attribute '__iro__'
2011-10-20 17:24:58,111 main db/schooltool: failed to evolve to generation 36
Traceback (most recent call last):
  File "/usr/src/flourish/eggs/zope.app.generations-3.6.0-
py2.7.egg/zope/app/generations/generations.py", line 494, in evolve
    manager.evolve(context, generation)
  File "/usr/src/flourish/eggs/zope.app.generations-3.6.0-
py2.7.egg/zope/app/generations/generations.py", line 145, in evolve
    evolver.evolve(context)
  File "/usr/src/flourish/src/schooltool/generations/evolve36/__init__.py",
line 37, in evolve
    evolveTimetables(app)
  File "/usr/src/flourish/src/schooltool/generations/evolve36/evolve.py", line
51, in evolveTimetables
    builder.read(app, BuildContext())
  File
"/usr/src/flourish/src/schooltool/generations/evolve36/timetable_builders.py",
line 486, in read
    schoolyear = getUtility(IIntIds).queryObject(year_int_id)
  File "/usr/src/flourish/eggs/zope.component-3.10.0-
py2.7.egg/zope/component/_api.py", line 166, in getUtility
    utility = queryUtility(interface, name, context=context)
  File "/usr/src/flourish/eggs/zope.component-3.10.0-
py2.7.egg/zope/component/_api.py", line 172, in queryUtility
    return getSiteManager(context).queryUtility(interface, name, default)
  File "/usr/src/flourish/eggs/zope.component-3.10.0-
py2.7.egg/zope/component/registry.py", line 163, in queryUtility
    return self.utilities.lookup((), provided, name, default)
  File "/usr/src/flourish/eggs/ZODB3-3.9.7-py2.7-linux-
x86_64.egg/ZODB/Connection.py", line 851, in setstate
    self._setstate(obj)
  File "/usr/src/flourish/eggs/ZODB3-3.9.7-py2.7-linux-
x86_64.egg/ZODB/Connection.py", line 919, in _setstate
    self._reader.setGhostState(obj, p)
  File "/usr/src/flourish/eggs/ZODB3-3.9.7-py2.7-linux-
x86_64.egg/ZODB/serialize.py", line 630, in setGhostState
    obj.__setstate__(state)
  File "/usr/src/flourish/eggs/zope.component-3.10.0-
py2.7.egg/zope/component/persistentregistry.py", line 40, in __setstate__
    self._createLookup()
  File "/usr/src/flourish/eggs/zope.interface-3.6.1-py2.7-linux-
x86_64.egg/zope/interface/adapter.py", line 91, in _createLookup
    self._v_lookup = self.LookupClass(self)
  File "/usr/src/flourish/eggs/zope.interface-3.6.1-py2.7-linux-
x86_64.egg/zope/interface/adapter.py", line 439, in __init__
    self.init_extendors()
  File "/usr/src/flourish/eggs/zope.interface-3.6.1-py2.7-linux-
x86_64.egg/zope/interface/adapter.py", line 476, in init_extendors
    self.add_extendor(p)
  File "/usr/src/flourish/eggs/zope.interface-3.6.1-py2.7-linux-
x86_64.egg/zope/interface/adapter.py", line 480, in add_extendor
    for i in provided.__iro__:
AttributeError: type object 'ICustomScoreSystem' has no attribute '__iro__'
Traceback (most recent call last):
  File "bin/start-schooltool-instance", line 146, in <module>
    schooltool.paste.run.main()
  File "/usr/src/flourish/src/schooltool/paste/run.py", line 120, in main
    paste.script.command.run(['serve', conf_file] + extra_options)
  File "/usr/src/flourish/eggs/PasteScript-1.7.3-
py2.7.egg/paste/script/command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "/usr/src/flourish/eggs/PasteScript-1.7.3-
py2.7.egg/paste/script/command.py", line 123, in invoke
    exit_code = runner.run(args)
  File "/usr/src/flourish/eggs/PasteScript-1.7.3-
py2.7.egg/paste/script/command.py", line 218, in run
    result = self.command()
  File "/usr/src/flourish/eggs/PasteScript-1.7.3-
py2.7.egg/paste/script/serve.py", line 276, in command
    relative_to=base, global_conf=vars)
  File "/usr/src/flourish/eggs/PasteScript-1.7.3-
py2.7.egg/paste/script/serve.py", line 313, in loadapp
    **kw)
  File "/usr/src/flourish/eggs/PasteDeploy-1.5.0-
py2.7.egg/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/src/flourish/eggs/PasteDeploy-1.5.0-
py2.7.egg/paste/deploy/loadwsgi.py", line 272, in loadobj
    return context.create()
  File "/usr/src/flourish/eggs/PasteDeploy-1.5.0-
py2.7.egg/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/src/flourish/eggs/PasteDeploy-1.5.0-
py2.7.egg/paste/deploy/loadwsgi.py", line 146, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/usr/src/flourish/eggs/PasteDeploy-1.5.0-
py2.7.egg/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/src/flourish/src/schooltool/paste/main.py", line 48, in
schooltool_app_factory
    os.path.join(global_conf['here'], config_file))
  File "/usr/src/flourish/src/schooltool/paste/main.py", line 37, in __init__
    db = self.setup(options)
  File "/usr/src/flourish/src/schooltool/app/main.py", line 707, in setup
    notify(DatabaseOpened(db))
  File "/usr/src/flourish/eggs/zope.event-3.5.0_1-
py2.7.egg/zope/event/__init__.py", line 23, in notify
    subscriber(event)
  File "/usr/src/flourish/eggs/zope.component-3.10.0-
py2.7.egg/zope/component/event.py", line 24, in dispatch
    zope.component.subscribers(event, None)
  File "/usr/src/flourish/eggs/zope.component-3.10.0-
py2.7.egg/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/usr/src/flourish/eggs/zope.component-3.10.0-
py2.7.egg/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/usr/src/flourish/eggs/zope.interface-3.6.1-py2.7-linux-
x86_64.egg/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
  File "/usr/src/flourish/eggs/zope.app.appsetup-3.14.0-
py2.7.egg/zope/app/appsetup/bootstrap.py", line 175, in bootStrapSubscriber
    zope.event.notify(zope.processlifetime.DatabaseOpenedWithRoot(db))
  File "/usr/src/flourish/eggs/zope.event-3.5.0_1-
py2.7.egg/zope/event/__init__.py", line 23, in notify
    subscriber(event)
  File "/usr/src/flourish/eggs/zope.component-3.10.0-
py2.7.egg/zope/component/event.py", line 24, in dispatch
    zope.component.subscribers(event, None)
  File "/usr/src/flourish/eggs/zope.component-3.10.0-
py2.7.egg/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/usr/src/flourish/eggs/zope.component-3.10.0-
py2.7.egg/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/usr/src/flourish/eggs/zope.interface-3.6.1-py2.7-linux-
x86_64.egg/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
  File "/usr/src/flourish/eggs/zope.app.generations-3.6.0-
py2.7.egg/zope/app/generations/generations.py", line 521, in
evolveMinimumSubscriber
    evolve(event.database, EVOLVEMINIMUM)
  File "/usr/src/flourish/eggs/zope.app.generations-3.6.0-
py2.7.egg/zope/app/generations/generations.py", line 506, in evolve
    manager.generation)
zope.app.generations.interfaces.UnableToEvolve: (36, u'schooltool', 37)
make: *** [run] Fehler 1
--------------------------------------------------------------------------------------------------------------------