0

我通过 anytree 模块制作了一个树形图,我想从中获取一个 png 文件。我尝试了graphviz(dotfile to png)但出现错误:有什么问题?

Traceback (most recent call last):
  File "<pyshell#14>", line 1, in <module>
    BOM.treegraph()
  File "C:\Users\Ali\Downloads\test.test.succ4.py", line 33, in treegraph
    DotExporter (vars()[BOM.a[0].product]).to_picture ('udo.png')
  File "C:\Users\Ali\AppData\Local\Programs\Python\Python37-32\lib\site-packages\anytree\exporter\dotexporter.py", line 232, in to_picture
    check_call(cmd)
  File "C:\Users\Ali\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 342, in check_call
    retcode = call(*popenargs, **kwargs)
  File "C:\Users\Ali\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 323, in call
    with Popen(*popenargs, **kwargs) as p:
  File "C:\Users\Ali\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "C:\Users\Ali\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
4

0 回答 0