NREL / bifacial_radiance

Toolkit for working with RADIANCE for the ray-trace modeling of Bifacial Photovoltaics
https://bifacial-radiance.readthedocs.io
BSD 3-Clause "New" or "Revised" License
83 stars 46 forks source link

subprocess.py can't find the specific file #491

Open wt163 opened 7 months ago

wt163 commented 7 months ago

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\bifacialradiance\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。