On Mon, Nov 17, 2014 at 7:55 PM, Peter Otten <__pete...@web.de> wrote:
> I'd suggest a more conservative path: if available install the version that
> comes with your distribution.
>
> $ sudo apt-get python3-serial
>
> might do the job.
Only if the Python to install to was also the distro-installe
On 17/11/14 16:31, Chris Angelico wrote:
On Mon, Nov 17, 2014 at 3:10 PM, Peter Bell 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 lookin
Chris Angelico wrote:
> On Mon, Nov 17, 2014 at 3:10 PM, Peter Bell
> wrote:
>> Many thanks for your helpful response, Chris.
>>
>> On 17/11/14 06:13, Chris Angelico wrote:
>>>
>>> On Sun, Nov 16, 2014 at 7:11 PM, Peter Bell
>>> wrote:
File "/usr/lib/python3.4/site-packages/serial/s
On Mon, Nov 17, 2014 at 3:10 PM, Peter Bell wrote:
> Many thanks for your helpful response, Chris.
>
> On 17/11/14 06:13, Chris Angelico wrote:
>>
>> On Sun, Nov 16, 2014 at 7:11 PM, Peter Bell
>> wrote:
>>>
>>>File "/usr/lib/python3.4/site-packages/serial/serialposix.py", line
>>> 480,
>>> i
Many thanks for your helpful response, Chris.
On 17/11/14 06:13, Chris Angelico wrote:
On Sun, Nov 16, 2014 at 7:11 PM, Peter Bell wrote:
File "/usr/lib/python3.4/site-packages/serial/serialposix.py", line 480,
in read
if e[0] != errno.EAGAIN:
TypeError: 'InterruptedError' object is no
On Sun, Nov 16, 2014 at 7:11 PM, Peter Bell 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
> ===
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 r
On Feb 18, 10:23 am, Jean-Paul Calderone
wrote:
> The exception is caused by a syscall returning EINTR. A syscall will
> return EINTR when a signal arrives and interrupts whatever that
> syscall
> was trying to do. Typically a signal won't interrupt the syscall
> unless you've installed a signal
On Feb 17, 8:46 pm, Philip Winston wrote:
> We have a multiprocess Python program that uses Queue to communicate
> between processes. Recently we've seen some errors while blocked
> waiting on Queue.get:
>
> IOError: [Errno 4] Interrupted system call
>
> What ca
In article
,
Philip Winston wrote:
> We have a multiprocess Python program that uses Queue to communicate
> between processes. Recently we've seen some errors while blocked
> waiting on Queue.get:
>
> IOError: [Errno 4] Interrupted system call
>
> What causes th
On Thu, Feb 17, 2011 at 5:46 PM, Philip Winston wrote:
> We have a multiprocess Python program that uses Queue to communicate
> between processes. Recently we've seen some errors while blocked
> waiting on Queue.get:
>
> IOError: [Errno 4] Interrupted system call
>
>
On Fri, Feb 18, 2011 at 11:46 AM, Philip Winston wrote:
> We have a multiprocess Python program that uses Queue to communicate
> between processes. Recently we've seen some errors while blocked
> waiting on Queue.get:
>
> IOError: [Errno 4] Interrupted system call
>
>
We have a multiprocess Python program that uses Queue to communicate
between processes. Recently we've seen some errors while blocked
waiting on Queue.get:
IOError: [Errno 4] Interrupted system call
What causes the exception? Is it necessary to catch this exception
and manually retry the
mrstevegross wrote:
exceptions.EOFError exceptions.ReferenceError exceptions.ZeroDivisionError
...
exceptions.NotImplementedError exceptions.UnicodeError exceptions.__str__
Is there a single parent exception to all those? Or should I just
write it as:
try:
...
catch Exception:
...
Than
> That works for me. There isn't an "InterruptedSystemCall" error or
> equivalent in the standard exception hierarchy. EnvironmentError is
> the parent of OSError & IOError, which is where you'll most likely be
> encountering that state.
Thanks!
--Steve
--
http://mail.python.org/mailman/listinf
On Jun 9, 2:22 pm, mrstevegross wrote:
> I'm trying to write a try/catch block to handle an "interrupted system
> call". However, I can't seem to locate information on the actual
> typename of the exception. Does anyone know what it would be? I want
> my
mrstevegross wrote:
I'm trying to write a try/catch block to handle an "interrupted system
call". However, I can't seem to locate information on the actual
typename of the exception. Does anyone know what it would be? I want
my code to look like this:
try:
...
except I
> exceptions.EOFError exceptions.ReferenceError exceptions.ZeroDivisionError
>...
> exceptions.NotImplementedError exceptions.UnicodeError exceptions.__str__
Is there a single parent exception to all those? Or should I just
write it as:
try:
...
catch Exception:
...
Thanks,
--Steve
--
http://
I'm trying to write a try/catch block to handle an "interrupted system
call". However, I can't seem to locate information on the actual
typename of the exception. Does anyone know what it would be? I want
my code to look like this:
try:
...
except InterruptedSystemCall # w
On Dec 6, 8:39 pm, Rainy <[EMAIL PROTECTED]> wrote:
> I got an interrupted system call exception in select and I don't know
> what could have caused it. Here's the error:
>
> select.select(inputs, [], [], 9)
> error: (4, 'Interrupted system call
I got an interrupted system call exception in select and I don't know
what could have caused it. Here's the error:
select.select(inputs, [], [], 9)
error: (4, 'Interrupted system call')
Caught an exception, shutting down...
It's py2.3, on mach architecture.
I
En Fri, 16 Feb 2007 18:07:40 -0300, <[EMAIL PROTECTED]> escribió:
> i don't have any signal handlers in my code, but i have no idea what
> is going on in the internals of the pyQt framework that i'm using for
> the GUI.
>
> p = subprocess.Popen('mycommand', shell=True, stdin=subprocess.PIPE,
> std
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> i don't have any signal handlers in my code, but i have no idea what
> is going on in the internals of the pyQt framework that i'm using for
> the GUI.
>
> as far as simply ignoring the exception, that does not seem to work.
> for instan
i don't have any signal handlers in my code, but i have no idea what
is going on in the internals of the pyQt framework that i'm using for
the GUI.
as far as simply ignoring the exception, that does not seem to work.
for instance, here's some code i've tried:
p = subprocess.Popen('mycommand', sh
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> i'm getting the same error when trying to read results from popen2
> within a pyQt window. is this a threading issue? is my pyQt window
> responsible for interrupting the read? i'm fairly new to python so
> i'm struggling to figure this
En Thu, 15 Feb 2007 23:57:29 -0300, <[EMAIL PROTECTED]> escribió:
> i'm getting the same error when trying to read results from popen2
> within a pyQt window. is this a threading issue? is my pyQt window
> responsible for interrupting the read? i'm fairly new to python so
> i'm struggling to fig
i'm getting the same error when trying to read results from popen2
within a pyQt window. is this a threading issue? is my pyQt window
responsible for interrupting the read? i'm fairly new to python so
i'm struggling to figure this out. can you recommend any possible
methods of preventing this? fo
t;./mkt.py", line 361, in process
> self.player.play(command[1])
> File "./mkt.py", line 107, in play
> if self.is_playing():
> File "./mkt.py", line 78, in is_playing
> info = rfd.readlines()
> IOError: [Errno 4] Interrupted system call
>
>
player.play(command[1])
> File "./mkt.py", line 107, in play
> if self.is_playing():
> File "./mkt.py", line 78, in is_playing
> info = rfd.readlines()
> IOError: [Errno 4] Interrupted system call
I don't know if this is a valid behavior or not,
File "./mkt.py", line 78, in is_playing
info = rfd.readlines()
IOError: [Errno 4] Interrupted system call
why? Thank you!
--
LinuX Power
--
http://mail.python.org/mailman/listinfo/python-list
File "./mkt.py", line 78, in is_playing
info = rfd.readlines()
IOError: [Errno 4] Interrupted system call
why? Thank you!
--
LinuX Power
--
http://mail.python.org/mailman/listinfo/python-list
31 matches
Mail list logo