Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Exception handling for socket.error in Python 3.5/RStudio Date: Sat, 6 Feb 2016 08:57:53 +1100 Lines: 36 Message-ID: References: <1067e50c-bcbd-464e-8013-754bd66fda91@googlegroups.com> <56B50F58.90901@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de lSqRwQhK7072a5XEQdcXBggiEeBJ28oWjOa/yPzc9Sgw== Return-Path: 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; 'subject:Python': 0.05; 'sys': 0.05; 'cc:addr:python-list': 0.09; 'turn,': 0.09; 'python': 0.10; "(it's": 0.16; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'passed.': 0.16; 'reason.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:handling': 0.16; 'such,': 0.16; 'there?': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'test.': 0.18; '>>>': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'work,': 0.21; 'minor': 0.22; 'am,': 0.23; 'feb': 0.23; 'sat,': 0.23; 'import': 0.24; 'header :In-Reply-To:1': 0.24; 'script': 0.25; "doesn't": 0.26; 'installed': 0.26; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.27; 'unlikely': 0.29; 'subject:/': 0.30; 'up.': 0.32; 'run': 0.33; 'picking': 0.33; 'running': 0.34; 'that,': 0.34; 'received:google.com': 0.35; 'expected': 0.35; 'problem.': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'say': 0.37; 'received:209.85.213': 0.37; 'things': 0.38; 'version': 0.38; 'received:209': 0.38; 'stuff': 0.38; 'wrong': 0.38; 'means': 0.39; 'test': 0.39; 'system.': 0.39; 'some': 0.40; 'high': 0.60; 'your': 0.60; 'different': 0.63; 'bernardo': 0.84; 'chrisa': 0.84; 'notably,': 0.84; "that'll": 0.84; "there'll": 0.84; 'to:none': 0.91; 'smoke': 0.91; 'try.': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=BxNKGlp//aRa9Z5E6Xxi6XZzCOgGMnJJGrvAtg1br/o=; b=W4cigBC41/7WwpQ2v80KZPlmGQeEHS7/7reV4uglpFJD+PeOJ4fMoqkynX/tQ9AJOg doANzbldxgq7lJl9YsvZfLlbu7lVDf+P9GKkNuZ5U3tVPZCM+tPYfdZ8BRUyUHZNuM4h r397Orc7MjImqZlL1ozYSjzawmA/s2WQKqN3TBM838xGAzXIH1BggokeSx0B1Ubys/L7 10+B7DwPYp62nPlLPZp+mbog3eQTskyFbibttM6RQBSRfvD47psnFRW9ggPN8bjVEpwy QAIsxHd1QNiUi/92V6z2Fh0pip3E1c1lgLJKQXwXyZ9wd+aELqYbcBTBtbqiC7saB/DD TR0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=BxNKGlp//aRa9Z5E6Xxi6XZzCOgGMnJJGrvAtg1br/o=; b=Xu4aAx5wlrZwzPnJtekbW+lb6diSwidlNW6rH8FgTXf045T+HnC4mXCxP7yCZviSc6 0n94gSOp2UVVecckSNL3IFyJIkJZyVuyFJj9BqpVvF06KvGqU/ZjjJVRJCsggDRL+0v+ kdeKM8VRX3VRRUqgh/bNe+Hx1lTvVkyQnT9nM5rc67+YyhZdr7eQDy3eQ4zGeuape5E9 YsnZfvRpQ94LiEJWlkexmHaMrmpPaK8S10gdH+3/jBCv5F/A30HonnteOJkYMVPvDXOA laP7RWPfFZt3mntolCZfRxFSsh+48zFD4j4HqBFbqRrLd45S6ynDwMm4+pFd99cms8kA iWzw== X-Gm-Message-State: AG10YOT3UAhLsY4+nHLe89zX0cgSB+ztFKJH/rUd1M6KGIvy3q4KvrsRgrkcmPvUv6nQn6AW/XEOpktDaIoaJg== X-Received: by 10.50.142.73 with SMTP id ru9mr12855105igb.92.1454709473589; Fri, 05 Feb 2016 13:57:53 -0800 (PST) In-Reply-To: <56B50F58.90901@gmail.com> 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:102565 On Sat, Feb 6, 2016 at 8:08 AM, Bernardo Sulzbach wrote: > On 02/05/2016 07:01 PM, Chris Angelico wrote: >> >> On Sat, Feb 6, 2016 at 6:58 AM, wrote: >>> >>> I am running this python script on R-studio. I have Python 3.5 installed >>> on my system. >>> >> >> Let's just try a quick smoke test. Run this script: >> >> import sys >> print(sys.version) >> input("Press Enter to exit...") >> >> That'll tell you a few things about how your system is set up. Most >> notably, if it doesn't say you're using Python 3.5, there's a problem. >> >> ChrisA >> > > Is there? If he just got the minor version wrong it wouldn't be a problem. > Unless RStudio requires 3.**5** for some reason. Stuff might work, but if you think you're using 3.5 and you're actually running under 3.4, there's a high probability that you have two Python installations and it's picking the wrong one. That, in turn, means problems with package installations and such, so it's a reasonable smoke test to try. (It's unlikely there'll be two different 3.5s installed.) And, of course, if it shows up that it's running under *2*.5, well, that would explain a lot :) Anyway, it is indeed what's expected - smoke test passed. ChrisA