Enag2000 created this task.
Enag2000 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  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.

TASK DETAIL
  https://phabricator.wikimedia.org/T346008

WORKBOARD
  https://phabricator.wikimedia.org/project/board/87/

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Enag2000
Cc: Aklapper, pywikibot-bugs-list, Enag2000, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to