Regarding the bug, Justas has more details about the problem... he seen it
happen and actually did some debug about it here in Portugal.
2012/6/1 Gediminas Paulauskas <email address hidden>
> I cannot reproduce the exact same failure with the attached database,
> but my guess is that you hit the Bug #1003834 that was recently reported
> as https://answers.launchpad.net/schooltool/+question/198155
>
> The indication is that at the end of /var/log/schooltool/error.log there
> is an error:
>
> AttributeError: 'Timetable' object has no attribute 'uniqueMeetingId'
>
> However, with your database I got an error in the next stage of upgrade,
>
> 2012-06-01 17:09:58,130 main db/schooltool: failed to evolve to generation
> 37
> Traceback (most recent call last):
> File
> "/home/menesis/.buildout/eggs/zope.app.generations-3.6.1-py2.7.egg/zope/app/generations/generations.py",
> line 494, in evolve
> manager.evolve(context, generation)
> File
> "/home/menesis/.buildout/eggs/zope.app.generations-3.6.1-py2.7.egg/zope/app/generations/generations.py",
> line 145, in evolve
> evolver.evolve(context)
> File
> "/home/menesis/src/schooltool/2.1/src/schooltool/src/schooltool/generations/evolve37.py",
> line 67, in evolve
> del app[LEVELS_APP_KEY]
> File
> "/home/menesis/.buildout/eggs/zope.container-3.12.0-py2.7-linux-i686.egg/zope/container/sample.py",
> line 88, in __delitem__
> uncontained(self.__data[key], self, key)
> File "/home/menesis/src/schooltool/2.1/python/lib/python2.7/UserDict.py",
> line 23, in __getitem__
> raise KeyError(key)
> KeyError: 'schooltool.level.level'
> Traceback (most recent call last):
> ...
> zope.app.generations.interfaces.UnableToEvolve: (37, u'schooltool', 38)
>
> That I am fixing now.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1007361
>
> Title:
> UnableToEvolve database from schooltool 1.2
>
> Status in SchoolTool:
> In Progress
>
> Bug description:
> When upgrading from version 1.2 into 2.0.3 schooltool fails to start,
> reporting UnableToEvolve error.
> Trace is below.
>
> To replicate just start 2.0.3 with a 1.2 database file, or use the one
> attached.
>
> Traceback (most recent call last):
> File "/usr/bin/paster", line 8, in <module>
> load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
> File "/usr/lib/python2.6/site-packages/paste/script/command.py", line
> 104, in run
> invoke(command, command_name, options, args[1:])
> File "/usr/lib/python2.6/site-packages/paste/script/command.py", line
> 143, in invoke
> exit_code = runner.run(args)
> File "/usr/lib/python2.6/site-packages/paste/script/command.py", line
> 238, in run
> result = self.command()
> File "/usr/lib/python2.6/site-packages/paste/script/serve.py", line
> 284, in command
> relative_to=base, global_conf=vars)
> File "/usr/lib/python2.6/site-packages/paste/script/serve.py", line
> 321, in loadapp
> **kw)
> File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> 247, in loadapp
> return loadobj(APP, uri, name=name, **kw)
> File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> 272, in loadobj
> return context.create()
> File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> 713, in create
> return self.object_type.invoke(self)
> File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> 144, in invoke
> **context.local_conf)
> File "/usr/lib/python2.6/site-packages/paste/deploy/util.py", line 56,
> in fix_call
> val = callable(*args, **kw)
> File "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 25, in
> urlmap_factory
> app = loader.get_app(app_name, global_conf=global_conf)
> File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> 350, in get_app
> name=name, global_conf=global_conf).create()
> File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> 713, in create
> return self.object_type.invoke(self)
> File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> 146, in invoke
> return fix_call(context.object, context.global_conf,
> **context.local_conf)
> File "/usr/lib/python2.6/site-packages/paste/deploy/util.py", line 56,
> in fix_call
> val = callable(*args, **kw)
> File "/usr/lib/python2.6/site-packages/schooltool/paste/main.py", line
> 48, in schooltool_app_factory
> os.path.join(global_conf['here'], config_file))
> File "/usr/lib/python2.6/site-packages/schooltool/paste/main.py", line
> 37, in __init__
> db = self.setup(options)
> File "/usr/lib/python2.6/site-packages/schooltool/app/main.py", line
> 679, in setup
> notify(DatabaseOpened(db))
> File "/usr/lib/python2.6/site-packages/zope/event/__init__.py", line
> 31, in notify
> subscriber(event)
> File "/usr/lib/python2.6/site-packages/zope/component/event.py", line
> 24, in dispatch
> zope.component.subscribers(event, None)
> File "/usr/lib/python2.6/site-packages/zope/component/_api.py", line
> 136, in subscribers
> return sitemanager.subscribers(objects, interface)
> File "/usr/lib/python2.6/site-packages/zope/component/registry.py",
> line 321, in subscribers
> return self.adapters.subscribers(objects, provided)
> File "/usr/lib/python2.6/site-packages/zope/interface/adapter.py", line
> 585, in subscribers
> subscription(*objects)
> File "/usr/lib/python2.6/site-packages/zope/app/appsetup/bootstrap.py",
> line 175, in bootStrapSubscriber
> zope.event.notify(zope.processlifetime.DatabaseOpenedWithRoot(db))
> File "/usr/lib/python2.6/site-packages/zope/event/__init__.py", line
> 31, in notify
> subscriber(event)
> File "/usr/lib/python2.6/site-packages/zope/component/event.py", line
> 24, in dispatch
> zope.component.subscribers(event, None)
> File "/usr/lib/python2.6/site-packages/zope/component/_api.py", line
> 136, in subscribers
> return sitemanager.subscribers(objects, interface)
> File "/usr/lib/python2.6/site-packages/zope/component/registry.py",
> line 321, in subscribers
> return self.adapters.subscribers(objects, provided)
> File "/usr/lib/python2.6/site-packages/zope/interface/adapter.py", line
> 585, in subscribers
> subscription(*objects)
> File
> "/usr/lib/python2.6/site-packages/zope/app/generations/generations.py",
> line 521, in evolveMinimumSubscriber
> evolve(event.database, EVOLVEMINIMUM)
> File
> "/usr/lib/python2.6/site-packages/zope/app/generations/generations.py",
> line 506, in evolve
> manager.generation)
> zope.app.generations.interfaces.UnableToEvolve: (36, u'schooltool', 38)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/schooltool/+bug/1007361/+subscriptions
>
Regarding the bug, Justas has more details about the problem... he seen it
happen and actually did some debug about it here in Portugal.
2012/6/1 Gediminas Paulauskas <email address hidden>
> I cannot reproduce the exact same failure with the attached database, /answers. launchpad. net/schooltool/ +question/ 198155 schooltool/ error.log there menesis/ .buildout/ eggs/zope. app.generations -3.6.1- py2.7.egg/ zope/app/ generations/ generations. py", evolve( context, generation) menesis/ .buildout/ eggs/zope. app.generations -3.6.1- py2.7.egg/ zope/app/ generations/ generations. py", evolve( context) menesis/ src/schooltool/ 2.1/src/ schooltool/ src/schooltool/ generations/ evolve37. py", menesis/ .buildout/ eggs/zope. container- 3.12.0- py2.7-linux- i686.egg/ zope/container/ sample. py", self.__ data[key] , self, key) menesis/ src/schooltool/ 2.1/python/ lib/python2. 7/UserDict. py", level.level' generations. interfaces. UnableToEvolve: (37, u'schooltool', 38) /bugs.launchpad .net/bugs/ 1007361 point(' PasteScript= =1.7.5' , 'console_scripts', 'paster')() python2. 6/site- packages/ paste/script/ command. py", line python2. 6/site- packages/ paste/script/ command. py", line python2. 6/site- packages/ paste/script/ command. py", line python2. 6/site- packages/ paste/script/ serve.py" , line python2. 6/site- packages/ paste/script/ serve.py" , line python2. 6/site- packages/ paste/deploy/ loadwsgi. py", line python2. 6/site- packages/ paste/deploy/ loadwsgi. py", line python2. 6/site- packages/ paste/deploy/ loadwsgi. py", line type.invoke( self) python2. 6/site- packages/ paste/deploy/ loadwsgi. py", line local_conf) python2. 6/site- packages/ paste/deploy/ util.py" , line 56, python2. 6/site- packages/ paste/urlmap. py", line 25, in get_app( app_name, global_ conf=global_ conf) python2. 6/site- packages/ paste/deploy/ loadwsgi. py", line conf=global_ conf).create( ) python2. 6/site- packages/ paste/deploy/ loadwsgi. py", line type.invoke( self) python2. 6/site- packages/ paste/deploy/ loadwsgi. py", line context. object, context. global_ conf, local_conf) python2. 6/site- packages/ paste/deploy/ util.py" , line 56, python2. 6/site- packages/ schooltool/ paste/main. py", line app_factory join(global_ conf['here' ], config_file)) python2. 6/site- packages/ schooltool/ paste/main. py", line python2. 6/site- packages/ schooltool/ app/main. py", line DatabaseOpened( db)) python2. 6/site- packages/ zope/event/ __init_ _.py", line python2. 6/site- packages/ zope/component/ event.py" , line subscribers( event, None) python2. 6/site- packages/ zope/component/ _api.py" , line subscribers( objects, interface) python2. 6/site- packages/ zope/component/ registry. py", subscribers( objects, provided) python2. 6/site- packages/ zope/interface/ adapter. py", line *objects) python2. 6/site- packages/ zope/app/ appsetup/ bootstrap. py", notify( zope.processlif etime.DatabaseO penedWithRoot( db)) python2. 6/site- packages/ zope/event/ __init_ _.py", line python2. 6/site- packages/ zope/component/ event.py" , line subscribers( event, None) python2. 6/site- packages/ zope/component/ _api.py" , line subscribers( objects, interface) python2. 6/site- packages/ zope/component/ registry. py", subscribers( objects, provided) python2. 6/site- packages/ zope/interface/ adapter. py", line *objects) python2. 6/site- packages/ zope/app/ generations/ generations. py", bscriber event.database, EVOLVEMINIMUM) python2. 6/site- packages/ zope/app/ generations/ generations. py", generations. interfaces. UnableToEvolve: (36, u'schooltool', 38) /bugs.launchpad .net/schooltool /+bug/1007361/ +subscriptions
> but my guess is that you hit the Bug #1003834 that was recently reported
> as https:/
>
> The indication is that at the end of /var/log/
> is an error:
>
> AttributeError: 'Timetable' object has no attribute 'uniqueMeetingId'
>
> However, with your database I got an error in the next stage of upgrade,
>
> 2012-06-01 17:09:58,130 main db/schooltool: failed to evolve to generation
> 37
> Traceback (most recent call last):
> File
> "/home/
> line 494, in evolve
> manager.
> File
> "/home/
> line 145, in evolve
> evolver.
> File
> "/home/
> line 67, in evolve
> del app[LEVELS_APP_KEY]
> File
> "/home/
> line 88, in __delitem__
> uncontained(
> File "/home/
> line 23, in __getitem__
> raise KeyError(key)
> KeyError: 'schooltool.
> Traceback (most recent call last):
> ...
> zope.app.
>
> That I am fixing now.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> UnableToEvolve database from schooltool 1.2
>
> Status in SchoolTool:
> In Progress
>
> Bug description:
> When upgrading from version 1.2 into 2.0.3 schooltool fails to start,
> reporting UnableToEvolve error.
> Trace is below.
>
> To replicate just start 2.0.3 with a 1.2 database file, or use the one
> attached.
>
> Traceback (most recent call last):
> File "/usr/bin/paster", line 8, in <module>
> load_entry_
> File "/usr/lib/
> 104, in run
> invoke(command, command_name, options, args[1:])
> File "/usr/lib/
> 143, in invoke
> exit_code = runner.run(args)
> File "/usr/lib/
> 238, in run
> result = self.command()
> File "/usr/lib/
> 284, in command
> relative_to=base, global_conf=vars)
> File "/usr/lib/
> 321, in loadapp
> **kw)
> File "/usr/lib/
> 247, in loadapp
> return loadobj(APP, uri, name=name, **kw)
> File "/usr/lib/
> 272, in loadobj
> return context.create()
> File "/usr/lib/
> 713, in create
> return self.object_
> File "/usr/lib/
> 144, in invoke
> **context.
> File "/usr/lib/
> in fix_call
> val = callable(*args, **kw)
> File "/usr/lib/
> urlmap_factory
> app = loader.
> File "/usr/lib/
> 350, in get_app
> name=name, global_
> File "/usr/lib/
> 713, in create
> return self.object_
> File "/usr/lib/
> 146, in invoke
> return fix_call(
> **context.
> File "/usr/lib/
> in fix_call
> val = callable(*args, **kw)
> File "/usr/lib/
> 48, in schooltool_
> os.path.
> File "/usr/lib/
> 37, in __init__
> db = self.setup(options)
> File "/usr/lib/
> 679, in setup
> notify(
> File "/usr/lib/
> 31, in notify
> subscriber(event)
> File "/usr/lib/
> 24, in dispatch
> zope.component.
> File "/usr/lib/
> 136, in subscribers
> return sitemanager.
> File "/usr/lib/
> line 321, in subscribers
> return self.adapters.
> File "/usr/lib/
> 585, in subscribers
> subscription(
> File "/usr/lib/
> line 175, in bootStrapSubscriber
> zope.event.
> File "/usr/lib/
> 31, in notify
> subscriber(event)
> File "/usr/lib/
> 24, in dispatch
> zope.component.
> File "/usr/lib/
> 136, in subscribers
> return sitemanager.
> File "/usr/lib/
> line 321, in subscribers
> return self.adapters.
> File "/usr/lib/
> 585, in subscribers
> subscription(
> File
> "/usr/lib/
> line 521, in evolveMinimumSu
> evolve(
> File
> "/usr/lib/
> line 506, in evolve
> manager.generation)
> zope.app.
>
> To manage notifications about this bug go to:
> https:/
>
-- _______ _______ _______ _______
_______
Helder Sousa
Product Engineering
Critical Links SA links.com
Parque Industrial de Taveiro, Lote 48
3045-504 Coimbra
Portugal
www.critical-
Office: +351 239 985 254
Fax: +351 239 985 255