Guest User

Untitled

a guest
Jan 17th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. with open ('arbol.dot') as f:
  2. dot_graph =f.read()
  3. graphviz.Source(dot_graph)
  4.  
  5. FileNotFoundError Traceback (most recent call last)
  6. ~Anaconda3libsite-packagesgraphvizbackend.py in pipe(engine, format,
  7. data, quiet)
  8. 153 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
  9. --> 154 startupinfo=STARTUPINFO)
  10. 155 except OSError as e:
  11.  
  12. ~Anaconda3libsubprocess.py in __init__(self, args, bufsize, executable,
  13. stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env,
  14. universal_newlines, startupinfo, creationflags, restore_signals,
  15. start_new_session, pass_fds, encoding, errors)
  16. 708 errread, errwrite,
  17. --> 709 restore_signals, start_new_session)
  18. 710 except:
  19.  
  20. ~Anaconda3libsubprocess.py in _execute_child(self, args, executable,
  21. preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags,
  22. shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite,
  23. unused_restore_signals, unused_start_new_session)
  24. 996 os.fspath(cwd) if cwd is
  25. not None else None,
  26. --> 997 startupinfo)
  27. 998 finally:
  28.  
  29. FileNotFoundError: [WinError 2] El sistema no puede encontrar el archivo
  30. especificado
  31.  
  32. During handling of the above exception, another exception occurred:
  33.  
  34. ExecutableNotFound Traceback (most recent call last)
  35. ~Anaconda3libsite-packagesIPythoncoreformatters.py in __call__(self,
  36. obj)
  37. 334 method = get_real_method(obj, self.print_method)
  38. 335 if method is not None:
  39. --> 336 return method()
  40. 337 return None
  41. 338 else:
  42.  
  43. ~Anaconda3libsite-packagesgraphvizfiles.py in _repr_svg_(self)
  44. 103
  45. 104 def _repr_svg_(self):
  46. --> 105 return self.pipe(format='svg').decode(self._encoding)
  47. 106
  48. 107 def pipe(self, format=None):
  49.  
  50. ~Anaconda3libsite-packagesgraphvizfiles.py in pipe(self, format)
  51. 122 data = text_type(self.source).encode(self._encoding)
  52. 123
  53. --> 124 outs = backend.pipe(self._engine, format, data)
  54. 125
  55. 126 return outs
  56.  
  57. ~Anaconda3libsite-packagesgraphvizbackend.py in pipe(engine, format,
  58. data, quiet)
  59. 155 except OSError as e:
  60. 156 if e.errno == errno.ENOENT:
  61. --> 157 raise ExecutableNotFound(args)
  62. 158 else: # pragma: no cover
  63. 159 raise
  64.  
  65. ExecutableNotFound: failed to execute ['dot', '-Tsvg'], make sure the
  66. Graphviz executables are on your systems' PATH
  67.  
  68. Out[8]:
  69. <graphviz.files.Source at 0x185b7555710>
  70.  
  71. C:UsersAspire E15Anaconda3Libsite-packagesgraphviz
Add Comment
Please, Sign In to add comment