Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • saem_ref saem_ref
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 39
    • Merge requests 39
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cubicweb
  • cubes
  • saem_refsaem_ref
  • Issues
  • #1

Closed
Open
Created Sep 18, 2020 by Arthur Lutz@arthurOwner

AttributeError: '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.
-> 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'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking