Package: python-pycallgraph
Version: 0.4.0-1
Severity: normal
--- Please enter the report below this line. ---
The python script does not work if it is called directly:
[EMAIL PROTECTED]:~ $ pycallgraph-dot
bash: /usr/bin/pycallgraph-dot: /usr/bin/python^M: bad interpreter: No
such file or directory
[EMAIL PROTECTED]:~ $
This is because the file has MSDOS line endings (^M) and the hash-bang
line is therefor incorrect. Calling python with the script name as
argument works:
[EMAIL PROTECTED]:~ $ python /usr/bin/pycallgraph-dot
usage: pycallgraph-dot [options] pythonfile imagefile
[...]
[EMAIL PROTECTED]:~ $
Solution: convert the script to unix format using dos2unix.
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.23.9
Debian Release: lenny/sid
990 unstable mirror.switch.ch
990 unstable mirror.home-dn.net
1 experimental mirror.switch.ch
--- Package information. ---
Depends (Version) | Installed
=============================-+-===========
python | 2.4.4-6
python-support (>= 0.7.1) | 0.7.5
graphviz | 2.12-5
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]