On 8/15/12 1:39 PM, Paila, Uma Devi (udp3f) wrote: > Hi, > I had recently installed fink on my Mac OSX lion (10.7) to install > graphviz to be used with python scripting. I had installed the version > available with fink (2.26.3-6) though a stable version 2.28 is also > available, fink does not show it in its updates.
Fink only knows about versions which our maintainers have explicitly made available--the fact that there is a later upstream version indicates that our maintainer hasn't updated the Fink graphviz package yet. Fink shows an 'i' for > this package which means it is installed but when i try to import gv it says > > ImportError: No module named gv > > i have python 2.7 installed and my script has lines like > import sys > sys.path.append('..') > sys.path.append('/usr/local/lib/graphviz/python') > import gv > > I had googled a lot on tho issue and even in the mailing lists and > nothing seemed to help. What i understand is there are no python > bindings to graphviz for mac and that some libgv-python is required. I > am not sure > how to fix this for mac lion. Any help would be greatly appreciated. > > Regards, > Uma > > 1) "graphviz" doesn't contain any python bindings. 2) We _do_ have python bindings for graphviz, however. Try installing "pygraphviz-py27". 3) Fink doesn't install in /usr/local, so your script won't work as is. Use "dpkg -L pygraphviz-py27" to show where pygraphviz-py27 installs its packages and you can modify your script appropriately. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fink-beginners mailing list Fink-beginners@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.beginners Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-beginners