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


Groups > comp.lang.python > #106706

Re: Python 3.4 problem with requests module

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
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 <mailman.97.1460140044.2253.python-list@python.org> (permalink)
References <cf3f3eab-6d8d-49d4-932a-b3905f5bac53@googlegroups.com> <CAPTjJmr9AkWiJKKPWtHMz89pDmLb4HdRmChWDUxVxwe-ch5nqA@mail.gmail.com> <CAPFbfweS3+m7+q6gA35ypu534i_DV=SPQAFcazwEb46Wgunteg@mail.gmail.com> <CAPFbfwd=VAPrrHe2uZ2QLV0YuNX9ia_M8LJgVkPBB5jqwgOtMA@mail.gmail.com> <CAPTjJmott6G9mEmsiti9bc0sELU6Gdd9z9HA33dUVTmCsXHnHA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de kJXRH5Hc0rKTqR686NI6jwsoGprn2eIZ0CW8WYLBEyiQ==
Return-Path <rosuav@gmail.com>
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 <CAPFbfwd=VAPrrHe2uZ2QLV0YuNX9ia_M8LJgVkPBB5jqwgOtMA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
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>
X-Mailman-Original-Message-ID <CAPTjJmott6G9mEmsiti9bc0sELU6Gdd9z9HA33dUVTmCsXHnHA@mail.gmail.com>
X-Mailman-Original-References <cf3f3eab-6d8d-49d4-932a-b3905f5bac53@googlegroups.com> <CAPTjJmr9AkWiJKKPWtHMz89pDmLb4HdRmChWDUxVxwe-ch5nqA@mail.gmail.com> <CAPFbfweS3+m7+q6gA35ypu534i_DV=SPQAFcazwEb46Wgunteg@mail.gmail.com> <CAPFbfwd=VAPrrHe2uZ2QLV0YuNX9ia_M8LJgVkPBB5jqwgOtMA@mail.gmail.com>
Xref csiph.com comp.lang.python:106706

Show key headers only | View raw


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

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


Thread

Python 3.4 problem with requests module 1leefig@gmail.com - 2016-04-08 09:00 -0700
  Re: Python 3.4 problem with requests module Chris Angelico <rosuav@gmail.com> - 2016-04-09 02:24 +1000
  Re: Python 3.4 problem with requests module Steven D'Aprano <steve@pearwood.info> - 2016-04-09 02:27 +1000
  Re: Python 3.4 problem with requests module Chris Angelico <rosuav@gmail.com> - 2016-04-09 04:27 +1000

csiph-web