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


Groups > comp.lang.python > #42236

Re: No errors displayed but i blank scren nstead.

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <prvs=79289a239=jeanmichel@sequans.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.216
X-Spam-Level **
X-Spam-Evidence '*H*': 0.57; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'cmd': 0.16; 'gonna': 0.16; 'variable': 0.18; 'trying': 0.19; 'help.': 0.21; 'cc:addr:python.org': 0.22; 'certainly': 0.24; 'tells': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'script': 0.25; 'skip:" 30': 0.26; 'header:In-Reply-To:1': 0.27; 'host': 0.29; 'chris': 0.29; 'url:mailman': 0.30; 'that.': 0.31; 'keyerror:': 0.31; 'ok.': 0.31; 'file': 0.32; 'run': 0.32; 'url:python': 0.33; '(most': 0.33; 'knowledge': 0.35; 'skip:s 30': 0.35; 'something': 0.35; 'but': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'wrong': 0.37; 'skip:o 20': 0.38; 'server': 0.38; 'skip:& 10': 0.38; 'thank': 0.38; 'issue': 0.38; 'little': 0.38; 'recent': 0.39; 'expect': 0.39; 'does': 0.39; 'environment.': 0.39; 'url:mail': 0.40; 'browser': 0.61; 'you.': 0.62; 'address': 0.63; 'information': 0.63; 'received:194': 0.64; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'here': 0.66; 'notice:': 0.67; 'person,': 0.68; 'privileged.': 0.69; 'disclose': 0.74; 'bein': 0.84; 'medium.': 0.91
X-IronPort-AV E=Sophos;i="4.87,367,1363129200"; d="scan'208";a="1324808"
X-Virus-Scanned amavisd-new at zimbra.sequans.com
Date Thu, 28 Mar 2013 17:31:58 +0100 (CET)
From Jean-Michel Pichavant <jeanmichel@sequans.com>
To Νίκος Γκρ33κ <nikos.gr33k@gmail.com>
In-Reply-To <e1bdaab6-ae63-4a15-9b23-3177d302cfd5@googlegroups.com>
Subject Re: No errors displayed but i blank scren nstead.
MIME-Version 1.0
X-Mailer Zimbra 7.2.2_GA_2852 (ZimbraWebClient - GC7 (Linux)/7.2.2_GA_2852)
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
X-Mailman-Approved-At Fri, 29 Mar 2013 12:24:27 +0100
Cc python-list@python.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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3944.1364556268.2939.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1364556268 news.xs4all.nl 6954 [2001:888:2000:d::a6]:45624
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:42236

Show key headers only | View raw


 
> I am trying my best with the little knowledge i have and i expect no
> help from you. You are more inclinded to criticize that to actually
> help. And if i pay someone that certainly not gonna be you.
> 
> And i told you about gethostbyaddr, tht its not an issue its because
> the script bein run form cmd that canot get hold of an address via
> browser tis ok.
> 
> something else is wrong here and the page is displayed blank.
> --
> http://mail.python.org/mailman/listinfo/python-list
> 

This is a traceback

Traceback (most recent call last):
  File "metrites.py", line 28, in &lt;module&gt;
    host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0]
  File "/opt/python3/lib/python3.2/os.py", line 450, in __getitem__
    value = self._data[self.encodekey(key)]
KeyError: b'REMOTE_ADDR'


It tells you that variable REMOTE_ADDR does not exist on your server environment.

But Chris already told you that.

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

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


Thread

Re: No errors displayed but i blank scren nstead. Jean-Michel Pichavant <jeanmichel@sequans.com> - 2013-03-28 17:31 +0100

csiph-web