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


Groups > comp.lang.python > #78923

Re: ZMQError: Resource temporarily unavailable

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'causing': 0.04; 'string': 0.09; 'machines.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'def': 0.12; 'blocking': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'recieved': 0.16; 'subject:unavailable': 0.16; 'unavailable': 0.16; 'exception': 0.16; 'seems': 0.21; 'header :User-Agent:1': 0.23; 'non': 0.24; 'header:X-Complaints-To:1': 0.27; 'function': 0.29; 'operations,': 0.30; 'skip:( 20': 0.30; 'mod': 0.31; 'writes:': 0.31; 'file': 0.32; 'run': 0.32; 'skip:s 30': 0.35; 'there': 0.35; 'charset:us-ascii': 0.36; 'error.': 0.37; 'two': 0.37; 'to:addr:python-list': 0.38; 'resource': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'skip:z 20': 0.60; 'temporarily': 0.60; 'most': 0.60; 'received:217': 0.63; 'email addr:gmail.com': 0.63; 'between': 0.67; 'receive': 0.70; '650,': 0.84; 'succeed.': 0.84; 'subject:Resource': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From dieter <dieter@handshake.de>
Subject Re: ZMQError: Resource temporarily unavailable
Date Fri, 10 Oct 2014 07:57:49 +0200
References <0ac40dbc-105b-42d4-91f8-d0937bad30cf@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Gmane-NNTP-Posting-Host pd9e085b8.dip0.t-ipconnect.de
User-Agent Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux)
Cancel-Lock sha1:54z86Ej29Oo5myupMVKxYhbNfjM=
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.14738.1412920684.18130.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1412920684 news.xs4all.nl 2891 [2001:888:2000:d::a6]:58112
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3950
X-Received-Body-CRC 1993141169
Xref csiph.com comp.lang.python:78923

Show key headers only | View raw


karthik.sharma@gmail.com writes:

> I am using zero-mq for IPC between two machines.
>
> My zmq function is given below
>
>     def recieve_messages(self):
>              string = self.sub_socket.recv(flags=zmq.NOBLOCK)
>              print('flow mod messages recieved {}'.format(string))
>
>
> When I run the program however I get the following error.
>
>       string = self.sub_socket.recv(flags=zmq.NOBLOCK)
>       File "socket.pyx", line 616, in zmq.core.socket.Socket.recv (zmq/core/socket.c:5961)
>       File "socket.pyx", line 650, in zmq.core.socket.Socket.recv (zmq/core/socket.c:5832)
>       File "socket.pyx", line 119, in zmq.core.socket._recv_copy (zmq/core/socket.c:1669)
>     ZMQError: Resource temporarily unavailable
>
>
> Can someone explain what is likely causing this error.

The most likely cause is that you try to receive data while there
is none available. Usually, with non blocking operations, you
start them only after you know they can succeed. If the operation
is impossible, you will get an exception (and "Resource temporarily
unavailable" seems a good candidate).

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


Thread

ZMQError: Resource temporarily unavailable karthik.sharma@gmail.com - 2014-10-08 23:16 -0700
  Re: ZMQError: Resource temporarily unavailable dieter <dieter@handshake.de> - 2014-10-10 07:57 +0200

csiph-web