Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wt163 opened this issue Nov 20, 2023 · 0 comments
Open

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

wt163 opened this issue Nov 20, 2023 · 0 comments

Comments

@wt163
Copy link

wt163 commented Nov 20, 2023

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。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant