Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80969

Re: Interrupted system call

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.027
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'url:pypi': 0.03; 'binary': 0.07; 'correct.': 0.07; 'psf': 0.10; 'python': 0.11; 'project,': 0.12; 'suggest': 0.14; 'windows': 0.15; 'python3.': 0.16; 'wrote:': 0.18; 'module': 0.19; 'version.': 0.19; 'install': 0.23; 'header:User-Agent:1': 0.23; 'faq': 0.24; 'manager.': 0.24; "shouldn't": 0.24; 'mon,': 0.24; "i've": 0.25; 'header:In-Reply- To:1': 0.27; 'installed': 0.27; 'chris': 0.29; 'points': 0.29; "i'm": 0.30; 'index,': 0.31; 'minor': 0.31; 'this.': 0.32; 'compatible': 0.32; 'supposed': 0.32; 'interface': 0.32; 'says': 0.33; 'url:python': 0.33; "i'd": 0.34; 'advice': 0.35; 'case,': 0.35; 'but': 0.35; 'there': 0.35; 'version': 0.36; 'set.': 0.36; 'thanks': 0.36; "i'll": 0.36; 'url:org': 0.36; 'should': 0.36; 'so,': 0.37; 'being': 0.38; 'system,': 0.38; 'nov': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'address.': 0.39; 'skip:- 60': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'worry': 0.60; 'further': 0.61; 'name': 0.63; 'charset:windows-1252': 0.65; 'default': 0.69; 'serial': 0.72; 'alternative.': 0.84; 'subject:system': 0.84; 'from:addr:peter': 0.91
Date Mon, 17 Nov 2014 17:58:44 +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 Re: Interrupted system call
References <54685C24.9040208@bellfamily.org.uk> <CAPTjJmqbyc7G2AssMA+mPEzmuQhL8=22-3bkEnY2QhTNAf+MNQ@mail.gmail.com> <54697545.2030207@bellfamily.org.uk> <CAPTjJmog6yCeP_1oRvaiRd1JJyYBXqcS+J08SehfqiUS7DUEVw@mail.gmail.com>
In-Reply-To <CAPTjJmog6yCeP_1oRvaiRd1JJyYBXqcS+J08SehfqiUS7DUEVw@mail.gmail.com>
Content-Type text/plain; charset=windows-1252; 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-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.15955.1416218335.18130.python-list@python.org> (permalink)
Lines 54
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416218335 news.xs4all.nl 2938 [2001:888:2000:d::a6]:52851
X-Complaints-To abuse@xs4all.nl
Path csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:80969

Show key headers only | View raw



On 17/11/14 16:31, Chris Angelico wrote:
> On Mon, Nov 17, 2014 at 3:10 PM, Peter Bell <peter@bellfamily.org.uk> wrote:
>> Is there a better way to interface to a serial port from Python 3?  I've
>> found a reference in the PSF 3.3.6 FAQ which points to pyserial on
>> sourceforge.
>
> ... a solution to this. I would suggest looking on PyPI, the Python
> Package Index, to see what you can get for Python 3. In your case, you
> may well be in luck:
>
> https://pypi.python.org/pypi/pyserial
>
> There's a version that claims to work with any Python version (though
> there's some minor disagreement; the metadata says 2.3-2.7 and
> 3.0-3.3, but the Windows binaries say 2.4-2.7 and 3.0-3.4). I suspect
> the "2.7" in the name is actually the version of PySerial, and it's
> coincidental that that happens also to be a Python version.

I think that you are correct.  pyserial-2.7 is supposed to be compatible 
with python3.

> Since you seem to be on a POSIX system, you shouldn't need to worry
> about the provided binary installers. Use pip3 to install it for your
> Python 3, and you should be all set.

On further investigation, it turns out that I installed pyserial from my 
distro's package manager.  The default python is 3, with python2 being 
the alternative.  Now, to go with this, I'd installed python-pyserial, 
not python2-pyserial:

==================================================
[root@automate ~]# pacman -Ss pyserial
community/python-pyserial 2.7-4 [installed]
     Multiplatform Serial Port Module for Python
community/python2-pyserial 2.7-4
     Multiplatform Serial Port Module for Python
==================================================

So, yes, my understanding is that the pyserial-2.7 which I have 
installed should be compatible with Python3.

Now I have to work out how to make the report to Chris Liechti - I'll 
try his gmx.net email address.

Thanks for all your advice - I'm enjoying my project, and loving Python!

Regards,
Peter.

-- 
-------------------------------------------------------------------
Peter Bell

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Interrupted system call Peter Bell <peter@bellfamily.org.uk> - 2014-11-17 17:58 +0800

csiph-web