Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: eryk sun Newsgroups: comp.lang.python Subject: Re: cannot open file with non-ASCII filename Date: Mon, 14 Dec 2015 17:55:04 -0600 Lines: 15 Message-ID: References: <20151214221751.GM12472@rus.uni-stuttgart.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de Iyt8fufIyBjNJtylfeWuJAxrJudSCcjBH2dQz0A1YE4g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'importerror:': 0.05; 'subject:file': 0.07; 'non-ascii': 0.09; 'python': 0.10; '2.7': 0.13; 'suggest': 0.15; 'dropping': 0.16; 'ignores': 0.16; 'module?': 0.16; 'pypi.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:non': 0.16; 'wrote:': 0.16; 'windows': 0.20; '2015': 0.20; 'cc:2**0': 0.20; '3.x': 0.22; 'ctypes': 0.22; 'decide': 0.23; 'dec': 0.23; 'tried': 0.24; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'module': 0.25; 'message-id:@mail.gmail.com': 0.27; '14,': 0.27; 'topic': 0.32; 'file': 0.34; 'list': 0.34; 'received:google.com': 0.35; 'path': 0.35; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'list.': 0.37; 'starting': 0.37; 'received:209': 0.38; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'your': 0.60; 'queued': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=oezfmNQu5QTerory4sbbNOm67yvbhOugjk0UDtyqk7w=; b=mW95j5PuPesMYDbR3Vj5Ua6k1vM+OupZfHTghZqrFV7PM/Sg4M7XIGoRHpciLrR4Dp vcEs7cL6NLXGFrGUIOuBr/Zssi706n0B9230eWKaU3nq0F9SENgsWwX8ITDjJrWQPQg9 mih+RlOBzsec7kswphFWxPIHQTGIy2kiErTxC6ySla/9wibKq1N2d7MkwT1AEtke445R B+oswxy+y98TYxgY/TdAl0XpqYfklEMQX+QE8lrGMLoY8Cz0zxK5VXKEOIvPPHNITNAA 0BQFeKnXdT7UomkWpBWwVGk4sEDTvrSXVUNe7TPnzXhD1Kldbz9v6QVgmFLlZDoInWtg wjgQ== X-Received: by 10.107.137.226 with SMTP id t95mr31648597ioi.188.1450137344438; Mon, 14 Dec 2015 15:55:44 -0800 (PST) In-Reply-To: <20151214221751.GM12472@rus.uni-stuttgart.de> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100440 On Mon, Dec 14, 2015 at 4:17 PM, Ulli Horlacher wrote: > > ImportError: No module named pyreadline > > Is it a python 3.x module? > > I am limited to Python 2.7 pyreadline is available for 2.7-3.5 on PyPI. Anyway, I tried it to no avail. When dropping a file path into the console it ignores the alt-numpad sequences that get queued for non-ASCII characters, just like mvcrt.getwch. If you decide to roll your own getwch via ctypes or PyWin32, I suggest starting a new topic on the ctypes list or Windows list.