diff --git a/schema.py b/schema.py
index e7905e8e5931df44e093bcf8cb5de4176f5289e8_c2NoZW1hLnB5..079c1fe3b1de6d50f7664d020a86c1c0d652b562_c2NoZW1hLnB5 100644
--- a/schema.py
+++ b/schema.py
@@ -3,8 +3,11 @@
 :copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
-from yams.buildobjs import EntityType, RelationType, SubjectRelation, RichString
-
+from yams.buildobjs import EntityType, RelationType, SubjectRelation
+try:
+    from yams.buildobjs import RichString
+except:
+    from cubicweb.schema import RichString
 from cubicweb.schema import RRQLExpression
 
 class Comment(EntityType):