trace.py cannot find script after reading from it?

Peter Hansen peter at engcorp.com
Wed Feb 26 10:00:12 EST 2003


Mathias Koerber wrote:
> 
> I have a problem with trace.py and would like to find out what could be
> the reason. Python is 2.1.1
> 
> In short, trace.py seems to be able to open the script I specify on the
> commandline but after importing paths it claims that that script file
> does not exist!
> 
> I have tried setting PYTHONPATH to ".", the full name of the
> local directory etc without avail.
> 
> Any help is appreciated.
> 
> $ python trace.py --trace ./MK_add-members.py <args>
> __main__(0): ??
> __main__(1): ??
> MK_add-members.py(0): main()
> MK_add-members.py(87): """
> MK_add-members.py(89): import sys
> MK_add-members.py(90): import os
> MK_add-members.py(91): import string
> MK_add-members.py(92): import getopt
> MK_add-members.py(93): import paths
> ./MK_add-members.py: Cannot run file './MK_add-members.py' because: No such
> file or directory
> #

I don't know what's going wrong, but have you tried it without the
leading "./" ?  Maybe it gets confused by that...

-Peter




More information about the Python-list mailing list