The Land of Fernieville

You’re in the wrong path…

Posted in Programming by fernieville on May 25, 2010

Ever get this error?

You are attempting to install a package to a directory that is not

You are attempting to install a package to a directory that is noton PYTHONPATH

I was installing some python script and in my exhausted stupor said yes to a bunch of things…which is why you should never code tired.

Anyhow, this python install added ~/.pydistutils.cfg .  So I go and try to do some other install…and bam! I’m in the wrong path.  Spent 30 minutes of my (still stupor) trying to understand this gem:

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is

on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment

variable.  (It must then also be on PYTHONPATH whenever you run

Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support “.pth” files by

using one of the approaches described here:

Easy_install has me spoiled.  Anyway, I tried editing my bashrc to remove all the paths this other python script has polluted me with…but it wasn’t until I reached this line that I realized there was a files called ~/.pydistutils.cfg that this thing install created.  I deleted that file and tried to find a way to install this sucker without the use PYTHONPATH.  Not available in the easy_install repo…bummer.

Clearly, I’m no python guru, as I’m sure you python afficionados out there are already laughing at my blunder.  Go ahead, enjoy it at my expense… it’s what newbs are for.

Hello java

Posted in osx, Programming by fernieville on August 11, 2008

My first “hello world” for Java

Tagged with:

Common Fortran Erros

Posted in Daily, Programming by fernieville on May 21, 2008


Great source for those of you still in the science coding with this trusty albeit archaic language.

Tagged with: ,