Image 01
profile-image

rvs82

R vS
BusyTasks

Plasma 4 Extensions by unknownSpirit 84 comments

Works here too. Great job!

I don't know what you changed, but it works for me. - Dec 21 2011
BusyTasks

Plasma 4 Extensions by unknownSpirit 84 comments

Nethogs works just fine. Both if I let it ask the password and if I set the password through the settings dialog.

I use kdesu, but I don't think the problem lies there either. If I set the password in the settings dialog I still get the error. And if I do 'kdesu -c "konsole -e /PATH_TO_IOTOP/iotop.py"' it opens another console where the usual iotop output is shown.
- Dec 21 2011
BusyTasks

Plasma 4 Extensions by unknownSpirit 84 comments

Sorry, Python version is 2.7.2 - Dec 21 2011
BusyTasks

Plasma 4 Extensions by unknownSpirit 84 comments

When I do the first (as normal user) I get the same netlink error as before.
The 2nd (kdesu) I don't get any errors, nor any output.
The 3rd (sudo) I get the correct iotop output. - Dec 21 2011
BusyTasks

Plasma 4 Extensions by unknownSpirit 84 comments

I get the following (after turning on iotop in the settings window):

–Error
Traceback (most recent call last):
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/code/main.py", line 287, in readConfig
self.netIFnumber=int(self.config('BusyTasks').readEntry('netIFnumber'))
ValueError: invalid literal for int() with base 10: ''
mv: cannot stat `/home/user/.toprc': No such file or directory
mv: cannot stat `/home/user/.toprcorig': No such file or directory
Traceback (most recent call last):
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks//contents/iotop-0.4.3/iotop.py", line 12, in <module>
main()
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/ui.py", line 582, in main
main_loop()
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/ui.py", line 572, in <lambda>
main_loop = lambda: run_iotop(options)
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/ui.py", line 482, in run_iotop
return run_iotop_window(None, options)
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/ui.py", line 476, in run_iotop_window
process_list = ProcessList(taskstats_connection, options)
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/data.py", line 347, in __init__
self.update_process_counts()
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/data.py", line 403, in update_process_counts
stats = self.taskstats_connection.get_single_task_stats(thread)
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/data.py", line 161, in get_single_task_stats
reply = GeNlMessage.recv(self.connection)
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/genetlink.py", line 50, in recv
msg = conn.recv()
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/netlink.py", line 229, in recv
raise err
OSError: Netlink error: Operation not permitted (1)
Tried attaching memory
Tried attaching memory
Tried attaching memory
Tried attaching memory
Tried attaching memory
Tried attaching memory
Tried attaching memory
Tried attaching memory
Tried attaching memory
–Error
Traceback (most recent call last):
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/code/main.py", line 645, in paintInterface
iotext=re.search('.*?\t([0-9.]{,}).([0-9.]{,}).([KM]{,}B/s).([0-9.]{,}).([KM]{,}B/s).([0-9.]{,}).([KM]{,}B/s).(.*)', self.iotopsmemory.read())
AttributeError: 'int' object has no attribute 'read'

This basically repeats itself 3 times after which it loops on the last error (AttributeError). I get the error window after the lines with "Tried attaching memory" with the message I showed in the earlier post (also 3 times).

Hope this helps. - Dec 21 2011
BusyTasks

Plasma 4 Extensions by unknownSpirit 84 comments

I still get the same error message:

Quote:Iotop could not be started.
Information:
^[[?1049h^[[1;24r^[<B^[[m^[[41^[[?7h^[[?1l^[>Traceback (most recent call last):
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks//contents/iotop-0.4.3/iotop.py", line 12, in <module>
main()
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/ui.py", line 582, in main
main_loop()
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/ui.py", line 572, in <lambda>
main_loop = lambda: run_iotop(options)
File "/home/user/.kde4/share/apps/plasma/plasmoids/BusyTasks/contents/iotop-0.4.3/iotop/ui.py", line 484, in run_iotop
return curses.wrapper(run_iotop_window, options)
File "/usr/lib/python2.7/curses/wrapper.py", line 49, in wrapper
curses.nocbreak()
_curses.error: nocbreak() returned ERR

Also, the script never reaches the point where it asks for my password. I'm running OpenSUSE 12.1 (32-bit). - Dec 21 2011
BusyTasks

Plasma 4 Extensions by unknownSpirit 84 comments

Thanks, I was just about to post the error message I got :) I tried finding the bug myself, but didn't manage to. I'll await the final update. - Dec 20 2011
BusyTasks

Plasma 4 Extensions by unknownSpirit 84 comments

Thanks! - Dec 20 2011
BusyTasks

Plasma 4 Extensions by unknownSpirit 84 comments

Hi,

Nice widget. There's only one problem. I can't get it to use iotop. I think the reason is iotop requires root privileges. This is because of security changes in the Linux kernel (I'm using 3.1.0).

Is this a known bug and if so, is there a workaround for this? Thanks. - Dec 20 2011
BusyTasks

Plasma 4 Extensions
by unknownSpirit

7 .9
9   Dec 20 2011