Traceback (most recent call last):
File "/home/auc/src/fcw/cubicweb/cwctl.py", line 167, in run_arg
status = cmdmeth(appid)
File "/home/auc/src/fcw/cubicweb/cwctl.py", line 736, in upgrade_instance
mih = config.migration_handler()
File "/home/auc/src/fcw/cubicweb/server/serverconfig.py", line 360, in migration_handler
verbosity=verbosity)
File "/home/auc/src/fcw/cubicweb/server/migractions.py", line 104, in __init__
self.repo_connect()
File "/home/auc/src/fcw/logilab/common/decorators.py", line 65, in wrapped
return self.__call__(*args, **kwargs)
File "/home/auc/src/fcw/logilab/common/decorators.py", line 59, in __call__
value = __me.callable(self, *args)
File "/home/auc/src/fcw/cubicweb/server/migractions.py", line 135, in repo_connect
self.repo = get_repository(method='inmemory', config=self.config)
File "/home/auc/src/fcw/cubicweb/dbapi.py", line 104, in get_repository
return Repository(config, TasksManager(), vreg=vreg)
File "/home/auc/src/fcw/cubicweb/server/repository.py", line 181, in __init__
self.init_cnxset_pool()
File "/home/auc/src/fcw/cubicweb/server/repository.py", line 222, in init_cnxset_pool
self.fill_schema()
File "/home/auc/src/fcw/cubicweb/server/repository.py", line 354, in fill_schema
self.set_schema(appschema)
File "/home/auc/src/fcw/cubicweb/server/repository.py", line 323, in set_schema
self.vreg.set_schema(schema)
File "/home/auc/src/fcw/cubicweb/cwvreg.py", line 559, in set_schema
self.reload(self.config.vregistry_path(), force_reload=False)
File "/home/auc/src/fcw/cubicweb/cwvreg.py", line 587, in reload
self.register_objects(path)
File "/home/auc/src/fcw/cubicweb/cwvreg.py", line 645, in register_objects
path, self.config.extrapath)
File "/home/auc/src/fcw/logilab/common/registry.py", line 578, in register_objects
File "/home/auc/src/fcw/logilab/common/registry.py", line 633, in load_file
File "/home/auc/src/fcw/logilab/common/modutils.py", line 116, in load_module_from_name
return load_module_from_modpath(dotted_name.split('.'), path, use_sys)
File "/home/auc/src/fcw/logilab/common/modutils.py", line 156, in load_module_from_modpath
module = load_module(curname, mp_file, mp_filename, mp_desc)
File "/home/auc/src/fcw/cubes/pylos/hooks/__init__.py", line 5, in <module>
from cubicweb.server.hook import (Hook, Operation, match_rtype,
ImportError: cannot import name ExpectedValueSelector
instance pyrene not upgraded: cannot import name ExpectedValueSelector
|
Comments
the bw compat is there. The pb lies in the client code which import from cw.server.hook instead of from the module the class is coming from
bw compat == we are not allowed to break client code already in production if that code was poorly written, so be it
this is what applies to, for instance, Python itself