[Tutor] (no subject)

Simon Brunning SBrunning@trisystems.co.uk
Tue, 14 Nov 2000 09:32:21 -0000


> From:	wilson edgar pinto [SMTP:babyboy@oninet.pt]
> hiya
> running a code on DOS window, everything runs perfectly alrigth except of 
> 'import site' failed; use -v for traceback
> what does it means, and why does it appears if everything is alrigth??
> thankx in advance
 
If you have a file called site.py in your python path, it is automatically
imported when you start up Python. In your case, you have such a file, but
there is something wrong with it. Python is being helpful here - it isn't
falling over or anything, it just tells you that there is a problem.

To diagnose the problem, you could either invoke Python with the -v switch
as suggested, or just type 'import site' at the python prompt. Either way,
you should get a traceback, which should (hopefully) enable you to sort out
your site.py file.

Good hunting!

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning@trisystems.co.uk




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.