Hey, I'm building an app which has to use a versioning system,<br>zc.vault looks very good but I can't manage to get it working, I get the following error:<div><br>ComponentLookupError: (<InterfaceClass zope.intid.interfaces.IIntIds>, '')<div>
<br>I also get the error when trying out the example in the README,<br><br>>>> from zc.vault.vault import Vault, Inventory<br>>>> from zc.vault.core import Manifest<br>>>> from zc.vault import interfaces<br>
>>> from zope.interface.verify import verifyObject<br>>>> v = Vault()<br>>>> len(v)<br>0<br>>>> verifyObject(interfaces.IVault, v)<br>True<br><br>>>> i = Inventory(vault=v)<br>
>>> verifyObject(interfaces.IInventory, i)<div><br></div><div>When I get here instead of gettint "True" I get:</div><div><br></div><div><div>verifyObject(interfaces.IInventory, i)</div><div>Traceback (most recent call last):</div>
<div> File "<console>", line 1, in <module></div><div> File "/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py", line 97, in verifyObject</div>
<div> return _verify(iface, candidate, tentative, vtype='o')</div><div> File "/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py", line 56, in _verify</div>
<div> attr = getattr(candidate, name)</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/vault.py", line 613, in previous</div><div> p = self.manifest.previous</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line 1143, in previous</div>
<div> return self.base_source</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line 415, in base_source</div><div> return self.getBaseSource(self.vault)</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line 406, in getBaseSource</div>
<div> intids = component.getUtility(zope.app.intid.interfaces.IIntIds)</div><div> File "/home/iamedu/.buildout/eggs/zope.component-3.9.1-py2.6.egg/zope/component/_api.py", line 171, in getUtility</div><div> raise ComponentLookupError(interface, name)</div>
<div>ComponentLookupError: (<InterfaceClass zope.intid.interfaces.IIntIds>, '')</div><div>>>> verifyObject(interfaces.IInventory, i)</div><div>Traceback (most recent call last):</div><div> File "<console>", line 1, in <module></div>
<div> File "/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py", line 97, in verifyObject</div><div> return _verify(iface, candidate, tentative, vtype='o')</div>
<div> File "/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py", line 56, in _verify</div><div> attr = getattr(candidate, name)</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/vault.py", line 613, in previous</div>
<div> p = self.manifest.previous</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line 1143, in previous</div><div> return self.base_source</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line 415, in base_source</div>
<div> return self.getBaseSource(self.vault)</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line 406, in getBaseSource</div><div> intids = component.getUtility(zope.app.intid.interfaces.IIntIds)</div>
<div> File "/home/iamedu/.buildout/eggs/zope.component-3.9.1-py2.6.egg/zope/component/_api.py", line 171, in getUtility</div><div> raise ComponentLookupError(interface, name)</div><div>ComponentLookupError: (<InterfaceClass zope.intid.interfaces.IIntIds>, '')</div>
<div>>>> verifyObject(interfaces.IInventory, i)</div><div>Traceback (most recent call last):</div><div> File "<console>", line 1, in <module></div><div> File "/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py", line 97, in verifyObject</div>
<div> return _verify(iface, candidate, tentative, vtype='o')</div><div> File "/home/iamedu/.buildout/eggs/zope.interface-3.5.3-py2.6-linux-i686.egg/zope/interface/verify.py", line 56, in _verify</div>
<div> attr = getattr(candidate, name)</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/vault.py", line 613, in previous</div><div> p = self.manifest.previous</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line 1143, in previous</div>
<div> return self.base_source</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line 415, in base_source</div><div> return self.getBaseSource(self.vault)</div><div> File "/home/iamedu/.buildout/eggs/zc.vault-0.10-py2.6.egg/zc/vault/core.py", line 406, in getBaseSource</div>
<div> intids = component.getUtility(zope.app.intid.interfaces.IIntIds)</div><div> File "/home/iamedu/.buildout/eggs/zope.component-3.9.1-py2.6.egg/zope/component/_api.py", line 171, in getUtility</div><div> raise ComponentLookupError(interface, name)</div>
<div>ComponentLookupError: (<InterfaceClass zope.intid.interfaces.IIntIds>, '')</div><div><br></div><div>Any ideas of what might be happening?</div><div><br></div><div>Thanks!</div><br>--<br>Eduardo Díaz Real<br>
iamedu at <a href="http://gmail.com">gmail.com</a><br></div></div></div>