[Gllug] Python help?
Simon Morris
simon.morris at cmtww.com
Wed Jul 21 01:07:43 UTC 2004
On Wed, 2004-07-21 at 09:00, John Hearns wrote:
> I've put the pythin binary in my path, and imported the python2.2
> libraries to /usr/local/appname/lib and
> set $PYTHONHOME
>
> Still getting the error message:
>
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
> File "/usr/local/Cluster-Apps/link-checker/lc.py", line 7, in ?
> from __future__ import generators
>
Hey John,
Maybe try this..
import sys
path = sys.path
path.append("/usr/local/appname/lib")
at the top of your script to point Python to the correct directories.
Cheers
~SM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20040721/69cc70b5/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list