Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Bernardo Sulzbach Newsgroups: comp.lang.python Subject: Re: Exception handling for socket.error in Python 3.5/RStudio Date: Fri, 5 Feb 2016 19:37:19 -0200 Lines: 16 Message-ID: References: <1067e50c-bcbd-464e-8013-754bd66fda91@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de CN5YFR9GhS37ZLM/zk4CHQ5ydA6XG/8SWzUooiK+C8fw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:Python': 0.05; 'importerror:': 0.05; 'python': 0.10; '_ssl': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:handling': 0.16; 'wrote:': 0.16; 'seems': 0.23; 'ticket': 0.23; 'import': 0.24; 'header:In- Reply-To:1': 0.24; 'url:bugs': 0.24; "i've": 0.25; 'header:User- Agent:1': 0.26; 'coding': 0.27; 'subject:/': 0.30; 'code': 0.30; "can't": 0.32; 'related': 0.32; 'source': 0.33; 'url:python': 0.33; 'message-id:@gmail.com': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'to:addr :python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:localhost.localdomain': 0.38; 'received:209': 0.38; 'received:localdomain': 0.38; 'received:209.85.220': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'email addr:gmail.com': 0.62; 'charset:windows-1252': 0.62; 'believe': 0.66; 'online': 0.71 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=qKWksiOJIBfRk2f9sX2LNAg8V+wa4m+X5htlN4wzkbQ=; b=skyrtwAxeAAJSOh7i8YXU0lNh39zBxtcn0zjBpMlmUmHDHzrEGnnctB+McQp5xepeQ bBh4h1QRhJ/12+H8Szej5oCw87tizAkGPsLUJLlCyrCdQjcBCNQrokGHdrFx/xHV1hof kmHd4I0JQ1oni+xPPBsf1KZe9GVtrjpZTnzk58IDh+67bIip00JkJjzJPvoPAAfSIcxP +gOUQomKEdfO1OJEZ17dAhgyyeo6DGuyfaBmRQVVvWLyN/oZuAMCo+Y33MoTLyfOqyYP vhIrI74ZShbPreS7rQvZnszyGCG5cyC0poOQnE+BXC2oKi5CNOB2rhSwVYkfIyJhr5IB Yv9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=qKWksiOJIBfRk2f9sX2LNAg8V+wa4m+X5htlN4wzkbQ=; b=X/8SfXBRfY+UXqk1oHJPqh6PztRZNzSkhEVrn/jYvEimPhb+Ue4rS7eVcNuiua2QBg xE8SixlYk3ZaWQVnT0uQxyalIagaYwzNGZuVz7r4WnVJKlmW4tzE2GPAJ9rfKutTedlu Q/gu6Bt1xejMkdVyRTqzwQWPwYZXz5f/GwAwF4ekkeydDqGz054CxbJJUQhGK47Kxykf n5mRvPpAdXd2S/RqI8C61z7P8Q5/SF+JdgH3RyAvgZPi/IpxhmQdh59JrQXzeObgzUtb C7vtx7bW74nJNcR9zSOZTiWiVFXNNGMqHGn9WmREa2AN+DnGCwxN3jIHeG4sRAHsKpqP YIbw== X-Gm-Message-State: AG10YOTE9LQWvugKdEBag+UXQxjjGeWHNWLLuGO5uPkxCH15rXNPyJkhZqImsNWoiXVQsA== X-Received: by 10.55.73.199 with SMTP id w190mr19218752qka.77.1454708242977; Fri, 05 Feb 2016 13:37:22 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102561 On 02/05/2016 07:26 PM, shaunak.bangale@gmail.com wrote: > > from _ssl import RAND_status, RAND_egd, RAND_add > ImportError: cannot import name 'RAND_egd' > I believe I've already seen this issue myself. It has to do with LibreSSL not having RAND_egd for some reason I can't recall. This seems to be the related ticket https://bugs.python.org/issue21356 On 02/05/2016 07:26 PM, shaunak.bangale@gmail.com wrote: > I am new to coding and this code has been borrowed from an online > source but I can see same code working on mac+Rstudio+python combo. Are you sure that the Python you talk about is 3.5?