Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.CARNet.hr!news.grnet.gr!.POSTED!not-for-mail From: =?UTF-8?B?zp3Or866zr/PgiBHcjMzaw==?= Newsgroups: comp.lang.python Subject: Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte Date: Fri, 05 Jul 2013 13:26:55 +0300 Organization: GRNET - Greek Research and Technology Network Lines: 17 Message-ID: References: NNTP-Posting-Host: 46.12.98.234.dsl.dyn.forthnet.gr Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.grnet.gr 1373020018 3467 46.12.98.234 (5 Jul 2013 10:26:58 GMT) X-Complaints-To: newsadm@grnet.gr NNTP-Posting-Date: Fri, 5 Jul 2013 10:26:58 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: Xref: csiph.com comp.lang.python:49963 Στις 5/7/2013 12:25 μμ, ο/η Νίκος Gr33k έγραψε: > > try: > remadd = os.environ('REMOTE_ADDR') > tuple3 = socket.gethostbyaddr(remadd) > host = tuple3[0] > except Exception as e: > host = repr(e) > which yields: TypeError("'_Environ' object is not callable",) Any thoufgs as to why os.environ('REMOTE_ADDR') gives the above error? I noticed that if i remove my domain from cloudflare the gethostbyaddr as it uses too months now. -- What is now proved was at first only imagined!