Trouble with internationalized path under windows

Jacob Hallén jacob.hallen at sotospeak.se
Sun Jan 22 16:06:07 EST 2012


Sunday 22 January 2012 you wrote:
> On Sun, Jan 22, 2012 at 12:08 PM, Jacob Hallén
> 
> <jacob.hallen at 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




More information about the Python-list mailing list