bifacial_radiance icon indicating copy to clipboard operation
bifacial_radiance copied to clipboard

subprocess.py can't find the specific file

Open wt163 opened this issue 7 months ago • 0 comments

Did anybody have the problem with makeOctfile, After I run octfile = demo.makeOct(demo.getfilelist()), then it showed the error can't find file. Even if I have changed the Shell=True.

Traceback (most recent call last): File "C:\Users.conda\envs\pySMARTS_example\lib\site-packages\IPython\core\interactiveshell.py", line 3460, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 5, in octfile = demo.makeOct(filelist) File "C:\Users\Desktop\bifacial_radiance\bifacial_radiance\main.py", line 1895, in makeOct _,err = _popen(filelist, None, f) File "C:\Users\Desktop\bifacial_radiance\bifacial_radiance\main.py", line 100, in _popen p = Popen(cmd, bufsize=-1, stdin=PIPE, stdout=data_out, stderr=PIPE, shell=shell) #shell=True required for Linux? quick fix, but may be security concern File "C:\Users.conda\envs\pySMARTS_example\lib\subprocess.py", line 858, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users.conda\envs\pySMARTS_example\lib\subprocess.py", line 1327, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] System cannot find the specific file。

wt163 avatar Nov 20 '23 09:11 wt163