graphviz is a required component for category_graph.py to run. This is not mentioned in the pywikibot Requirements.txt file and is not installed as part of the standard pywikibot installation.
Without graphviz, a FileNotFoundError with message "[WinError2] "dot" not found in path." will occur when running pwb.py -v category_graph -from.
Full Traceback
Exception has occurred: FileNotFoundError
[WinError 2] "dot" not found in path.
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
File "C:\git\core\scripts\category_graph.py", line 181, in run
self.dot.write_svg(self.to + '.svg', encoding='utf-8')
File "C:\git\core\scripts\category_graph.py", line 209, in <module>
bot.run()
File "C:\git\core\pywikibot\scripts\wrapper.py", line 147, in run_python_file
exec(compile(source, filename, 'exec', dont_inherit=True),
File "C:\git\core\pywikibot\scripts\wrapper.py", line 484, in execute
run_python_file(filename, script_args, module)
File "C:\git\core\pywikibot\scripts\wrapper.py", line 497, in main
if not execute():
^^^^^^^^^
File "C:\git\core\pywikibot\scripts\wrapper.py", line 513, in <module>
main()
File "C:\git\core\pwb.py", line 35, in main
runpy.run_path(str(path), run_name='__main__')
File "C:\git\core\pwb.py", line 39, in <module>
sys.exit(main())
^^^^^^
FileNotFoundError: [WinError 2] "dot" not found in path.This should be added to the Requirements.txt file under the section for interwiki_graph.py and category_graph.py.