Main index > About existing desklets > anetmon

By ZeroDivide (Desklet Author), on Sat Apr 2 14:59:43 2005: anetmon.

Post here about the anetmon desklet.

By Jenizix (User), on Sun Jun 19 14:52:33 2005.

I cant install anetmon-0.1.0 =(((

root: ~/.adesks/anetmon-0.1.0 > ./anetmon.py

Quote:

Traceback (most recent call last):
File "./anetmon.py", line 790, in ?
Events(dirname(__file__)).pause()
File "./anetmon.py", line 342, in __init__
self.get_config()
File "./anetmon.py", line 412, in get_config
self.config=Config(adesklets.get_id(),join(self.basedir,'config.txt'))
File "./anetmon.py", line 143, in __init__
self.config=GeneralConfig(id,file_name)
File "./anetmon.py", line 81, in __init__
adesklets.ConfigFile.__init__(self, id, filename)
File "usr/lib/python2.4/site-packages/adesklets/configfile.py", line 159, in __init__
File "usr/lib/python2.4/site-packages/adesklets/configfile.py", line 202, in _load_and_save
File "usr/lib/python2.4/site-packages/adesklets/configfile.py", line 41, in __call__
File "/usr/lib/python2.4/compiler/transformer.py", line 52, in parse
return Transformer().parsesuite(buf)
File "/usr/lib/python2.4/compiler/transformer.py", line 129, in parsesuite
return self.transform(parser.suite(text))
TypeError: suite() argument 1 must be string without null bytes, not str
Exception exceptions.AttributeError: "Events instance has no attribute 'comm'" in <bound method Events.__del__ of <__main__.Events instance at 0x404bd98c>> ignored


How I can install it?

By ZeroDivide (Desklet Author), on Sun Jun 19 16:26:28 2005.

Hi Jenizix,

All you really have to do to install anetmon is unpack it where ever you want. You can start the desklet for the first time by executing anetmon.py, and then you can just run adesklets to start it every time after that.

The error message you're getting has me stumped. Posting your adesklet and python versions and what os your using might be helpful. Also, can you successfully run other desklets?

I'm not sure if any of this will help but give it a shot:
1) make sure you have write permission for ~/.adesks/anetmon-0.1.0 and ~/.adesks/anetmon-0.1.0/config.txt if it exists
2) try deleting the config.txt file and starting the desklet
3) try running the desklet as a normal user ( it looks like you're starting the desklet as root )

By Jenizix (User), on Sun Jun 19 17:35:59 2005.

Thanks! I found my problem!
1. delete config.txt
2. Change font to 'verdana' because I haven't 'VeraBd'...

PS Where I can download VeraBd

By ZeroDivide (Desklet Author), on Sun Jun 19 17:53:51 2005.

I'm glad to hear you have it working. :D

You can get the VeraBd font from here http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/
and if you want to see a list of all the fonts that your adesklets can use, try this command

Code:

echo "list_fonts" | adesklets :

By Jenizix (User), on Sun Jun 19 18:39:42 2005.

Thanks! Close this topic....

By louis_nichols (Friend of adesklets), on Sun Feb 5 16:34:39 2006.

Hi!

just noticed this thread... I kinda have a problem with anetmon. it works, except it only displays info for Rxd... Does anyone know why that might be and how to solve it?

I am using Gnome under Ubuntu Breezy, adesklets 0.50, libstatgrab 0.12 and pystatgrab 0.4.

All these on an AMD 2500+ Barton with GeForce fx5200.

By ZeroDivide (Desklet Author), on Mon Feb 6 13:16:40 2006.

Hi louis_nichols,

I'm using gentoo and just upgraded my system to match ( adesklets 0.50, libstatgrab 0.12 and pystatgrab 0.4. ) but I'm not getting the same problem.

Run this python script and see if you are getting anything for tx so we can figure out if its a problem with statgrab or anetmon.

Code:

#! /usr/bin/env python
import statgrab
from time import sleep

while 1:
        stats = statgrab.sg_get_network_io_stats_diff()
        print stats
        sleep(2)



Also, if you have multiple network devices, make sure you are monitoring the right one by right clicking on the desklet and selecting the proper device.

ZeroDivide

By louis_nichols (Friend of adesklets), on Mon Feb 6 23:16:42 2006.

hi! thanks for the reply. I used the script and got {'tx': 1975967L, 'rx': 1975967L, 'systime': 1139285452, 'ipackets': 9032L, 'oerrors': 0L, 'collisions': 0L, 'opackets': which I guess means it works. Anyway, the Rx bar allways functioned correctly.

Now, what I noticed is that if I use a connection via the private IP (I have a virtual network connection setup for LAN on the same ethernet card) it does show. Could it be just because traffic is more intense? And it actually works with the public IP also, just that it doesn't have anything to show? I'll try uploading something somewhere to test this.

By ZeroDivide (Desklet Author), on Tue Feb 7 15:09:12 2006.

Quote:

Now, what I noticed is that if I use a connection via the private IP (I have a virtual network connection setup for LAN on the same ethernet card) it does show. Could it be just because traffic is more intense?


I bet this is whats going on. Anetmon only displays kb/s or higher rates so if you're uploading at like 100 bytes a second it probably wont show up.

Feel free to hack in support for lower bitrates if you want.

ZeroDivide

By raul_ (User), on Mon Oct 9 18:16:43 2006.

I can't seem to get any desklet to work =( (only weatherforecast). Here's my output for the test on anetmon:

Code:


Traceback (most recent call last):
  File "./anetmon.py", line 790, in ?
    Events(dirname(__file__)).pause()
  File "./anetmon.py", line 351, in __init__
    self.net_in_text=Text(self.top_canvas,self.config['font'],self.config.color(self.config['font_color']),'IN 1000KB','net_in_text')
  File "./anetmon.py", line 270, in __init__
    self.font=adesklets.load_font(font)
  File "/usr/lib/python2.4/commands.py", line 706, in load_font

  File "usr/lib/python2.4/site-packages/adesklets/commands_handler.py", line 103, in out
adesklets.error_handler.ADESKLETSError: adesklets command error - font 'VeraBd/8' could not be loaded
Exception exceptions.AttributeError: "Events instance has no attribute 'comm'" in <bound method Events.__del__ of <__main__.Events instance at 0xb7c75a2c>> ignored




btw, i already deleted the config.txt file and changed my font to verdana (although i have ttf-bitstream-vera installed)

By ZeroDivide (Desklet Author), on Mon Oct 9 21:09:42 2006.

I get that same error if I try to use a font thats not installed.

See what you get when running this command, and make sure you run fc-cache after you've installed new fonts.

Code:

echo "list_fonts" | adesklets :


btw.. If you changed the font in anetmon.py it wont do anything, you have to change the font in the appropriate .theme file.


ZeroDivide


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.