Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Cannot add dot executable to system path
#1
When I run graphviz

https://graphviz.readthedocs.io/en/stable/

I get the following error

graphviz.backend.ExecutableNotFound: failed to execute ['dot', '-Tpdf', '-O', 'test-output/aoc.gv.pdf'], make sure the Graphviz executables are on your systems' PATH

I don't know what the graphviz executables are. In any case, my best guess is that I have to add the path of the module that uses graphviz or I have to add the graphviz module to my .bash_profile. Currently, my bash_profile has this line:

PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}

So I tried adding the path of where the module that uses Graphviz is located which is

/Users/me/PycharmProjects/inference_engine2/inference2/proofs/other/use_graphviz.py

Plus the graphviz module itself which is:

/library/frameworks/python.framework/versions/3.6/lib/python3.6/site-packages/graphviz/

Making the final product to be:

PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}:/Users/me/PycharmProjects/inference_engine2/inference2/proofs/other/use_graphviz.py:/library/frameworks/python.framework/versions/3.6/lib/python3.6/site-packages/graphviz/"

But that did not work. I need to know what string I have to add to the PATH.
Quote
#2
This doesn't really seem like a Python question. Are you able to get graphviz working outside of Python, you're just having trouble with Python? Or have you not tried / can't get working graphviz by itself? Assuming the latter, you might want to take a look at https://stackoverflow.com/a/38669904/1157440
Quote
#3
Problem solved. It took me a while to figure out that I had to download some non-pythonic software before I could get the pythonic software to work.

brew install graphviz

Was step 1 and I had done that before but I was getting an error message. It told me to change ownership of some files so I did that. Then tried

brew install graphviz

again and that did the trick.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  how do i write a cross-platform relative file path? pseudo 2 55 Aug-23-2019, 05:07 PM
Last Post: ThomasL
  Get system info from PI (cpu load and temp) korenron 2 131 Aug-04-2019, 08:45 AM
Last Post: korenron
  How do I set the path to my module one directory below my python 3.7.3 program? deac33 1 77 Jul-30-2019, 04:13 AM
Last Post: Larz60+
  File Path not recognised starzar 3 164 Jul-27-2019, 05:23 AM
Last Post: starzar
  Best method: Python script called from another app, package as complete executable ironfelix717 2 121 Jul-24-2019, 07:39 AM
Last Post: DeaD_EyE
  FileNotFoundError...System cannot find the path specified alex9745 28 3,630 Jul-23-2019, 05:14 AM
Last Post: alex9745
  Help | How to make Dynamic Path/Address soothsayerpg 3 191 Jul-14-2019, 03:51 PM
Last Post: DeaD_EyE
  ImportError: cannot import name 'path' user123 2 251 Jul-14-2019, 10:08 AM
Last Post: Larz60+
  Writing the Path to a file properly dcw9996 2 204 Jul-01-2019, 11:26 PM
Last Post: dcw9996
  Difference between os.system("clear") and os.system("cls") chmsrohit 6 475 Jun-16-2019, 11:38 AM
Last Post: DeaD_EyE

Forum Jump:


Users browsing this thread: 1 Guest(s)