sonyxperiadev / pygerrit

MIT License
52 stars 52 forks source link

stream.py ImportError: cannot import name poll when running on Mac #1

Closed deenseth closed 11 years ago

deenseth commented 11 years ago

When I tried to run example.py on Mac I ran into error below. This suggests that the poll() function is not available on Mac OS.

Traceback (most recent call last): File "example.py", line 34, in from pygerrit.client import GerritClient File "/Users/deenseth/workspaces/wsGerrit/pygerrit/pygerrit/client.py", line 33, in from .stream import GerritStream File "/Users/deenseth/workspaces/wsGerrit/pygerrit/pygerrit/stream.py", line 31, in from select import poll, POLLIN ImportError: cannot import name poll

dpursehouse commented 11 years ago

Thanks for reporting this.

I'll try to fix it this week.

dpursehouse commented 11 years ago

This has been tested on Mac OSX 10.8.4 with Python 2.7.2

There are some more changes coming; when they are merged I will make a new release.