Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'source.': 0.07; 'utf-8': 0.07; 'variables': 0.07; 'bytes,': 0.09; 'converts': 0.09; 'lines.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'strings.': 0.09; 'variables.': 0.09; 'dict': 0.16; 'encodings': 0.16; 'os.environ': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:issue': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'byte': 0.24; 'bytes': 0.24; 'environment': 0.24; 'header:X-Complaints-To:1': 0.27; 'tried': 0.27; 'wonder': 0.29; 'getting': 0.31; 'apparently': 0.31; 'file': 0.32; 'figure': 0.32; 'linux': 0.33; "i'd": 0.34; 'could': 0.34; 'anywhere': 0.35; 'charset:us-ascii': 0.36; 'error.': 0.37; 'too': 0.37; 'to:addr:python-list': 0.38; 'bad': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; "you've": 0.63; 'bothered': 0.68; 'invalid': 0.68 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: UnicodeDecodeError issue Date: Sun, 1 Sep 2013 23:14:26 +0000 (UTC) References: <5222fc40$0$6599$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 174.32.174.36 User-Agent: XPN/1.2.6 (Street Spirit ; Linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378077287 news.xs4all.nl 15922 [2001:888:2000:d::a6]:42475 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53438 On 1/9/2013 18:23, Ferrous Cranus wrote: >> > i still wonder how come the invalid byte messge dissapeared > Too bad you never bothered to narrow it down to its source. It could be anywhere on those three lines. If I had to guess, I'd figure it was one of those environment variables. The Linux environment variables are strings of bytes, and the os.environ is a dict of strings. Apparently it converts them using utf-8, and if you've somehow set them using some other encoding, you could be getting that error. Have you tried to decode those bytes in various encodings other than utf-8 ? -- Signature file not found