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


Groups > comp.lang.python > #19239 > unrolled thread

Re: Trouble with internationalized path under windows

Started byJacob Hallén <jacob.hallen@sotospeak.se>
First post2012-01-22 22:06 +0100
Last post2012-01-25 21:00 -0600
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Trouble with internationalized path under windows Jacob Hallén <jacob.hallen@sotospeak.se> - 2012-01-22 22:06 +0100
    Re: Trouble with internationalized path under windows Tony the Tiger <tony@tiger.invalid> - 2012-01-25 21:00 -0600

#19239 — Re: Trouble with internationalized path under windows

FromJacob Hallén <jacob.hallen@sotospeak.se>
Date2012-01-22 22:06 +0100
SubjectRe: Trouble with internationalized path under windows
Message-ID<mailman.4942.1327266353.27778.python-list@python.org>
Sunday 22 January 2012 you wrote:
> On Sun, Jan 22, 2012 at 12:08 PM, Jacob Hallén
> 
> <jacob.hallen@sotospeak.se> 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.
> > 
> > This is a version of my problem reduced to its essentials:
> > 
> > I have a file foo.py::
> > 
> > import bar
> > 
> > and a file bar.py :
> > 
> > baz = 42
> > 
> > If I store these two files  in say C:\Users\Admin\test everything works
> > fine.
> > 
> > If I store them in C:\Users\Admin\testф, 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.
> 
> What's the ImportError message say? And what version of Python are you
> using?
> 
> 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 
file manager the command window goes away too quickly for me to see the error. 
Idle is unable to open files in the directory at all.

Cheers

Jacob Hallén

[toc] | [next] | [standalone]


#19466

FromTony the Tiger <tony@tiger.invalid>
Date2012-01-25 21:00 -0600
Message-ID<zIudnbtDH4J-XL3SnZ2dnUVZ8uudnZ2d@giganews.com>
In reply to#19239
On Sun, 22 Jan 2012 22:06:07 +0100, Jacob Hallén wrote:

> the command window goes away too quickly

Have you tried a .bat/.cmd file, with "pause" in it?


 /Grrr
-- 
          ___                  ___
 (\_--_/)  | _ ._    _|_|_  _   |o _  _ ._
 ( 9  9 )  |(_)| |\/  |_| |(/_  ||(_|(/_|
 stripes are forever - as overripe ferrets

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web