conestack / node

Other
24 stars 23 forks source link

No module named `component.event` #6

Closed jacobsvante closed 10 years ago

jacobsvante commented 10 years ago

Did a regular pip install node. Got this:

In [1]: from node.base import BaseNode
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-a0394c9e69d8> in <module>()
----> 1 from node.base import BaseNode

/Users/jacob/.venvs/vsync/lib/python2.7/site-packages/node/base.py in <module>()
      1 from plumber import plumber
----> 2 from .behaviors import (
      3     Adopt,
      4     Nodespaces,
      5     Attributes,

/Users/jacob/.venvs/vsync/lib/python2.7/site-packages/node/behaviors/__init__.py in <module>()
     19 )
     20 # from .common import Wrap
---> 21 from .lifecycle import (
     22     Lifecycle,
     23     AttributesLifecycle,

/Users/jacob/.venvs/vsync/lib/python2.7/site-packages/node/behaviors/lifecycle.py in <module>()
      5 )
      6 from zope.interface import implementer
----> 7 from zope.component.event import objectEventNotify
      8 from ..interfaces import (
      9     ILifecycle,

ImportError: No module named component.event

EDIT 1: I should mention that pip freeze returns node==0.9.11. EDIT 2: Manually installing zope.component fixed it. Why isn't it in the package's requirements?

rnixx commented 10 years ago

hi, thanks for the report. this happened due to evolution of zope.* packages, where at some place the dependency to zope.component was removed.

new release here: https://pypi.python.org/pypi/node/0.9.12