Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80923
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '16,': 0.03; '480': 0.05; 'subsequent': 0.05; 'exception.': 0.09; 'indicates': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '480,': 0.16; 'e[0]': 0.16; 'errno': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'presume': 0.16; 'typeerror:': 0.16; 'wrote:': 0.18; 'module': 0.19; 'trying': 0.19; 'written': 0.21; 'cc:addr:python.org': 0.22; 'error': 0.23; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'getting': 0.31; "skip:' 10": 0.31; 'equivalent.': 0.31; 'fault': 0.31; 'file': 0.32; 'this.': 0.32; 'probably': 0.32; 'another': 0.32; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'library.': 0.36; 'skip:" 50': 0.36; 'possible': 0.36; 'level': 0.37; 'nov': 0.38; 'pm,': 0.38; 'sure': 0.39; 'according': 0.40; 'how': 0.40; 'read': 0.60; "you're": 0.61; 'address': 0.63; 'subject:system': 0.84; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=YV2JycL+Of41VXYmNrJc7IE+FRXj1orNGwPwUodzhH8=; b=P2VGVxArUj5xrSQy6ciyJ0hpV/pzdRN/aNFA5wa1vWkk/qR1FiPWnQpovZYb5W+N6V +Ak2GtJnuEvAwXrhCtml0Qe4RZubCQvfoH0Fzg6ROX2H8eUTqzrNl6v6H83dgV+55+ei 6rRUox2Nw40avhHnyadY6bCKvT94E9aET7ovnaKtE+YhggCSvpRIDjb9BmQdDa1v3MzX 8XMi7xM6wbdHb7tLAGV1hnlaEP1Ie5obZaDg/KwOU1FsI9/cDS0U6M9ZO5afbhQMaoOx ufXWzYWJISW2jsYleHg4jShMJ0UXFmQnjeVQXje4RJpahYgVIe1F4MmV9HRHT15lEKng LEbw== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.110.4 with SMTP id hw4mr21799820igb.14.1416176032448; Sun, 16 Nov 2014 14:13:52 -0800 (PST) |
| In-Reply-To | <54685C24.9040208@bellfamily.org.uk> |
| References | <54685C24.9040208@bellfamily.org.uk> |
| Date | Mon, 17 Nov 2014 09:13:52 +1100 |
| Subject | Re: Interrupted system call |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15915.1416176041.18130.python-list@python.org> (permalink) |
| Lines | 28 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1416176041 news.xs4all.nl 2867 [2001:888:2000:d::a6]:51407 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:80923 |
Show key headers only | View raw
On Sun, Nov 16, 2014 at 7:11 PM, Peter Bell <peter@bellfamily.org.uk> wrote: > File "/usr/lib/python3.4/site-packages/serial/serialposix.py", line 480, > in read > if e[0] != errno.EAGAIN: > TypeError: 'InterruptedError' object is not subscriptable > ===================================================================== > > > I'm not sure how to address the 'InterruptedError'. Can it/should it be > masked at the user code level with a 'try:' block? Or is there another way > to deal with it? At this stage, you're not getting it, because of the cascaded error, so that's the thing to deal with. > I presume that the subsequent error (TypeError) indicates some fault in the > system level library. I'm not sure where/how to report this. Not system-level. According to the traceback, that's coming from line 480 of something in site-packages, which probably means it was installed with pip or equivalent. Do you know where you got hold of this module from? That's who to report this to. It's trying to retrieve the errno from the exception. I suspect the code was written for Python 2, and you're using it with Python 3. It's probably possible to shorten/simplify the code somewhat. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Interrupted system call Chris Angelico <rosuav@gmail.com> - 2014-11-17 09:13 +1100
csiph-web