[gobolinux-users] Python Versions and PYTHONPATH

Lucas C. Villa Real lucasvr at gobolinux.org
Wed Aug 22 05:19:53 UTC 2007


On 8/18/07, Anshuman Aggarwal <anshuman at brillgene.com> wrote:
> Does the programmability script update the PYTHONPATH variable as well?
> Presently I have Python 2.3, 2.4 and 2.5 installed with Python 2.5.1
> symlinked...However PYTHONPATH is still set to:
>
> /System/Links/Libraries/python2.4/site-packages/gtk-2.0:/System/Links/Libraries/python2.4/site-packages/gtk-2.0:
>
> The problem goes away when I manually edit the PYTHONPATH to include the
> site-packages and gtk-2.0 for 2.5, 2.4 and 2.3 versions...but this
> should be done by Compile/SymlinkProgram?
>
> Also where is the PYTHONPATH environment variable edited?
>
> I am not very familiar with Python and how it is setup under Gobo...

Hi,

PYTHONPATH is set by many applications, such as PyGTK. This reminds me
that I found some bogus PYTHONPATHs variables in some packages; you're
probably suffering from the same problem as I was.

In short, cd into /System/Links/Environments and grep for PYTHONPATH
there. You'll be able to see what packages are defining it. Modify
those files as necessary, and then re-run SymlinkProgram Foo, where
Foo is the name of one of the files you modified (just don't play with
Cache, as it's automatically generated).

-- 
Lucas
powered by /dev/dsp


More information about the gobolinux-users mailing list