You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
image_file_path = "./global_surrogate_decision_tree.png"
result = subprocess.call(["dot", "-Tpng", gv_file_path, "-o", image_file_path], shell=False); result
and the error message is below:
FileNotFoundError Traceback (most recent call last)
<ipython-input-69-7101915e3dd9> in <module>
1 image_file_path = "./global_surrogate_decision_tree.png"
----> 2 result = subprocess.call(["dot", "-Tpng", gv_file_path, "-o", image_file_path], shell=False); result
~\AppData\Local\Continuum\anaconda2\envs\pyod_iforest\lib\subprocess.py in call(timeout, *popenargs, **kwargs)
338 retcode = call(["ls", "-l"])
339 """
--> 340 with Popen(*popenargs, **kwargs) as p:
341 try:
342 return p.wait(timeout=timeout)
~\AppData\Local\Continuum\anaconda2\envs\pyod_iforest\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
852 encoding=encoding, errors=errors)
853
--> 854 self._execute_child(args, executable, preexec_fn, close_fds,
855 pass_fds, cwd, env,
856 startupinfo, creationflags, shell,
~\AppData\Local\Continuum\anaconda2\envs\pyod_iforest\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
1305 # Start the process
1306 try:
-> 1307 hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
1308 # no special security
1309 None, None,
FileNotFoundError: [WinError 2] The system cannot find the file specified
I checked the directory and indeed, I could not find the file: global_surrogate_decision_tree.png. Not sure if there is an obvious solution here but I think the tutorial should be updated such that this issue doesn't happen for others who may try it.
The text was updated successfully, but these errors were encountered:
Was this ever resolved? I am having the same issue... I tried creating the file in the directory as well and am still not having luck. However, it is very possible that I did create this file in the wrong directory. I am unsure, please help!
When I ran the above commands, I found that the command "dot" was not recognised:
java -cp h2o-genmodel.jar hex.genmodel.tools.PrintMojo --tree 0 -i surrogate_hex.zip -o gv_file.gv
dot -Tpng gv_file.gv -o decision_tree.png
I tried to run the code found in:
https://github.com/h2oai/h2o-tutorials/blob/master/tutorials/isolation-forest/interpreting_isolation-forest.ipynb
I tried the code on two different machines and got the same issue:
FileNotFoundError: No such file or directory: './global_surrogate_decision_tree.png'
the problem is generated by the following code:
I ripped out the guts of the function and ran it line by line as shown below, to try to narrow down the offending line of code:
I verified that
global_surrogate_decision_tree_hex.zip
existed atmojo_path
.I verified that
h2o-genmodel.jar
existed ath2o_jar_path
.The code fails here:
and the error message is below:
I checked the directory and indeed, I could not find the file:
global_surrogate_decision_tree.png
. Not sure if there is an obvious solution here but I think the tutorial should be updated such that this issue doesn't happen for others who may try it.The text was updated successfully, but these errors were encountered: