-
Notifications
You must be signed in to change notification settings - Fork 689
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.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1. #39
Comments
i have also the problem , how ? |
Same problem, not solved yet |
I faced the same problem on windows system, and I solved it through setting environment variables. |
Traceback (most recent call last): Got this error while working on this project: https://github.com/zhou13/neurvps |
Have you solve this problem? |
Hi. For this to work you have to make sure that cl command can be called from your prompt. This and this shows solutions for windows 10. But the easiest workaround I found is just add cl.exe dir path to the environmental variables. Default path is "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.22.27905\bin...". choose the right one accordingly to your architecture. |
For few of us who cannot read Chinese :
|
@mohammadrezanaderi4 thank you! problem solved! |
@mohammadrezanaderi4 thanks for your solution but did not fully work for me on windows 10. after I removed the semicolon* and ran the bat as follows: vcvarsall.bat x86_amd64 then I could run 'cl' in a new command prompt successfully. *semicolon problem for windows 10 mentioned here: |
I use Visual Studio Code does someone have the Paths for VSCode? |
did you find a solution please , I am stuck in this error ? |
hello |
'pwd' is not recognized as an internal or external command, this is the error |
oohh I forgot. I have MSV2022 |
do you find a solution, I also encounter this problem |
sorry, no
Sent: Tuesday, February 14, 2023 at 7:47 AM
From: "Latias201" ***@***.***>
To: "HRNet/HRNet-Semantic-Segmentation" ***@***.***>
Cc: "FilipeF12" ***@***.***>, "Comment" ***@***.***>
Subject: Re: [HRNet/HRNet-Semantic-Segmentation] subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1. (#39)
'pwd' is not recognized as an internal or external command, operable program or batch file. C:\Users\claus\miniconda3\lib\site-packages\torch\utils\cpp_extension.py:317: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') INFO: Could not find files for the given pattern(s). Traceback (most recent call last): File "D:\courses\machine learning\RGBD_Semantic_Segmentation_PyTorch-master\model\SA-Gate.nyu.432\train.py", line 22, in from furnace.seg_opr.sync_bn.parallel import DataParallelModel, Reduce File "D:\courses\machine learning\RGBD_Semantic_Segmentation_PyTorch-master\furnace\seg_opr\sync_bn__init__.py", line 8, in from furnace.seg_opr.sync_bn.syncbn import * File "D:\courses\machine learning\RGBD_Semantic_Segmentation_PyTorch-master\furnace\seg_opr\sync_bn\syncbn.py", line 17, in from furnace.seg_opr.sync_bn.functions import * File "D:\courses\machine learning\RGBD_Semantic_Segmentation_PyTorch-master\furnace\seg_opr\sync_bn\functions.py", line 13, in from furnace.seg_opr.sync_bn.src import * File "D:\courses\machine learning\RGBD_Semantic_Segmentation_PyTorch-master\furnace\seg_opr\sync_bn\src__init__.py", line 11, in cpu = load('syncbn_cpu', [ File "C:\Users\claus\miniconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1125, in load return _jit_compile( File "C:\Users\claus\miniconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1338, in _jit_compile _write_ninja_file_and_build_library( File "C:\Users\claus\miniconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1437, in _write_ninja_file_and_build_library _write_ninja_file_to_build_library( File "C:\Users\claus\miniconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1876, in _write_ninja_file_to_build_library _write_ninja_file( File "C:\Users\claus\miniconda3\lib\site-packages\torch\utils\cpp_extension.py", line 2000, in _write_ninja_file cl_paths = subprocess.check_output(['where', File "C:\Users\claus\miniconda3\lib\subprocess.py", line 424, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "C:\Users\claus\miniconda3\lib\subprocess.py", line 531, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.
this is the error
do you find a solution, I also encounter this problem
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
I have encountered this problem(on Windows) in other python project. In my case, I solved it by
|
Thanks for your appealing work, but I encountered a problem when having a try on training your code. Here is the error informations:
`
Frame skipped from debugging during step-in.
Note: may have been skipped because of "justMyCode" option (default == true).
F:\anaconda3\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
Traceback (most recent call last):
File "c:\Users\msi-pc.vscode\extensions\ms-python.python-2019.8.29288\pythonFiles\ptvsd_launcher.py", line 43, in
main(ptvsdArgs)
File "c:\Users\msi-pc.vscode\extensions\ms-python.python-2019.8.29288\pythonFiles\lib\python\ptvsd_main_.py", line 432, in main
run()
File "c:\Users\msi-pc.vscode\extensions\ms-python.python-2019.8.29288\pythonFiles\lib\python\ptvsd_main_.py", line 316, in run_file
runpy.run_path(target, run_name='main')
File "F:\anaconda3\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "F:\anaconda3\lib\runpy.py", line 96, in run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "F:\anaconda3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "f:\缩小版备份\研究生\19年暑假\HRNet-Semantic-Segmentation-master\tools\train.py", line 27, in
import models
File "f:\缩小版备份\研究生\19年暑假\HRNet-Semantic-Segmentation-master\tools..\lib\models_init.py", line 11, in
import models.seg_hrnet
File "f:\缩小版备份\研究生\19年暑假\HRNet-Semantic-Segmentation-master\tools..\lib\models\seg_hrnet.py", line 22, in
from .sync_bn.inplace_abn.bn import InPlaceABNSync
File "f:\缩小版备份\研究生\19年暑假\HRNet-Semantic-Segmentation-master\tools..\lib\models\sync_bn_init.py", line 1, in
from .inplace_abn import bn
File "f:\缩小版备份\研究生\19年暑假\HRNet-Semantic-Segmentation-master\tools..\lib\models\sync_bn\inplace_abn_init_.py", line 1, in
from .bn import ABN, InPlaceABN, InPlaceABNSync
File "f:\缩小版备份\研究生\19年暑假\HRNet-Semantic-Segmentation-master\tools..\lib\models\sync_bn\inplace_abn\bn.py", line 14, in
from functions import *
File "f:\缩小版备份\研究生\19年暑假\HRNet-Semantic-Segmentation-master\lib\models\sync_bn\inplace_abn\functions.py", line 16, in
extra_cuda_cflags=["--expt-extended-lambda"])
File "F:\anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 644, in load
is_python_module)
File "F:\anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 813, in _jit_compile
with_cuda=with_cuda)
File "F:\anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 862, in _write_ninja_file_and_build
with_cuda=with_cuda)
File "F:\anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1072, in _write_ninja_file
'cl']).decode().split('\r\n')
File "F:\anaconda3\lib\subprocess.py", line 336, in check_output
**kwargs).stdout
File "F:\anaconda3\lib\subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['where', 'cl']' returned non-zero exit status 1.
`
How can I fix this problem? ( My pytorch version is 1.1.0, cuda is 9.0) Looking forward to your reply.
The text was updated successfully, but these errors were encountered: