Writing /usr/lib/python3.2/site-packages/iotop-0.4.4-py3.2.egg-info
File "/usr/lib/python3.2/site-packages/iotop/ioprio.py", line 178
print 'pid:', pid
^
SyntaxError: invalid syntax
File "/usr/lib/python3.2/site-packages/iotop/ui.py", line 152
except select.error, e:
^
SyntaxError: invalid syntax
File "/usr/lib/python3.2/site-packages/iotop/data.py", line 52
print 'Could not run iotop as some of the requirements are not met:'
^
SyntaxError: invalid syntax
Вот сам скрипт:
#!/usr/bin/python
# iotop: Display I/O usage of processes in a top like UI
# Copyright (c) 2007, 2008 Guillaume Chazarain <guichaz@gmail.com>, GPLv2
# See iotop --help for some help
import sys
try:
from iotop.ui import main
except ImportError, e:
print e
print 'To run an uninstalled copy of iotop,'
print 'launch iotop.py in the top directory'
else:
try:
main()
except KeyboardInterrupt:
pass
sys.exit(0)
File "/usr/bin/iotop", line 10
except ImportError, e:
^
SyntaxError: invalid syntax