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


Groups > comp.lang.python > #77960

Re: Python docs not accessible from IDLE

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.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.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'subject:IDLE': 0.04; 'subject:Python': 0.06; 'tries': 0.07; 'anymore.': 0.09; 'output,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'that).': 0.09; 'things,': 0.09; 'trailing': 0.09; 'python': 0.11; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'redirects': 0.16; 'reproduce': 0.16; 'slash': 0.16; 'slash.': 0.16; 'weird': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'bit': 0.19; '(but': 0.19; 'server,': 0.19; 'seems': 0.21; '(the': 0.22; 'settings': 0.22; '>>>': 0.22; 'select': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'browsers': 0.24; 'days,': 0.24; 'why.': 0.24; 'fine': 0.24; 'looks': 0.24; "i've": 0.25; 'second': 0.26; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'idea': 0.28; 'am,': 0.29; '(like': 0.30; 'moved': 0.30; "i'm": 0.30; 'work.': 0.31; 'gives': 0.31; '>>>>': 0.31; 'received:132': 0.31; 'anyone': 0.31; 'checked': 0.32; 'open': 0.33; 'url:python': 0.33; 'running': 0.33; 'noticed': 0.34; 'maybe': 0.34; 'skip:d 20': 0.34; "i'd": 0.34; 'subject:from': 0.34; 'could': 0.34; 'problem': 0.35; "can't": 0.35; 'connection': 0.35; 'problem.': 0.35; 'but': 0.35; 'add': 0.35; 'there': 0.35; 'really': 0.36; 'combination': 0.36; 'idle': 0.36; 'ubuntu': 0.36; 'shows': 0.36; 'thanks': 0.36; 'possible': 0.36; 'similar': 0.36; 'url:org': 0.36; 'should': 0.36; 'two': 0.37; 'server': 0.38; '(i.e.,': 0.38; 'confirmed': 0.38; 'displays': 0.38; 'stopped': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'pm,': 0.38; '(from': 0.39; 'help,': 0.39; 'to:addr:python.org': 0.39; 'unable': 0.39; 'received:org': 0.40; 'how': 0.40; 'skip:n 30': 0.60; 'solve': 0.60; 'location:': 0.61; 'establish': 0.61; 'url:3': 0.61; 'browser': 0.61; 'simply': 0.61; 'first': 0.61; 'address': 0.63; 'different': 0.65; 'finally': 0.65; 'webpage': 0.68; 'default': 0.69; 'url:4': 0.69; '11:45': 0.84; 'bar)': 0.84; 'curl': 0.84; 'here)': 0.84; 'otten': 0.84; 'reports:': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
Subject Re: Python docs not accessible from IDLE
Date Wed, 17 Sep 2014 14:33:16 +0200
References <lvbgs5$bo$1@ger.gmane.org> <lvbl8f$p3r$1@ger.gmane.org> <lvbo5v$uo5$1@ger.gmane.org> <lvbqft$rlh$1@ger.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host px1.ruf.uni-freiburg.de
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1
In-Reply-To <lvbqft$rlh$1@ger.gmane.org>
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.14073.1410957167.18130.python-list@python.org> (permalink)
Lines 100
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1410957167 news.xs4all.nl 2968 [2001:888:2000:d::a6]:47789
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:77960

Show key headers only | View raw


On 09/17/2014 01:15 PM, Peter Otten wrote:
> Wolfgang Maier wrote:
>
>> On 09/17/2014 11:45 AM, Peter Otten wrote:
>>> Wolfgang Maier wrote:
>>>
>>>> since a few days, when I select Help -> Python Docs from the IDLE menu,
>>>> the link to the documentation that it tries to open in my browser isn't
>>>> working anymore.
>>>> The URL IDLE uses (copied from the browser address bar) is :
>>>> docs.python.org/3.4
>>>> and you have to add a terminal slash for it to work.
>>>> Now I don't know why it stopped working
>>>> (browser update, change on the python docs server, others?
>>>> I'm running idle-python3.4 on Ubuntu 14.04 and Firefox 32.0),
>>>> but a possible fix may be to simply make IDLE add the slash.
>>>>
>>>> Is there anyone else experiencing the same problem ?
>>>
>>> I have a similar configuration (Linux Mint 17 which is based on Ubuntu
>>> 14.04) and I cannot reproduce the problem.
>>>
>>
>> Hmm, what happens if you just copy/paste
>>
>> docs.python.org/3.4
>>
>> into your browser ?
>
> Works without problem.
>
>> Looks like some browsers (like the Ubuntu standard
>> browser) automatically add the trailing slash and others (like my
>> Firefox 32.0) don't.
>
> The webpage redirects twice:
>
> $ curl --head http://docs.python.org/3.4
> HTTP/1.1 301 Moved Permanently
> ...
> Location: https://docs.python.org/3.4
> ...
>
> $ curl --head https://docs.python.org/3.4
> HTTP/1.1 301 Moved Permanently
> ...
> Location: https://docs.python.org/3.4/
> ...
>
> $ curl --head https://docs.python.org/3.4/
> HTTP/1.1 200 OK
> ...
>
> When in firefox' about:config I set
>
> network.http.redirection-limit 1
>
> (the original value is 20 over here) I get an "Umleitungsfehler"
> (redirection error in german). Maybe you should have a look at this setting.
> If that's not the cause -- is there any error message that firefox displays
> when you enter docs.python.org/3.4 ?
>

Ok, I confirmed your curl output, checked my firefox settings and tried 
other browsers on different platforms.
Result: the redirection works fine on every platform/browser combination 
I could find (i.e., the problem is neither Ubuntu- nor firefox 
32.0-specific).
network.http.redirection-limit is set to its default of 20.


I noticed two things, however:

1) If you wait long enough, firefox finally reports:

Unable to connect

Firefox can't establish a connection to the server at docs.python.org:9000.

So it somehow seems to have picked up a port number during redirection, 
no idea why.


2) curl shows that the first redirect (from http://docs.python.org/3.4)
gives HTTP/1.1 301 Moved Permanently as the first response from the 
server, but the second redirect (from https://docs.python.org/3.4) gives:

HTTP/1.1 200 Connection established

HTTP/1.1 301 Moved Permanently

which looks a bit weird (but as I said no other browser I've tested 
seems to have a problem with that).

So it looks like this is not really a Python issue though I'd still like 
to find out how to solve it.

Thanks for your help,
Wolfgang

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


Thread

Re: Python docs not accessible from IDLE Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-09-17 14:33 +0200

csiph-web