Python on a thumbdrive
TuxTrax
arctic at tuxtrax.com
Sun Jun 6 07:41:13 EDT 2004
Christophe Cavalaria <chris.cavalaria at free.fr> wrote in message news:<40c2389a$0$21557$626a14ce at news.free.fr>...
> TuxTrax wrote:
>
> > I tried setting pythonhome from Bash:
> >
> > PYTHONHOME="/mnt/sda1/python/python2.3"
>
> If you did it like that it's a mistake :
>
> $ PYTHONHOME="/mnt/sda1/python/python2.3"
> $ /mnt/sda1/python/python
>
> Do that instead :
> $ export PYTHONHOME="/mnt/sda1/python/python2.3"
> $ /mnt/sda1/python/python
Thanks, that did the trick except for one remaining error on startup.
I moved the python executable into the python2.3 directory (which is
inside a directory simply called "python"), with the other python
files and directories. I then used the following line in my .bashrc
file:
export PYTHONHOME="/mnt/sda1/python/python2.3"
I don't get the errors on the internal and external component loads
when I start up python now, but I sill get one last error: 'import
site failed'; use -v for traceback
Yet 'site.py' and 'site.pyc' exist in the python2.3 directory. When I
type:
>>> import site
after the initial python import error on starting python up, There are
no errors or complaints from python, and the module seems to have been
loaded in just fine.
Thanks for the help,
Mathew
More information about the Python-list
mailing list