Devon icon indicating copy to clipboard operation
Devon copied to clipboard

Error installing devon_agent Windows 11

Open CobraGazes opened this issue 1 year ago • 5 comments

I installed all dependencies successfully and can run them fine but when I try to pipx install devon_agent it runs for about a minute then fails to build package with the error:

pip failed to build package:
    code-nav-devon

Some possibly relevant errors from pip install:
    warning: [email protected]: Compiler family detection failed due to error: ToolExecError: Command "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.40.33807\\bin\\HostX64\\x64\\cl.exe" "-E" "C:\\Users\\myuser\\AppData\\Local\\Temp\\pip-install-3bemqkjo\\code-nav-devon_210f3ff557814fb6813fb5a48d037cea\\target\\release\\build\\tree-sitter-COBOL-ddd2bf2a20f798aa\\out\\11135311020291847115detect_compiler_family.c" with args C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\cl.exe did not execute successfully (status code exit code: 2).

I tried using ubuntu but when I used curl it defaulted to using windows cmd and that led to the same error I tried to activate the vendered feature in openssl but honestly I'm not sure if I did it right I just added openssl = { version = "0.10", features = ["vendored"] } under the dependencies config in my project folder but that didn't change anything.

In logs the error comes out as:

      warning: build failed, waiting for other jobs to finish...
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit code: 101": `"cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "C:\\Users\\myuser\\AppData\\Local\\Temp\\pip-install-b740g2a5\\code-nav-devon_6e12ecca44b84f58b50f00558a3d4d60\\Cargo.toml" "--release" "--lib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'C:\\Users\\myuser\\pipx\\venvs\\devon-agent\\Scripts\\python.exe', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]

CobraGazes avatar Jul 19 '24 03:07 CobraGazes

I was able to resolve this issue by removing tree-sitter COBOL from code-nav-devon. I issued a PR here #1

taisazero avatar Jul 22 '24 04:07 taisazero

You're a lifesaver, thanks

CobraGazes avatar Jul 22 '24 20:07 CobraGazes

Just a heads up in case anyone else runs into this:

I had a similar problem installing devon_agent with pip on windows 10, and got the error: pip failed to build package: code-nav-devon

solved it by installing Rust on windows: https://www.rust-lang.org/tools/install

loke-bager avatar Aug 19 '24 12:08 loke-bager

has the pip install for code-nav-devon been updated since the merge of the fix? still getting an error with tree-sitter-COBOL v0.0.1 when installing using pip:

error: failed to run custom build command for tree-sitter-COBOL v0.0.1 (https://github.com/BloopAI/tree-sitter-cobol#8ba6692c)

flugenheimer avatar Aug 21 '24 09:08 flugenheimer

Hello All, I received same error trying to install on Windows 11, apart from all dependencies, path, env variable check, still getting below error. Any suggestions? I can see rust, cargo and vc c++ compiler running in task manager, several of them, however time later got this message:

(devon_env) R:\OneDrive\Apps\Devon>pipx install devon_agent

Fatal error from pip prevented installation. Full pip output in file: R:\OneDrive\Apps\PipX\logs\cmd_2024-12-13_14.19.02_pip_errors.log

pip failed to build package: code-nav-devon

Some possibly relevant errors from pip install: warning: [email protected]: Compiler family detection failed due to error: ToolExecError: Command "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe" "-E" "C:\Users\marci\AppData\Local\Temp\pip-install-2a823p9m\code-nav-devon_9cf88de7328d4950939e1ab8c57d5dc4\target\release\build\tree-sitter-COBOL-14c574bb71d01b61\out\7008919725150902704detect_compiler_family.c" with args C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe did not execute successfully (status code exit code: 2). warning: [email protected]: Compiler family detection failed due to error: ToolExecError: Command "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe" "-E" "C:\Users\marci\AppData\Local\Temp\pip-install-2a823p9m\code-nav-devon_9cf88de7328d4950939e1ab8c57d5dc4\target\release\build\tree-sitter-COBOL-14c574bb71d01b61\out\3521219510869972534detect_compiler_family.c" with args C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe did not execute successfully (status code exit code: 2). warning: [email protected]: Compiler family detection failed due to error: ToolExecError: Command "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe" "-E" "C:\Users\marci\AppData\Local\Temp\pip-install-2a823p9m\code-nav-devon_9cf88de7328d4950939e1ab8c57d5dc4\target\release\build\tree-sitter-COBOL-14c574bb71d01b61\out\11351732606861435679detect_compiler_family.c" with args C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe did not execute successfully (status code exit code: 2). warning: [email protected]: ToolExecError: Command "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-I" "src" "-W4" "-FoC:\Users\marci\AppData\Local\Temp\pip-install-2a823p9m\code-nav-devon_9cf88de7328d4950939e1ab8c57d5dc4\target\release\build\tree-sitter-COBOL-14c574bb71d01b61\out\2e40c9e35e9506f4-scanner.o" "-c" "src\scanner.c" with args cl.exe did not execute successfully (status code exit code: 2). cargo:warning=Compiler family detection failed due to error: ToolExecError: Command "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe" "-E" "C:\Users\marci\AppData\Local\Temp\pip-install-2a823p9m\code-nav-devon_9cf88de7328d4950939e1ab8c57d5dc4\target\release\build\tree-sitter-COBOL-14c574bb71d01b61\out\7008919725150902704detect_compiler_family.c" with args C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe did not execute successfully (status code exit code: 2). cargo:warning=Compiler family detection failed due to error: ToolExecError: Command "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe" "-E" "C:\Users\marci\AppData\Local\Temp\pip-install-2a823p9m\code-nav-devon_9cf88de7328d4950939e1ab8c57d5dc4\target\release\build\tree-sitter-COBOL-14c574bb71d01b61\out\3521219510869972534detect_compiler_family.c" with args C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe did not execute successfully (status code exit code: 2). cargo:warning=Compiler family detection failed due to error: ToolExecError: Command "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe" "-E" "C:\Users\marci\AppData\Local\Temp\pip-install-2a823p9m\code-nav-devon_9cf88de7328d4950939e1ab8c57d5dc4\target\release\build\tree-sitter-COBOL-14c574bb71d01b61\out\11351732606861435679detect_compiler_family.c" with args C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe did not execute successfully (status code exit code: 2). cargo:warning=ToolExecError: Command "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64\cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-I" "src" "-W4" "-FoC:\Users\marci\AppData\Local\Temp\pip-install-2a823p9m\code-nav-devon_9cf88de7328d4950939e1ab8c57d5dc4\target\release\build\tree-sitter-COBOL-14c574bb71d01b61\out\2e40c9e35e9506f4-scanner.o" "-c" "src\scanner.c" with args cl.exe did not execute successfully (status code exit code: 2). Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'R:\OneDrive\Apps\PipX\venvs\devon-agent\Scripts\python.exe', '--compatibility', 'off'] returned non-zero exit status 1

Error installing devon-agent.

(devon_env) R:\OneDrive\Apps\Devon>

Fox-Me avatar Dec 13 '24 17:12 Fox-Me