From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#22137: python-urwid on x86_64: AsyncEventLoopTest Date: Fri, 1 Jan 2016 17:50:26 -0500 Message-ID: <20160101225026.GA14770@jasmine> References: <20151210070556.GA26454@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFBBp-0004zm-Lk for bug-guix@gnu.org; Fri, 01 Jan 2016 20:41:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFBBm-0000Ge-Ba for bug-guix@gnu.org; Fri, 01 Jan 2016 20:41:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:45873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFBBm-0000Ga-8P for bug-guix@gnu.org; Fri, 01 Jan 2016 20:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aFBBm-0006CR-3m for bug-guix@gnu.org; Fri, 01 Jan 2016 20:41:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF8Wl-0007SG-NR for bug-guix@gnu.org; Fri, 01 Jan 2016 17:50:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF8Wi-0003p8-G7 for bug-guix@gnu.org; Fri, 01 Jan 2016 17:50:31 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF8Wi-0003p4-9P for bug-guix@gnu.org; Fri, 01 Jan 2016 17:50:28 -0500 Received: from localhost (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 503E6680128 for ; Fri, 1 Jan 2016 17:50:27 -0500 (EST) Content-Disposition: inline In-Reply-To: <20151210070556.GA26454@jasmine> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 22137@debbugs.gnu.org On Thu, Dec 10, 2015 at 02:05:56AM -0500, Leo Famulari wrote: > python-urwid-1.3.0 fails to build on x86_64 during the > "AsyncioEventLoopTest" test with the error "KeyError: '5 is not > registered'". It has failed repeatedly for some time now. It fails in > the same way when updated to python-urwid-1.3.1. > > I looked for interesting changes made between the last successful build > and the first failing build. Notably, this range includes the upgrade > from python-3.3.5 to python-3.4.3 (08c04509). Asyncio was integrated > into the Python standard library in 3.4 — previously it had been an > external library. [0] Our python-3.4.3 package passes its 'test_asyncio' > test, FWIW. > > I entered the failed build tree and successfully ran the tests using the > python-3.4.3-7 [1] installed by Debian Stretch. That only tells us so > much, but I think it does indicate either a bug in our python-3.4.3, or > some problem with python-urwid caused by the unfamiliar Guix build > environment. > > Here's the hydra.gnu.org page: > http://hydra.gnu.org/build/861615 BTW, I filed a bug upstream: https://github.com/urwid/urwid/issues/164 No response yet, although I should add some more information to the bug report. In the meantime, what about downgrading python-urwid to 1.2.2 and leaving python2-urwid at 1.3.0? 1.2.2 works for the software I am trying to package, and currently there are no users of python-urwid. > > Here's the failing part of the build log: > > --8<---------------cut here---------------start------------->8--- > > ====================================================================== > 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/selector_events.py", line 234, in add_reader > key = self._selector.get_key(fd) > File "/gnu/store/13n8xbi9wv9pigfyhir007qadr81jq46-python-3.4.3/lib/python3.4/selectors.py", 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 "/tmp/nix-build-python-urwid-1.3.0.drv-0/urwid-1.3.0/build/lib.linux-x86_64-3.4/urwid/tests/test_event_loops.py", line 33, in test_remove_watch_file > handle = evl.watch_file(5, lambda: None) > File "/tmp/nix-build-python-urwid-1.3.0.drv-0/urwid-1.3.0/build/lib.linux-x86_64-3.4/urwid/main_loop.py", line 1263, in watch_file > self._loop.add_reader(fd, callback) > File "/gnu/store/13n8xbi9wv9pigfyhir007qadr81jq46-python-3.4.3/lib/python3.4/asyncio/selector_events.py", line 237, in add_reader > (handle, None)) > File "/gnu/store/13n8xbi9wv9pigfyhir007qadr81jq46-python-3.4.3/lib/python3.4/selectors.py", line 402, in register > self._epoll.register(key.fd, epoll_events) > PermissionError: [Errno 1] Operation not permitted > > ---------------------------------------------------------------------- > Ran 284 tests in 0.384s > > FAILED (errors=1) > phase `check' failed after 4.6 seconds > --8<---------------cut here---------------end--------------->8--- > > [0] > https://docs.python.org/3/library/asyncio.html > > [1] Reported by `apt-cache show python3`, this python-3.4.3-7's .deb has > a SHA256 hash of: > 53fa197ee35501152b1897bf84ab6123f7f65201efdddc2e4aa882de494f3870