Modify ↓
Ticket #10737 (closed Bug Report - General: Fixed)
Opened 12 months ago
Last modified 8 months ago
Poll.select() not portable to OS X
| Reported by: | Craig Treleaven <ctreleaven@…> | Owned by: | wagnerrp |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.26 |
| Component: | Bindings - Python | Version: | 0.25-fixes |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
select.poll()--used in utility.py--is not supported on the OS X, see following. <http://bugs.python.org/issue5154> One reference I found suggests to use select.kevent() instead. <https://github.com/mxcl/homebrew/issues/9531>
$ python
Python 2.6.8 (unknown, Apr 14 2012, 04:15:37)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from MythTV import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/lib/python2.6/site-packages/MythTV/__init__.py", line 36, in <module>
from utility import *
File "/opt/local/lib/python2.6/site-packages/MythTV/utility.py", line 8, in <module>
from select import select, poll, POLLHUP, POLLIN, POLLOUT
ImportError: cannot import name poll
Attachments
Change History
comment:1 Changed 12 months ago by wagnerrp
- Status changed from new to accepted
- Milestone changed from unknown to 0.26
comment:3 Changed 8 months ago by wagnerrp
- Status changed from accepted to closed
- Version changed from Unspecified to 0.25-fixes
- Resolution set to Fixed
- Milestone changed from 0.26.1 to 0.26
I'm marking this one fixed, unless someone with an OSX machine tests it and finds it not working.
Note: See
TracTickets for help on using
tickets.

fff02e698418de20a918480694ac74661ce666db
Add data poller loop for kqueue. This adds an alternate poller loop for systems that use kqueue rather than poll. Limited testing seems to work fine on FreeBSD, so it should work similarly on OSX.