Neato not found with pygraphviz on Mac OS

I have a strange little problem.

When I run:

import pygraphviz as pgv a = pgv.AGraph() print a._get_prog('neato') 

I get:

 ValueError: 'Program neato not found in path.' 

However, when I do neato -V in the terminal:

 $ neato -V neato - graphviz version 2.28.0 (20120301.1344) 

What is the deal here?

+4
source share
1 answer

So, I answer this question pretty quickly, but instead of deleting it, I will add text so that the next person can find it. The problem was not pygraphviz , but Textmate 2.x was a bit strange regarding PATH . It seems that textmate uses its own path, but you cannot find this variable in the variable editor. However, you can add to it using the usual syntax as shown below. This is fixed for me as well.

What i had to do

+4
source

Source: https://habr.com/ru/post/1399370/


All Articles