[Cubicweb] apycot cube vcsfile adapter error

Carlos Balderas carlos.balderas at gmail.com
Mon Sep 20 16:30:21 CEST 2010


Hello List,

I am getting this error when creating database for apycot cube.

Traceback (most recent call last):
  File "/usr/bin/cubicweb-ctl", line 4, in <module>
    run(sys.argv[1:])
  File "/home/carlos/src/fcubicweb/cubicweb/cwctl.py", line 954, in run
    CWCTL.run(args)
  File "/home/carlos/src/fcubicweb/logilab/common/clcommands.py", line 128,
in run
    sys.exit(command.main_run(args, rcfile))
  File "/home/carlos/src/fcubicweb/logilab/common/clcommands.py", line 254,
in main_run
    self.run(args)
  File "/home/carlos/src/fcubicweb/cubicweb/server/serverctl.py", line 374,
in run
    CWCTL.run(['db-init', config.appid])
  File "/home/carlos/src/fcubicweb/logilab/common/clcommands.py", line 128,
in run
    sys.exit(command.main_run(args, rcfile))
  File "/home/carlos/src/fcubicweb/logilab/common/clcommands.py", line 254,
in main_run
    self.run(args)
  File "/home/carlos/src/fcubicweb/cubicweb/server/serverctl.py", line 421,
in run
    init_repository(config, drop=self.config.drop)
  File "/home/carlos/src/fcubicweb/cubicweb/server/__init__.py", line 136,
in init_repository
    repo = Repository(config, vreg=vreg)
  File "/home/carlos/src/fcubicweb/cubicweb/server/repository.py", line 136,
in __init__
    source = self.get_source(uri, source_config)
  File "/home/carlos/src/fcubicweb/cubicweb/server/repository.py", line 224,
in get_source
    return sources.get_source(source_config, self.schema, self)
  File "/home/carlos/src/fcubicweb/cubicweb/server/sources/__init__.py",
line 522, in get_source
    return source_adapter(source_config)(repo, global_schema, source_config)
  File "/home/carlos/src/fcubicweb/cubicweb/server/sources/__init__.py",
line 516, in source_adapter
    raise RuntimeError('Unknown adapter %r' % adapter_type)
RuntimeError: Unknown adapter 'vcsfile'

It looks like is looking this key doesn't exist in SOURCE_TYPES
(/fcubicweb/cubicweb/server/__init__.py)

# available sources registry
SOURCE_TYPES = {'native': LazyObject('cubicweb.server.sources.native',
'NativeSQLSource'),
                # XXX private sources installed by an external cube
                'pyrorql': LazyObject('cubicweb.server.sources.pyrorql',
'PyroRQLSource'),
                'ldapuser': LazyObject('cubicweb.server.sources.ldapuser',
'LDAPUserSource'),
                }

Does someone could please tell me how can I fix this error?

Thank you very much
Carlos Balderas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20100920/5ccbc2b4/attachment-0126.html>


More information about the Cubicweb mailing list