teepark / greenhouse

non-blocking IO with coroutines to mimic blocking IO with threads
BSD 3-Clause "New" or "Revised" License
36 stars 5 forks source link

epoll errror on OS X Mountain Lion #11

Closed dsully closed 12 years ago

dsully commented 12 years ago

Encountering this on one host, but not another, both running 10.8 & Python 2.6.7 (Apple shipped):

$ process-deployment-queue -n -f esv4
Traceback (most recent call last):
  File "/Users/dsully/.virtualenvs/test/bin/process-deployment-queue", line 7, in <module>
    execfile(__file__)
  File "/Users/dsully/dev/tools/apps/deployment/bin/process-deployment-queue", line 5, in <module>
    import greenhouse; greenhouse.emulation.patch()
  File "/Users/dsully/.virtualenvs/test/lib/python2.6/site-packages/greenhouse/__init__.py", line 13, in <module>
    from greenhouse.emulation import *
  File "/Users/dsully/.virtualenvs/test/lib/python2.6/site-packages/greenhouse/emulation/__init__.py", line 227, in <module>
    from . import select
  File "/Users/dsully/.virtualenvs/test/lib/python2.6/site-packages/greenhouse/emulation/select.py", line 63, in <module>
    class green_epoll(object):
  File "/Users/dsully/.virtualenvs/test/lib/python2.6/site-packages/greenhouse/emulation/select.py", line 110, in green_epoll
    eventmask=select.EPOLLIN | select.EPOLLOUT | select.EPOLLPRI):
AttributeError: 'module' object has no attribute 'EPOLLIN'

Not sure why one host doesn't have this problem, but either way - OS X doesn't have epoll.

teepark commented 12 years ago

should be fixed in c2f1a4acf7

teepark commented 12 years ago

I suspect it was on one host and not another because you pulled greenhouse at different times. I actually recently introduced this issue.