[IPython-user] Re: Re[2]: IPython not reloading file under Win2000

Mark Lawrence breamoreboy at aol.com
Fri Jul 15 05:41:35 CDT 2005

Guys, please see comments below.

"Fernando Perez" <Fernando.Perez at colorado.edu> wrote in message 
news:42D69086.8060803 at colorado.edu...
> Alan G Isaac wrote:
>>>What version of ipython and what version of python are you using?  There 
>>>is a bug in the inspect module (part of python) which can cause this. 
>>>I've personally never seen such behavior with current versions.
>> I had:
>> Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)]
>> IPython 0.6.2 -- An enhanced Interactive Python.
> Certainly way too old.
>> OK, so I downloaded the recent version and tried installing it.  It tried 
>> using %USERPROFILE% oddly in the path to store a .ini file, but this 
>> produced literally
>> 'C:\Documents and Settings\aisaac\My Documents\%USERPROFILE%\_ipython'
>> So there is an installation bug under Win2000.
>> (I should note that I have seen other applications have
>> problems with %USERPROFILE% under Win2000; I believe John
>> had to fiddle with this for font caching.)
> Well, the installer doesn't read USERPROFILE directly, this is the routine 
> involved:
> def get_home_dir():
>     """Return the closest possible equivalent to a 'home' directory.
>     We first try $HOME.  Absent that, on NT it's $HOMEDRIVE\$HOMEPATH.
>     Currently only Posix and NT are implemented, a HomeDirError exception 
> is
>     raised for all other OSes. """
>     try:
>         return os.environ['HOME']

I have seen problems on Windows similar to this with other Python programs 
when a home environment variable has been defined, e.g. as recommended by 
Cygwin.  Could this be your problem here?


Mark Lawrence. 

More information about the IPython-user mailing list