Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Python 3.4 problem with requests module Date: Sat, 9 Apr 2016 04:27:16 +1000 Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de kJXRH5Hc0rKTqR686NI6jwsoGprn2eIZ0CW8WYLBEyiQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'subject:Python': 0.05; 'thats': 0.07; 'imports': 0.09; 'subject:module': 0.09; 'importing': 0.15; 'things.': 0.15; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:requests': 0.16; 'wrote:': 0.16; 'refers': 0.18; 'thoughts': 0.18; 'to:name:python-list@python.org': 0.20; 'skip:c 70': 0.22; 'subject:problem': 0.22; 'am,': 0.23; 'seems': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'message- id:@mail.gmail.com': 0.27; 'print': 0.30; 'mention': 0.30; 'everyone': 0.31; 'run': 0.33; 'received:google.com': 0.35; 'list,': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'skip:p 20': 0.38; 'google': 0.39; 'does': 0.39; 'well.': 0.40; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'still': 0.40; 'your': 0.60; 'further': 0.62; 'confirm': 0.62; 'above,': 0.63; 'chrisa': 0.84; 'try,': 0.84; 'shadow': 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:to; bh=eNqc2jPj8YQf5bw9+t1mYWsnuPwRIll1+pNe9qdni88=; b=pYF2UfXILtgy+hTLCSviCqjWofWqNCh6k9zyGpDwKQ4qGQTOvwsvqE4Bt0A0vfLnQC yHVI7V7pRIvTFlVLHchKZj0/uCy5Shv6JZJR7YvyKtkTzNTeWGFe7ZqSjrFBrIQblVD+ dH1pWa07dljcyE8e9ZZe69z+/lERE9YHE2QEXJyjQ6HIsukGBIV4tu5d0g1vfuVatJad hPqSVUHsDAeJm2PrRBkA4mrWLOngfTXc+D9JUDhIsztuU61lIzUnZIAFUMFyuVLIZvHa fi3ezzPYg/4Y7diSEDyO8fML9laFpp85DCunX0a77FaPI/FztjA9IWW8AkTUodaBinHq b/Jg== 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:to; bh=eNqc2jPj8YQf5bw9+t1mYWsnuPwRIll1+pNe9qdni88=; b=Xkm/3uBe2CRNxbbV1QTewMzdBKKksZuqq3Y+XcQDKcqzEEh7hmux/jz8kMmw0v6Cgu oa04FRCpDHkQSF3SyB+pOGq6R29FLUzuOt++AoyZZEvrWszTsZmE0oLoEmhnndwJUS+x XirIXObPaavTr5BAcAfGjJVcpGmAoW0YygtefXKu6tScZBITxkpQB+Wr7Xc5pmk+nh2E Qab4ScxEiuf/72+Rx/zq5qypZjua2xlcLgM7S//sL8Quw3bOke8KRRbkYG2fpYJVGw8X 4DGZZ7iCfpQpHOutqFBJxa8BInoETh2EtOXem0nkXbXMVvbDCBvRBNKH/CIKE1biiu4v YzdQ== X-Gm-Message-State: AD7BkJITi0OkCcgTOY7zPBZTVIzdEYkiqdDIyf3QzzDsCfHTd7o277TzA2whaQ/LTS6CDqCZUTQJZ6LIyg+J+Q== X-Received: by 10.107.169.32 with SMTP id s32mr10226763ioe.19.1460140036436; Fri, 08 Apr 2016 11:27:16 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com comp.lang.python:106706 On Sat, Apr 9, 2016 at 4:24 AM, Lee Fig <1leefig@gmail.com> wrote: > print(socket.__file__) > > seems to confirm that all is well. It refers to my Lib folder: > C:\work\tools\WinPython-64bit-3.4.4.1\python-3.4.4.amd64\Lib\socket.py > > How frustrating. I will Google shadow importing as thats a new one on me. > Please feel free to mention any further thoughts Please respond to the list, so everyone can see things. Did you run that from the exact same place that your imports were failing? Try, immediately after the print call above, "import requests". Does it still fail? ChrisA