Run into this error:
ImportError: No module named schema.vocabulary
Fix it by changing the imports in vocabulary.py, from:
from zope.interface import implements from zope.app.schema.vocabulary import IVocabularyFactory from zope.schema.vocabulary import SimpleVocabulary
to:
from zope.interface import implements from zope.schema.interfaces import IVocabularyFactory from zope.schema.vocabulary import SimpleVocabulary
zope.app.schema 3.5.0 removes deprecated vocabulary directive.
No comments:
Post a Comment