ns3.25 on ubuntu 14.04 gnome not working for netanim scripts

1,242 views
Skip to first unread message

nobody s

unread,
Oct 25, 2016, 7:06:04 PM10/25/16
to ns-3-users
Good day:
I'm using ubuntu 14.04 and ns3.25

When i run a script using netanim i get a message of
"Could not load icon gnome-terminal due to missing gnomedesktop Python module"
Reviewing previous forums  i installed the packages

sudo apt-get python-wnck

sudo apt-get python-rsvg

sudo apt-get  python-gnomekeyring

Since gnmode2-desktop is not available,

but iḿ still not having fixed the problem,

and still getting the message "Could not load icon gnome-terminal due to missing gnomedesktop Python module"

please  help i'm quite desperate right now

noel.fa...@gmail.com

unread,
Oct 27, 2016, 1:31:42 AM10/27/16
to ns-3-users
In netanim you run an xml file no?

nobody s

unread,
Oct 27, 2016, 11:47:20 AM10/27/16
to ns-3-users
Good day noel

I literally trying to run the test src/netanim/examples/colors-link-description.cc

Which is part of the install tests examples the nodes were supposed to change color, but they are not doing it

In such file the structure to change attribute of nodes is through netanim which includes:

AnimationInterface * pAnim = 0;

use the pointer
pAnim->UpdateNodeColor (nodeId, color.r, color.g, color.b);

create the xml file you mentioned
std::string animFile = "dynamic_linknode.xml" ;

construct the object with such xml file before running the simulation and

pAnim = new AnimationInterface (animFile);

 delete pAnim;

You can review the code at: https://www.nsnam.org/doxygen/colors-link-description_8cc.html

So when i run such program (which in ns3,25 is called just colors-link-description.cc

A message appears

Could not load icon applets-screenshooter due to missing gnomedesktop Python module

Could not load icon gnome-terminal due to missing gnomedesktop Python module

So iḿ not sure if i should provide something in command line, but i'm pretty sure is not working due to the aforementioned gnomedesktop
think which are also python bindings,

Thanks in advance and best regards

noel.fa...@gmail.com

unread,
Oct 28, 2016, 12:43:24 AM10/28/16
to ns-3-users
From the few times I used netAnim I didn't encounter such issues.
Have you tried re-compiling netAnim?

Because it isn't clear, is the XML file being generated?

nobody s

unread,
Oct 30, 2016, 12:47:57 PM10/30/16
to ns-3-users
Got it solved thanks for the support!

Noel Farrugia

unread,
Oct 30, 2016, 1:17:24 PM10/30/16
to ns-3-...@googlegroups.com
Would you care to explain how please?

nobody s

unread,
Oct 31, 2016, 4:56:59 PM10/31/16
to ns-3-users
Hey so I confused 2 things. 
How to use net anim, which i already know and is working.
the other part is not solved yet though, i installed 

sudo apt-get python-wnck

sudo apt-get python-rsvg

sudo apt-get  python-gnomekeyring


Since gnmode2-desktop is not available, 

and still getting the message "Could not load icon gnome-terminal due to missing gnomedesktop Python module"

I even installed the python-gnome2-desktop-dev, but i need to follow up a little bit about that item in the link tomasso provided me at:

Stefan Jevtic

unread,
Nov 19, 2016, 11:58:27 AM11/19/16
to ns-3-users
Did you manage to get this solved?

Francisco Eduardo Balart Sanchez

unread,
Nov 20, 2016, 5:37:58 PM11/20/16
to ns-3-users
Good day:

Noup, tried a lot of approaches, yet not worked,
the import is done in the visualizer at the ns3.25/src/visualizer/visualizer/core.py

There is the import and the error message, why the packages don´t work i´m not sure if has to do with the orther of installing the components, python version you have, if you installed with sudo or not,

Sorry, still looking  

malresser

unread,
Nov 23, 2016, 7:02:05 PM11/23/16
to ns-3-users
maybe upgrade to ns3.26 and try again? i use kubuntu 14.04 with ns3.26-DCE with quagga ,net anim works fine

Francisco Eduardo Balart Sanchez

unread,
Nov 25, 2016, 3:52:58 PM11/25/16
to ns-3-users
Good day:

Ok, so 2 things.
In my previous response i clarified that net anim is worknig just fine. 
Here the issue that hasn't being resolved is the message when running with --vis  which is 

"Could not load icon gnome-terminal due to missing gnomedesktop Python module"

which me and Stefan haven´t being able to solve Using ns3.25 with ubuntu 14.05

The fixes proposed at:  


Didn't worked for me and Stefan

This also has being discussed here were Stefan seems to have a possible solution, i haven´t tried yet


Hope i clarified this,

Eduardo


Reply all
Reply to author
Forward
0 new messages