LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2011, 07:04 AM   #1
shanky
Member
 
Registered: Aug 2011
Posts: 155

Rep: Reputation: Disabled
installation check


hii
i am working on ns3 and to use the visualizer i had installed some packages before hand,even then the console shows me some errors when i run the code telling me no module named pyvizgraph, which it should not as these were the required packages.How should i check whether the packages has been installed CORRECTLY or not?
these were the packages i have installed
python-devel
gnome-python2
gnome-python2-gnomedesktop
gnome-python2-rsvg
graphviz-python
pygoocanvas
python-kiwi
i have referred to this page http://www.nsnam.org/wiki/index.php/PyViz

thanks in advance
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-19-2011, 07:56 AM   #2
jrhorn424
LQ Newbie
 
Registered: Oct 2011
Location: Virginia
Posts: 20

Rep: Reputation: Disabled
Those are the dependencies, at least. Did you try the following?

Code:
 pip install pyvizgraph
Or if pip is not installed:

Code:
easy_install pyvizgraph
You might need to be root for these to install correctly.

To answer your specific question, you could enter the python interpreter and then try loading the module. If the module doesn't load, it isn't installed. To do it on a single line from the command line, try:

Code:
python -c 'import pyvizgraph'
Since it isn't installed on my system, I get the following message:

Code:
jrhorn424@hook:~ 2011-10-19 09:00:03 
>> python -c 'import pyvizgraph'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named pythongraphviz

Last edited by jrhorn424; 10-19-2011 at 09:14 AM.
 
Old 10-19-2011, 08:43 AM   #3
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
i did as you said used python -c 'import pythongraphviz'
and i got the same result
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named pythongraphviz

To cross check i gave yum list graphviz-python i got
Installed Packages
graphviz-python.i586 2.20.3-3.fc11 installed

Then again i gave python -c 'import graphviz-python' the console showed
File "<string>", line 1
import graphviz-python
^
SyntaxError: invalid syntax

What does this mean??
Really confused!!!
 
Old 10-19-2011, 09:10 AM   #4
jrhorn424
LQ Newbie
 
Registered: Oct 2011
Location: Virginia
Posts: 20

Rep: Reputation: Disabled
'graphviz-python' are likely the python bindings for graphviz, which (I believe) is a separate piece of software. Did you try installing the module?

Please try installing pyvizgraph with either pip or easy_install, as I recommended previously. This is the error your OP mentioned. I should have asked you to check:

Code:
python -c 'import pyvizgraph'

Last edited by jrhorn424; 10-19-2011 at 09:13 AM.
 
Old 10-19-2011, 10:43 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The Fedora packages graphviz-python (and python-networkx),
which should provide the module pygraphviz seem to be incomplete.
( Or is something else than a genuine "pygraphviz-1.1" :
The Fedora graphviz-python is version 2.2x.x ).
EDIT: pygraphviz-1.1 is only available for CentOS6 ("Fedora 12"),
CentOS5 ("Fedora 6") e.g. python-pygraphviz-1.1-2.el6.rf.i686.rpm

A manual install of pygraphviz-1.1(.tar.gz) will fix the issue.
http://pypi.python.org/packages/sour...e29135e93b2461
Also required : # yum install graphviz-devel

cd pygraphviz-1.1/ ; su ; python setup.py install

The command
./waf --pyrun src/flow-monitor/examples/wifi-olsr-flowmon.py --visualize
will now open the 'Visualize GUI'. Tested with ns3 version 3.12.1 :
http://www.nsnam.org/release/ns-allinone-3.12.1.tar.bz2
http://www.nsnam.org/

..

Last edited by knudfl; 10-19-2011 at 11:53 AM.
 
3 members found this post helpful.
Old 10-22-2011, 03:52 AM   #6
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
hiii sry for getting back so late !! but the visualizer is working..thanks a lot everyone ..its a huge relief
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
check linux installation odopopp Linux - Security 16 07-07-2009 02:58 PM
How can I check my installation for success? M$ISBS Slackware 2 07-02-2006 06:08 PM
how to install and check installation zeedoo Linux - Software 1 07-07-2004 12:09 PM
how to check (not at installation) cd abd_bela Fedora 1 02-19-2004 11:51 PM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration