Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80897
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <peter@bellfamily.org.uk> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.014 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'python,': 0.02; 'subsequent': 0.05; 'error:': 0.07; 'python3': 0.07; 'exception,': 0.09; 'indicates': 0.09; '36,': 0.16; '480,': 0.16; 'e[0]': 0.16; 'lcd': 0.16; 'presume': 0.16; 'reasonably': 0.16; 'typeerror:': 0.16; 'exception': 0.16; 'producing': 0.19; 'header:User-Agent:1': 0.23; 'error': 0.23; 'handling': 0.26; 'appreciated.': 0.29; "i'm": 0.30; 'code': 0.31; "skip:' 10": 0.31; 'fault': 0.31; 'libraries': 0.31; 'loading': 0.31; 'file': 0.32; 'this.': 0.32; 'interface': 0.32; 'another': 0.32; 'running': 0.33; '(most': 0.33; 'screen': 0.34; 'advice': 0.35; 'skip:s 30': 0.35; 'there': 0.35; 'library.': 0.36; 'skip:" 50': 0.36; 'hi,': 0.36; 'level': 0.37; 'to:addr:python-list': 0.38; 'recent': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'skip:- 60': 0.39; 'skip:p 20': 0.39; 'how': 0.40; 'even': 0.60; 'read': 0.60; 'new': 0.61; 'address': 0.63; 'home': 0.69; 'serial': 0.72; 'philippines.': 0.84; 'subject:system': 0.84; 'from:addr:peter': 0.91; 'interrupted': 0.96 |
| Date | Sun, 16 Nov 2014 16:11:16 +0800 |
| From | Peter Bell <peter@bellfamily.org.uk> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Interrupted system call |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - host.quksdns9.net |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - bellfamily.org.uk |
| X-Get-Message-Sender-Via | host.quksdns9.net: authenticated_id: peter@bellfamily.org.uk |
| X-Source | |
| X-Source-Args | |
| X-Source-Dir | |
| X-Mailman-Approved-At | Sun, 16 Nov 2014 21:20:21 +0100 |
| 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.15895.1416169223.18130.python-list@python.org> (permalink) |
| Lines | 50 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1416169223 news.xs4all.nl 2902 [2001:888:2000:d::a6]:60773 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:80897 |
Show key headers only | View raw
Hi,
I'm new to Python, using Python3 on RaspberryPi/ArchLinux for a home
automation project.
I started off with interfacing an LCD screen (serial interface) and have
this working reasonably well.
Then I received a couple of interface boards. I attached one of these,
together with the serial interface for the LCD.
Even without loading (importing) any support libraries for the new
interface board, the code which was running perfectly well before is now
producing an error:
=====================================================================
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/serial/serialposix.py", line
461, in read
ready,_,_ = select.select([self.fd],[],[], self._timeout)
InterruptedError: [Errno 4] Interrupted system call
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./water.py", line 36, in <module>
picasso.putstr(strftime("%a, %d %b %Y %X"),1,1)
File "/root/picasso.py", line 44, in putstr
port.read(1)
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?
I presume that the subsequent error (TypeError) indicates some fault in
the system level library. I'm not sure where/how to report this.
Any advice would be appreciated.
--
-------------------------------------------------------------------
Peter Bell
Tagum City, Philippines.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Interrupted system call Peter Bell <peter@bellfamily.org.uk> - 2014-11-16 16:11 +0800
csiph-web