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

Closed
wt163 opened this issue Nov 20, 2023 · 1 comment
Closed

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

wt163 opened this issue Nov 20, 2023 · 1 comment

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。

@cdeline
Copy link
Contributor

cdeline commented Sep 10, 2024

This is almost certainly because the RADIANCE executables are not set up on your PATH directory. Please follow the install instructions here, and particularly pay attention to setting up the PATH and RAYPATH environment variables.

@cdeline cdeline closed this as completed Sep 10, 2024
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

2 participants