[Grok-dev] Grok and zc.vault
Edu
iamedu at gmail.com
Tue Aug 17 10:20:18 EDT 2010
Hey, I'm building an app which has to use a versioning system,
zc.vault looks very good but I can't manage to get it working, I get the
following error:
ComponentLookupError: (<InterfaceClass zope.intid.interfaces.IIntIds>, '')
I also get the error when trying out the example in the README,
>>> from zc.vault.vault import Vault, Inventory
>>> from zc.vault.core import Manifest
>>> from zc.vault import interfaces
>>> from zope.interface.verify import verifyObject
>>> v = Vault()
>>> len(v)
0
>>> verifyObject(interfaces.IVault, v)
True
>>> i = Inventory(vault=v)
>>> verifyObject(interfaces.IInventory, i)
When I get here instead of gettint "True" I get:
verifyObject(interfaces.IInventory, i)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File
"/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py",
line 97, in verifyObject
return _verify(iface, candidate, tentative, vtype='o')
File
"/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py",
line 56, in _verify
attr = getattr(candidate, name)
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/vault.py",
line 613, in previous
p = self.manifest.previous
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line
1143, in previous
return self.base_source
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line
415, in base_source
return self.getBaseSource(self.vault)
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line
406, in getBaseSource
intids = component.getUtility(zope.app.intid.interfaces.IIntIds)
File
"/home/iamedu/.buildout/eggs/zope.component-3.9.1-py2.6.egg/zope/component/_api.py",
line 171, in getUtility
raise ComponentLookupError(interface, name)
ComponentLookupError: (<InterfaceClass zope.intid.interfaces.IIntIds>, '')
>>> verifyObject(interfaces.IInventory, i)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File
"/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py",
line 97, in verifyObject
return _verify(iface, candidate, tentative, vtype='o')
File
"/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py",
line 56, in _verify
attr = getattr(candidate, name)
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/vault.py",
line 613, in previous
p = self.manifest.previous
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line
1143, in previous
return self.base_source
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line
415, in base_source
return self.getBaseSource(self.vault)
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line
406, in getBaseSource
intids = component.getUtility(zope.app.intid.interfaces.IIntIds)
File
"/home/iamedu/.buildout/eggs/zope.component-3.9.1-py2.6.egg/zope/component/_api.py",
line 171, in getUtility
raise ComponentLookupError(interface, name)
ComponentLookupError: (<InterfaceClass zope.intid.interfaces.IIntIds>, '')
>>> verifyObject(interfaces.IInventory, i)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File
"/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py",
line 97, in verifyObject
return _verify(iface, candidate, tentative, vtype='o')
File
"/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py",
line 56, in _verify
attr = getattr(candidate, name)
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/vault.py",
line 613, in previous
p = self.manifest.previous
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line
1143, in previous
return self.base_source
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line
415, in base_source
return self.getBaseSource(self.vault)
File
"/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line
406, in getBaseSource
intids = component.getUtility(zope.app.intid.interfaces.IIntIds)
File
"/home/iamedu/.buildout/eggs/zope.component-3.9.1-py2.6.egg/zope/component/_api.py",
line 171, in getUtility
raise ComponentLookupError(interface, name)
ComponentLookupError: (<InterfaceClass zope.intid.interfaces.IIntIds>, '')
Any ideas of what might be happening?
Thanks!
--
Eduardo Díaz Real
iamedu at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20100817/7b666af5/attachment.html
More information about the Grok-dev
mailing list