Python traceback when running without sudo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iotop (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When running iotop from the command line without 'sudo', I get a traceback. I expected a more-friendly error message such as "You must have superuser privileges to run this program". At the very least, I'd expect not to see the traceback. iotop version is 0.4.3-1ubuntu1 on 11.10 amd64.
steve@steve-
Traceback (most recent call last):
File "/usr/bin/iotop", line 16, in <module>
main()
File "/usr/lib/
main_loop()
File "/usr/lib/
main_loop = lambda: run_iotop(options)
File "/usr/lib/
return curses.
File "/usr/lib/
return func(stdscr, *args, **kwds)
File "/usr/lib/
process_list = ProcessList(
File "/usr/lib/
self.
File "/usr/lib/
stats = self.taskstats_
File "/usr/lib/
reply = GeNlMessage.
File "/usr/lib/
msg = conn.recv()
File "/usr/lib/
raise err
OSError: Netlink error: Operation not permitted (1)
steve@steve-
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: iotop 0.4.3-1ubuntu1
ProcVersionSign
Uname: Linux 3.0.0-15-generic x86_64
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Mon Dec 19 09:11:48 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta amd64 (20100901.1)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: iotop
UpgradeStatus: Upgraded to oneiric on 2011-09-02 (107 days ago)
duplicate 897411