Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:localnet': 0.07; 'python': 0.08; 'solution,': 0.09; 'subject:windows': 0.09; 'cc:addr:python-list': 0.15; 'baz': 0.16; 'hall\xc3\xa9n': 0.16; 'importerror': 0.16; 'jacob': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'cheers,': 0.20; "haven't": 0.20; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'cheers': 0.23; 'command': 0.24; 'cc:2**0': 0.25; 'module': 0.26; 'pm,': 0.26; 'import': 0.27; 'looks': 0.27; "i'm": 0.27; 'fine.': 0.28; 'idle': 0.28; 'problem': 0.29; 'cc:addr:python.org': 0.29; '22,': 0.30; 'subject:skip:i 10': 0.30; 'sun,': 0.30; 'chris': 0.30; 'error': 0.30; 'unable': 0.31; 'version': 0.31; 'error.': 0.32; 'header :User-Agent:1': 0.33; 'named': 0.33; 'too': 0.34; 'all.': 0.34; 'occurs': 0.34; 'reduced': 0.34; 'running': 0.35; 'window': 0.35; 'test': 0.35; 'file': 0.35; 'skip:" 10': 0.36; 'two': 0.37; 'run': 0.37; 'but': 0.37; 'using': 0.37; 'getting': 0.37; 'despite': 0.38; 'subject:with': 0.38; 'open': 0.38; 'goes': 0.39; "what's": 0.39; 'files': 0.39; 'subject:: ': 0.39; 'your': 0.61; 'header :Message-Id:1': 0.62; 'strange': 0.68; 'russian': 0.77 From: Jacob =?utf-8?q?Hall=C3=A9n?= Organization: So to Speak AB To: Chris Rebert Subject: Re: Trouble with internationalized path under windows Date: Sun, 22 Jan 2012 22:06:07 +0100 User-Agent: KMail/1.13.7 (Linux/3.1.0-1-amd64; KDE/4.6.5; x86_64; ; ) References: <201201222108.18950.jacob.hallen@sotospeak.se> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 45 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327266353 news.xs4all.nl 6853 [2001:888:2000:d::a6]:34501 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19239 Sunday 22 January 2012 you wrote: > On Sun, Jan 22, 2012 at 12:08 PM, Jacob Hall=C3=A9n >=20 > wrote: > > I have a problem which ought to have an obvious solution, but I haven't > > found one despite searching for many hours. The problem occurs on > > Windows. > >=20 > > This is a version of my problem reduced to its essentials: > >=20 > > I have a file foo.py:: > >=20 > > import bar > >=20 > > and a file bar.py : > >=20 > > baz =3D 42 > >=20 > > If I store these two files in say C:\Users\Admin\test everything works > > fine. > >=20 > > If I store them in C:\Users\Admin\test=D1=84, I get an import error when > > running foo.py. The letter at the end of test is a Russian "F", if it > > looks strange on your terminal. >=20 > What's the ImportError message say? And what version of Python are you > using? >=20 > Cheers, > Chris I'm using Python 2.7.2. I'm getting "ImportError: No module named bar". This is what I can see when running from the command prompt. If I run from = the=20 file manager the command window goes away too quickly for me to see the err= or.=20 Idle is unable to open files in the directory at all. Cheers Jacob Hall=C3=A9n