[gobolinux-users] $pythonpath

Michael Homer gobo-users-dufus at wotfun.com
Wed Nov 21 10:39:46 NZDT 2007


On Nov 21, 2007 3:34 AM, Daniele Maccari <gobo.users at gmail.com> wrote:
> I have a similar problem. Even if I export PYTHONPATH correctly Compile
> tells me it's not initialized as it should be.
>
> What could be the reason?
Are you running Compile under sudo? sudo clears the environment
variables before running the program, so either run Compile from a
root shell (and set the variable there), or run `sudo env
PYTHONPATH=$PYTHONPATH Compile ...`.

I had the same problem when I was working on some Python recipes the
other day. We really should be shipping it in the environment files,
since the python build system or Compile seems to choke if it isn't
defined. Or Compile should be setting it automatically itself.
-Michael


More information about the gobolinux-users mailing list