ps: Aero AIO plugin

Karamba & Superkaramba

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
Description:

Plugin for Aero AIO that show the 6 most resource intensive processes. You can choose whether to sort on CPU, mem or elapsed time.

REQUIREMENTS: Aero AIO >= 0.9.1

USAGE:
- Install the plugin via the Aero-AIO config dialog. The columns have headings
Last changelog:

14 years ago

ver 1.0.2
- Use Aero AIO 0.9.1 API

ver 1.0.1
- Fixed sorting on memory size

peterho

14 years ago

Hi Kovid,

Here is the error message. Note that aero AIO was working before I tried adding this plugin. Remove the plugin still gives me the same error message.


sys.path.insert(0, '/usr/share/apps/superkaramba/themes/aero_aio.skz')
Traceback (most recent call last):
File "/usr/share/apps/superkaramba/themes/aero_aio.skz/aero_aio.py", line 129, in ?
File "/usr/share/apps/superkaramba/themes/aero_aio.skz/aero_aio.py", line 111, in __globalimport__
File "", line 2, in ?
File "/home/peter/.aero_aio/ps_aio.py", line 1, in ?
import karamba, re, time, traceback, subprocess
ImportError: No module named subprocess
------------------------------------------------------
What does ImportError mean?

It means that I couldn't load a python add-on aero_aio.py
If this is a regular theme and doesn't use python
extensions, then nothing is wrong.
------------------------------------------------------

Report

peterho

14 years ago

Hi Kovid,

Here is the error message. Note that aero AIO was working before I tried adding this plugin. Remove the plugin still gives me the same error message.


sys.path.insert(0, '/usr/share/apps/superkaramba/themes/aero_aio.skz')
Traceback (most recent call last):
File "/usr/share/apps/superkaramba/themes/aero_aio.skz/aero_aio.py", line 129, in ?
File "/usr/share/apps/superkaramba/themes/aero_aio.skz/aero_aio.py", line 111, in __globalimport__
File "", line 2, in ?
File "/home/peter/.aero_aio/ps_aio.py", line 1, in ?
import karamba, re, time, traceback, subprocess
ImportError: No module named subprocess
------------------------------------------------------
What does ImportError mean?

It means that I couldn't load a python add-on aero_aio.py
If this is a regular theme and doesn't use python
extensions, then nothing is wrong.
------------------------------------------------------

Report

peterho

14 years ago

Hi Kovid,

Here is the error message. Note that aero AIO was working before I tried adding this plugin. Remove the plugin still gives me the same error message.


sys.path.insert(0, '/usr/share/apps/superkaramba/themes/aero_aio.skz')
Traceback (most recent call last):
File "/usr/share/apps/superkaramba/themes/aero_aio.skz/aero_aio.py", line 129, in ?
File "/usr/share/apps/superkaramba/themes/aero_aio.skz/aero_aio.py", line 111, in __globalimport__
File "", line 2, in ?
File "/home/peter/.aero_aio/ps_aio.py", line 1, in ?
import karamba, re, time, traceback, subprocess
ImportError: No module named subprocess
------------------------------------------------------
What does ImportError mean?

It means that I couldn't load a python add-on aero_aio.py
If this is a regular theme and doesn't use python
extensions, then nothing is wrong.
------------------------------------------------------

Report

C

kovidgoyal

14 years ago

You need to have python >= 2.4 Superkaramba is unable to load the subprocess module needed by ps.

You can check this by starting python at the command line and trying the command import subprocess

If you want to remove ps uninstall aero aio and delete the directory ~/.aero_aio

Report

peterho

14 years ago

I already have python 2.4. installed.

Forgive for my ignorance, but I am still new to linux, so I do not understand your comments about "using the command import process"

Report

C

kovidgoyal

14 years ago

In a terminal type python press enter.
Then at the python prompt type import subprocess and press enter. That should give you an error.

What distribution are you using? Debian?

Report

peterho

14 years ago

Kovid,

I am using : 2.6.12-1-686.

Although I have both python 2.3. and 2.4. On typing python at the command prompt, version 2.3. and not 2.4 is running (see below) Is there a way of changing this (perhaps I should remove python 2.3, assuming it is not needed for any other programs)

Here is the error message:

Python 2.3.5 (#2, Mar 6 2006, 10:12:24)
[GCC 4.0.3 20060304 (prerelease) (Debian 4.0.2-10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
Traceback (most recent call last):
File "", line 1, in ?
ImportError: No module named subprocess
>>>

Report

C

kovidgoyal

14 years ago

I'm afraid there is no simple way of doing this. You need to ask on the forums of the distribution you are using.

Report

peterho

14 years ago

Ok.

thanks for all your help.

Report

peterho

14 years ago

I have installed Aero AIO 0.9 and it was working fine until I installed the ps: Aero AIO plugin using the GUI configuration. I could not see the icon, so I reloaded the theme. This resulted in 2 errors, the aero AIO became invisible and I can no longer access the Configure theme to try to remove the plugin.

Is this an error??? I have the Soundmania theme running and an old version of hoschimon.

I tried to uninstall aero AIO and reinstall it again, but is still invisible and I'm unable to reconfigure it.

Any thoughts???

Report

AdrienV

14 years ago

It's working fine for me too.

Report

C

kovidgoyal

14 years ago

Yeah his problem was because he was using python 2.3 which doesn't have the subprocess module.

Report

peterho

14 years ago

HI,

I have sorted out the problem for aero AIO and now it works again. The problem was I had python 2.3 running instead of 2.4.
However, both the netstart and the ps plugin still do not work.

Report

C

kovidgoyal

14 years ago

What is the error you get when you run it in a terminal?

Report

peterho

14 years ago

Hi Kovid,

Actually when I have install ps: aero AIO, I was unable to run it. I installed the plugin through the configure plugin interface. After "apply", it returns to AERO AIO, but then "blocks". I am unable to use it. This happened before. If I then remove it from my desktop and run it in a terminal, the terminal does not show any output. Using the superkaramba interface to add it to the desktop, results in AERO AIO appearing invisible.

Sorry there does not seem to be any error output in the terminal.

I haven't got a clue what to do next, except that AERO AIO works fine,without installing your 2 plugins. This is a shame because I think you have done a very nice job here. Incidently, I managed to install the amarok plugin in the same manner and this did not give me any problems with AERO AIO.

Report

C

kovidgoyal

14 years ago

Hmm...the only thing common to netstat and ps is the subprocess module. When you replaced python 2.3 with 2.4, did you recompile SK against 2.4? SK may still be using 2.3...one other user had a similar problem.

Report

C

kovidgoyal

14 years ago

Hmm...that should not be happening. The ps theme works fine for me with 0.9. Can you start aero aio in a terminal like this
superkaramba aero_aio.skz and post the output. If you just want to get rid of ps delete ~/.aero_aio

Report

pantaray

14 years ago

Very neat! I like it!

Report

C

kovidgoyal

14 years ago

Thanks.

Report

Hintzy

14 years ago

That's a great idea for an AIO plugin! Very useful! Thanks!

Report

C

kovidgoyal

14 years ago

Thanks...glad you like it.

Report

14 years ago

ver 1.0.2
- Use Aero AIO 0.9.1 API

ver 1.0.1
- Fixed sorting on memory size

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.0.2
updated May 20 2006
added Dec 19 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0