[Cubicweb] Richstring error

Aurélien Campéas aurelien.campeas at logilab.fr
Tue Jul 21 17:24:52 CEST 2009


On Tue, Jul 21, 2009 at 08:50:43PM +0530, Dhaval Sharma wrote:
> good
> and now i am getting

talks_about belongs to the skillmat cube

if you created a cube, and afterwards added to the uses variable in
__pkginfo__ you must instruct cw to merge the schemas

for this you have to do, in a shell :

cubicweb-ctl shell mycube

>>> add_cube('skillmat')

maybe that was your problem (but this is just my guess, you do not
give enough information)


> Traceback (most recent call last):
>   File "/home/dhaval/env/cubicweb25/bin/cubicweb-ctl", line 4, in <module>
>     run(sys.argv[1:])
>   File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/cwctl.py", line 814, in
> run
>     main_run(args, __doc__)
>   File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/toolsutils.py", line
> 256, in main_run
>     base_main_run(args, doc)
>   File "/home/dhaval/sample/cubicweb/cubicweb/logilab/common/clcommands.py",
> line 136, in main_run
>     cmd_run(arg, *args)
>   File "/home/dhaval/sample/cubicweb/cubicweb/logilab/common/clcommands.py",
> line 119, in cmd_run
>     command.run(args)
>   File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/server/serverctl.py",
> line 343, in run
>     init_repository(config, drop=self.config.drop)
>   File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/server/__init__.py",
> line 44, in init_repository
>     repo = Repository(config, vreg=vreg)
>   File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/server/repository.py",
> line 189, in __init__
>     self.set_bootstrap_schema(self.config.load_schema())
>   File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/server/serverconfig.py",
> line 309, in load_schema
>     schema = CubicWebSchemaLoader().load(self, **kwargs)
>   File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/schema.py", line 917, in
> load
>     return super(CubicWebSchemaLoader, self).load(config, path=path, **kwargs)
>   File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/schema.py", line 890, in
> load
>     path, config.appid, register_base_types=False, **kwargs)
>   File "/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py", line 214, in
> load
>     remove_unused_rtypes=remove_unused_rtypes)
>   File "/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py", line 247, in
> _build_schema
>     definition.expand_relation_definitions(self.defined, schema)
>   File "/home/dhaval/sample/cubicweb/cubicweb/yams/buildobjs.py", line 237, in
> expand_relation_definitions
>     rdef._add_relations(defined, schema)
>   File "/home/dhaval/sample/cubicweb/cubicweb/yams/buildobjs.py", line 406, in
> _add_relations
>     schema.add_relation_def(rdef)
>   File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/schema.py", line 514, in
> add_relation_def
>     if super(CubicWebSchema, self).add_relation_def(rdef):
>   File "/home/dhaval/sample/cubicweb/cubicweb/yams/schema.py", line 1047, in
> add_relation_def
>     rdef.object, rtype)
>   File "/home/dhaval/sample/cubicweb/cubicweb/yams/schema.py", line 1053, in
> _building_error
>     raise BadSchemaDefinition(msg % args)
> yams._exceptions.BadSchemaDefinition: using unknown type 'Technology' in
> relation talks_about
> 
> 
> On Tue, Jul 21, 2009 at 4:32 PM, Nicolas Chauvat <nicolas.chauvat at logilab.fr>
> wrote:
> 
>     On Tue, Jul 21, 2009 at 04:18:47PM +0530, Dhaval Sharma wrote:
>     >   File "/home/dhaval/sample/cubicweb/cubicweb/cubes/folder/schema.py",
>     line
>     > 7, in <module>
>     >     from yams.buildobjs import (MetaUserEntityType, MetaUserRelationType,
>     > ImportError: cannot import name RichString
> 
>     http://hg.logilab.org/cubes/folder/rev/fabb563512c9
> 
>     Make sure you 'hg pull ; hg update' your cubes/folder
> 
>     --
>     Nicolas Chauvat
> 
>     logilab.fr - services en informatique scientifique et gestion de
>     connaissances
> 
> 
> 
> 
> --
> With Warm Regards,
> Dhaval
> http://dsteps.blogspot.com
> http://www.linkedin.com/in/dhavalsharma
> http://carpoolkaro.appspot.com
> 

> _______________________________________________
> Cubicweb mailing list
> Cubicweb at lists.cubicweb.org
> http://lists.cubicweb.org/mailman/listinfo/cubicweb




More information about the Cubicweb mailing list