Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncioEventLoopTest failure #164

lfam opened this issue Dec 8, 2015 · 1 comment


Copy link

commented Dec 8, 2015

I'm trying to build urwid-1.3.0 with python-3.4.3 on x86_64, but it fails while testing Python's asyncio features.

There is a full build log available from this page:

I reproduced the error with urwid-1.3.1.

It fails during testing, specifically like this:

ERROR: test_remove_watch_file (urwid.tests.test_event_loops.AsyncioEventLoopTest)
Traceback (most recent call last):
  File "/gnu/store/13n8xbi9wv9pigfyhir007qadr81jq46-python-3.4.3/lib/python3.4/asyncio/", line 234, in add_reader
    key = self._selector.get_key(fd)
  File "/gnu/store/13n8xbi9wv9pigfyhir007qadr81jq46-python-3.4.3/lib/python3.4/", line 182, in get_key
    raise KeyError("{!r} is not registered".format(fileobj)) from None
KeyError: '5 is not registered'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/gnu/tmp/nix-build-python-urwid-1.3.0.drv-0/urwid-1.3.0/build/lib.linux-x86_64-3.4/urwid/tests/", line 33, in test_remove_watch_file
    handle = evl.watch_file(5, lambda: None)
  File "/gnu/tmp/nix-build-python-urwid-1.3.0.drv-0/urwid-1.3.0/build/lib.linux-x86_64-3.4/urwid/", line 1263, in watch_file
    self._loop.add_reader(fd, callback)
  File "/gnu/store/13n8xbi9wv9pigfyhir007qadr81jq46-python-3.4.3/lib/python3.4/asyncio/", line 237, in add_reader
    (handle, None))
  File "/gnu/store/13n8xbi9wv9pigfyhir007qadr81jq46-python-3.4.3/lib/python3.4/", line 402, in register
    self._epoll.register(key.fd, epoll_events)
PermissionError: [Errno 1] Operation not permitted

Ran 284 tests in 0.399s

FAILED (errors=1)

This comment has been minimized.

Copy link

commented Jun 1, 2017

Same here.

mwhudson added a commit to mwhudson/urwid that referenced this issue Jun 7, 2017
pass a known-good file descriptor to watch_file rather than hard-coding 5

Fixes urwid#164
@wardi wardi closed this in #238 Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.