saem_ref issueshttps://forge.extranet.logilab.fr/cubicweb/cubes/saem_ref/-/issues2021-05-18T15:28:26Zhttps://forge.extranet.logilab.fr/cubicweb/cubes/saem_ref/-/issues/4Erreur en back quand chargement d'un profil SEDA en vue primaire2021-05-18T15:28:26ZElodie ThiéblinErreur en back quand chargement d'un profil SEDA en vue primaire```
2021-05-18 17:23:41 - (cubicweb.pyramid.bwcompat) ERROR: args: (<cubicweb.pyramid.core.CubicWebPyramidRequest object at 0x7f8560c31ac8>,), kwargs: dict_keys(['rset'])
candidates: [<class 'cubicweb_saem_ref.views.rdf.SAEMRDFView'>]
Tr...```
2021-05-18 17:23:41 - (cubicweb.pyramid.bwcompat) ERROR: args: (<cubicweb.pyramid.core.CubicWebPyramidRequest object at 0x7f8560c31ac8>,), kwargs: dict_keys(['rset'])
candidates: [<class 'cubicweb_saem_ref.views.rdf.SAEMRDFView'>]
Traceback (most recent call last):
File "/home/ethieblin/Envs/saem/lib/python3.7/site-packages/cubicweb/pyramid/bwcompat.py", line 192, in __call__
response = self.handler(request)
File "/home/ethieblin/Envs/saem/lib/python3.7/site-packages/pyramid/router.py", line 173, in handle_request
raise HTTPNotFound(msg)
pyramid.httpexceptions.HTTPNotFound: debug_notfound of url http://ethieblin-pc:8080/ark:/1/rfs0v15w0g; path_info: '/ark:/1/rfs0v15w0g', context: <pyramid.traversal.DefaultRootFactory object at 0x7f8560c31e80>, view_name: 'ark:', subpath: ('1', 'rfs0v15w0g'), traversed: (), root: <pyramid.traversal.DefaultRootFactory object at 0x7f8560c31e80>, vroot: <pyramid.traversal.DefaultRootFactory object at 0x7f8560c31e80>, vroot_path: ()
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ethieblin/Envs/saem/lib/python3.7/site-packages/cubicweb/web/views/basecontrollers.py", line 148, in _select_view_and_rset
view = self._cw.vreg['views'].select(vid, req, rset=rset)
File "/home/ethieblin/Envs/saem/lib/python3.7/site-packages/logilab/common/registry.py", line 654, in select
raise NoSelectableObject(args, kwargs, self[__oid])
logilab.common.registry.NoSelectableObject: args: (<cubicweb.pyramid.core.CubicWebPyramidRequest object at 0x7f8560c31ac8>,), kwargs: dict_keys(['rset'])
candidates: [<class 'cubicweb_saem_ref.views.rdf.SAEMRDFView'>]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ethieblin/Envs/saem/lib/python3.7/site-packages/pyramid/tweens.py", line 41, in excview_tween
response = handler(request)
File "/home/ethieblin/Envs/saem/lib/python3.7/site-packages/cubicweb/pyramid/bwcompat.py", line 194, in __call__
response = self.cwhandler(request)
File "/home/ethieblin/Envs/saem/lib/python3.7/site-packages/cubicweb/pyramid/bwcompat.py", line 96, in __call__
content = controller.publish(rset=rset)
File "/home/ethieblin/Envs/saem/lib/python3.7/site-packages/cubicweb/web/views/basecontrollers.py", line 130, in publish
view, rset = self._select_view_and_rset(rset)
File "/home/ethieblin/src/saem/cubicweb_saem_ref/views/search.py", line 115, in _select_view_and_rset
return super(ViewController, self)._select_view_and_rset(rset)
File "/home/ethieblin/Envs/saem/lib/python3.7/site-packages/cubicweb/web/views/basecontrollers.py", line 161, in _select_view_and_rset
view = req.vreg['views'].select(vid, req, rset=rset)
File "/home/ethieblin/Envs/saem/lib/python3.7/site-packages/logilab/common/registry.py", line 654, in select
raise NoSelectableObject(args, kwargs, self[__oid])
logilab.common.registry.NoSelectableObject: args: (<cubicweb.pyramid.core.CubicWebPyramidRequest object at 0x7f8560c31ac8>,), kwargs: dict_keys(['rset'])
candidates: [<class 'cubicweb_saem_ref.views.rdf.SAEMRDFView'>]
```https://forge.extranet.logilab.fr/cubicweb/cubes/saem_ref/-/issues/2[CW] move to 3.292021-05-27T16:26:30ZNoé Gaumont[CW] move to 3.29No known blocker.No known blocker.https://forge.extranet.logilab.fr/cubicweb/cubes/saem_ref/-/issues/1AttributeError: 'Values' object has no attribute 'default_ark_naa_what'2020-09-18T15:41:53ZArthur LutzAttributeError: 'Values' object has no attribute 'default_ark_naa_what'When creating a dabatabase using https://framagit.org/saemproject/saemref-docker
```
docker-compose run web db-create
creating instance database
Creating the system database
----------------------------
-> database saemref created.
-> ...When creating a dabatabase using https://framagit.org/saemproject/saemref-docker
```
docker-compose run web db-create
creating instance database
Creating the system database
----------------------------
-> database saemref created.
-> ERROR: could not access file "$libdir/plpython2": No such file or directory
-> could not create language plpythonu, some stored procedures might be unusable
-> database for instance instance created and necessary extensions installed.
Initializing the system database
--------------------------------
-> installing /usr/local/lib/python3.7/dist-packages/cubicweb/schemas/_regproc.postgres.sql
-> installing /usr/local/lib/python3.7/dist-packages/cubicweb_addressbook/schema/_regproc.postgres.sql
-> installing /usr/local/lib/python3.7/dist-packages/cubicweb_saem_ref/schema/ark.postgres.sql
-> installing /usr/local/lib/python3.7/dist-packages/cubicweb_saem_ref/schema/_ext.postgres.sql
-> creating tables [====================]
-> inserting default user and default groups.
2020-09-18 15:26:19 - (cubicweb.appobject) WARNING: can't find any workflow for CWUser
-> storing the schema in the database [====================]
-> creating SEDA concept schemes
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/logilab/common/configuration.py", line 963, in __getitem__
return getattr(self.config, self.option_attrname(key))
AttributeError: 'Values' object has no attribute 'default_ark_naa_what'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/cubicweb-ctl", line 11, in <module>
load_entry_point('cubicweb==3.26.14', 'console_scripts', 'cubicweb-ctl')()
File "/usr/local/lib/python3.7/dist-packages/cubicweb/cwctl.py", line 1087, in run
CWCTL.run(args)
File "/usr/local/lib/python3.7/dist-packages/logilab/common/clcommands.py", line 136, in run
sys.exit(command.main_run(args, rcfile))
File "/usr/local/lib/python3.7/dist-packages/logilab/common/clcommands.py", line 265, in main_run
self.run(args)
File "/usr/local/lib/python3.7/dist-packages/cubicweb/server/serverctl.py", line 414, in run
config.appid])
File "/usr/local/lib/python3.7/dist-packages/logilab/common/clcommands.py", line 136, in run
sys.exit(command.main_run(args, rcfile))
File "/usr/local/lib/python3.7/dist-packages/logilab/common/clcommands.py", line 265, in main_run
self.run(args)
File "/usr/local/lib/python3.7/dist-packages/cubicweb/server/serverctl.py", line 475, in run
init_repository(config, drop=self.config.drop)
File "/usr/local/lib/python3.7/dist-packages/cubicweb/server/__init__.py", line 301, in init_repository
initialize_schema(config, schema, handler)
File "/usr/local/lib/python3.7/dist-packages/cubicweb/server/__init__.py", line 339, in initialize_schema
mhandler.cmd_exec_event_script('post%s' % event, cube)
File "/usr/local/lib/python3.7/dist-packages/cubicweb/server/migractions.py", line 342, in cmd_exec_event_script
return self.cmd_process_script(apc, funcname, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/cubicweb/server/migractions.py", line 177, in cmd_process_script
migrscript, funcname, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/cubicweb/migration.py", line 359, in cmd_process_script
exec(code, scriptlocals)
File "/usr/local/lib/python3.7/dist-packages/cubicweb_seda/migration/postcreate.py", line 25, in <module>
import_seda_schemes(cnx)
File "/usr/local/lib/python3.7/dist-packages/cubicweb_seda/dataimport.py", line 172, in import_seda_schemes
store = get_store(cnx)
File "/usr/local/lib/python3.7/dist-packages/cubicweb_saem_ref/site_cubicweb.py", line 158, in get_store
what = cnx.vreg.config['default-ark-naa-what']
File "/usr/local/lib/python3.7/dist-packages/cubicweb/cwconfig.py", line 429, in __getitem__
file_value = super(CubicWebNoAppConfiguration, self).__getitem__(key)
File "/usr/local/lib/python3.7/dist-packages/logilab/common/configuration.py", line 965, in __getitem__
raise KeyError(key)
KeyError: 'default-ark-naa-what'
```