[Cubicweb] Richstring error

Dhaval Sharma dhavalsharma at gmail.com
Tue Jul 21 12:48:47 CEST 2009


the complete log

(cubicweb25)dhaval at ubuntu:~/env/cubicweb25$ cubicweb-ctl db-init sqlapp
/home/dhaval/sample/cubicweb/cubicweb/cubes/addressbook/schema.py:3:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  number = String(fulltextindexed=True, required=True, maxsize=64)
/home/dhaval/sample/cubicweb/cubicweb/cubes/addressbook/schema.py:7:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  default=u'mobile')
/home/dhaval/sample/cubicweb/cubicweb/cubes/addressbook/schema.py:10:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  street  = String(fulltextindexed=True, required=True, maxsize=256)
/home/dhaval/sample/cubicweb/cubicweb/cubes/addressbook/schema.py:11:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  street2  = String(fulltextindexed=True, maxsize=256)
/home/dhaval/sample/cubicweb/cubicweb/cubes/addressbook/schema.py:12:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  postalcode = String(fulltextindexed=True, required=True, maxsize=256)
/home/dhaval/sample/cubicweb/cubicweb/cubes/addressbook/schema.py:13:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  city    = String(fulltextindexed=True, required=True, maxsize=256)
/home/dhaval/sample/cubicweb/cubicweb/cubes/addressbook/schema.py:14:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  country = String(fulltextindexed=True, maxsize=256)
/home/dhaval/sample/cubicweb/cubicweb/cubes/addressbook/schema.py:15:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  state   = String(fulltextindexed=True, maxsize=256)
/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py:174:
DeprecationWarning:
/home/dhaval/sample/cubicweb/cubicweb/cubes/addressbook/schema.py: please
explicitly import EntityType
  % (filepath, pname), DeprecationWarning)
/home/dhaval/sample/cubicweb/cubicweb/cubes/card/schema.py:14:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  title    = String(required=True, fulltextindexed=True, maxsize=256)
/home/dhaval/sample/cubicweb/cubicweb/cubes/card/schema.py:16:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  description=_("an abstract for this card"))
/home/dhaval/sample/cubicweb/cubicweb/cubes/card/schema.py:18:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  default='text/rest', constraints=[format_constraint])
/home/dhaval/sample/cubicweb/cubicweb/cubes/card/schema.py:19:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  content  = String(fulltextindexed=True)
/home/dhaval/sample/cubicweb/cubicweb/cubes/card/schema.py:20:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  wikiid = String(maxsize=64, indexed=True)
/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py:174:
DeprecationWarning:
/home/dhaval/sample/cubicweb/cubicweb/cubes/card/schema.py: please
explicitly import EntityType
  % (filepath, pname), DeprecationWarning)
/home/dhaval/sample/cubicweb/cubicweb/cubes/comment/schema.py:9:
DeprecationWarning: RichString should be explictly imported from
cubicweb.schema
  content = RichString(required=True, fulltextindexed=True)
/home/dhaval/sample/cubicweb/cubicweb/cubes/comment/schema.py:11:
DeprecationWarning: SubjectRelation should be explictly imported from
yams.buildobjs
  comments = SubjectRelation('Comment', cardinality='1*',
composite='object')
/home/dhaval/sample/cubicweb/cubicweb/cubes/comment/schema.py:19:
DeprecationWarning: RRQLExpression should be explictly imported from
cubicweb.schema
  'delete': ('managers', RRQLExpression('S owned_by U'),),
/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py:169:
DeprecationWarning: MetaUserEntityType is deprecated, use
EntityType/RelationType with explicit permission
  DeprecationWarning)
/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py:174:
DeprecationWarning:
/home/dhaval/sample/cubicweb/cubicweb/cubes/comment/schema.py: please
explicitly import MetaUserEntityType
  % (filepath, pname), DeprecationWarning)
/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py:169:
DeprecationWarning: MetaUserRelationType is deprecated, use
EntityType/RelationType with explicit permission
  DeprecationWarning)
/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py:174:
DeprecationWarning:
/home/dhaval/sample/cubicweb/cubicweb/cubes/comment/schema.py: please
explicitly import MetaUserRelationType
  % (filepath, pname), DeprecationWarning)
/home/dhaval/sample/cubicweb/cubicweb/cubes/company/schema.py:3:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  name = String(required=True, fulltextindexed=True, indexed=True,
maxsize=128)
/home/dhaval/sample/cubicweb/cubicweb/cubes/company/schema.py:4:
DeprecationWarning: SubjectRelation should be explictly imported from
yams.buildobjs
  headquarters = SubjectRelation('PostalAddress', cardinality='*?',
composite='subject')
/home/dhaval/sample/cubicweb/cubicweb/cubes/company/schema.py:5:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  web = String(fulltextindexed=True, maxsize=128)
/home/dhaval/sample/cubicweb/cubicweb/cubes/company/schema.py:6:
DeprecationWarning: SubjectRelation should be explictly imported from
yams.buildobjs
  phone = SubjectRelation('PhoneNumber', cardinality='*?',
composite='subject')
/home/dhaval/sample/cubicweb/cubicweb/cubes/company/schema.py:7:
DeprecationWarning: SubjectRelation should be explictly imported from
yams.buildobjs
  use_email = SubjectRelation('EmailAddress', cardinality='*+',
composite='subject')
/home/dhaval/sample/cubicweb/cubicweb/cubes/company/schema.py:10:
DeprecationWarning: SubjectRelation should be explictly imported from
yams.buildobjs
  is_part_of = SubjectRelation('Company', cardinality='1*')
/home/dhaval/sample/cubicweb/cubicweb/cubes/company/schema.py:13:
DeprecationWarning: String should be explictly imported from yams.buildobjs
  rncs = String(fulltextindexed=True, maxsize=32)
/home/dhaval/sample/cubicweb/cubicweb/cubes/company/schema.py:14:
DeprecationWarning: SubjectRelation should be explictly imported from
yams.buildobjs
  subsidiary_of = SubjectRelation('Company', cardinality='?*')
/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py:174:
DeprecationWarning:
/home/dhaval/sample/cubicweb/cubicweb/cubes/company/schema.py: please
explicitly import EntityType
  % (filepath, pname), DeprecationWarning)
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 210, in
load
    files = self._load_definition_files(directories)
  File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/schema.py", line 929,
in _load_definition_files
    self.handle_file(filepath)
  File "/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py", line 289, in
handle_file
    self._pyreader.read_file(filepath)
  File "/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py", line 92, in
read_file
    modname, fdata = self.exec_file(filepath)
  File "/home/dhaval/sample/cubicweb/cubicweb/yams/reader.py", line 155, in
exec_file
    execfile(filepath, fglobals)
  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


On Tue, Jul 21, 2009 at 4:00 PM, Dhaval Sharma <dhavalsharma at gmail.com>wrote:

> I have a mercurial build obtained from given path and i am doing a db-init
> after I change data-store to mysql in sources file of instance and I get the
> error.
>
>
> On Tue, Jul 21, 2009 at 2:20 PM, Sylvain Thénault <
> sylvain.thenault at logilab.fr> wrote:
>
>> On 21 juillet 11:54, Dhaval Sharma wrote:
>> > Wondering if this bug is closed or if there is a patch available for
>> same
>> >
>> >     from yams.buildobjs import (MetaUserEntityType,
>> MetaUserRelationType,
>> > ImportError: cannot import name RichString
>>
>> which module is causing this ? RichString isn't available from
>> yams.buildobjs
>> but from cubicweb.schema (though it should move to yams at some point).
>>
>> --
>> Sylvain Thénault                               LOGILAB, Paris (France)
>> Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
>> Développement logiciel sur mesure:       http://www.logilab.fr/services
>> CubicWeb, the semantic web framework:    http://www.cubicweb.org
>>
>>
>
>
> --
> With Warm Regards,
> Dhaval
> http://dsteps.blogspot.com
> http://www.linkedin.com/in/dhavalsharma
> http://carpoolkaro.appspot.com
>
>


-- 
With Warm Regards,
Dhaval
http://dsteps.blogspot.com
http://www.linkedin.com/in/dhavalsharma
http://carpoolkaro.appspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20090721/852cbafd/attachment-0048.html>


More information about the Cubicweb mailing list