Rust error when trying to use aiogram framework
โ Rust ๐ 2026-02-05 ๐ค surdeus ๐๏ธ 10I have a problem. I think I downloaded RUST, I needed it for a bot in Telegram, but I get a spectacular error.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for aiohttp
Building wheel for pydantic-core (pyproject.toml) ... error
error: subprocess-exited-with-error
ร Building wheel for pydantic-core (pyproject.toml) did not run successfully.
โ exit code: 1
โฐโ> [45 lines of output]
Running `maturin pep517 build-wheel -i C:\Program Files\Python315\python.exe --compatibility off`
๐ฆ Including license file `LICENSE`
๐น Building a mixed python/rust project
๐ Found pyo3 bindings
๐ Found CPython 3.15 at C:\Program Files\Python315\python.exe
๐ก Using build options features, bindings from pyproject.toml
Compiling proc-macro2 v1.0.86
Compiling unicode-ident v1.0.12
Compiling target-lexicon v0.13.2
Compiling cc v1.0.101
Compiling once_cell v1.19.0
Compiling stable_deref_trait v1.2.0
Compiling autocfg v1.3.0
Compiling writeable v0.5.5
Compiling litemap v0.7.3
Compiling heck v0.5.0
Compiling icu_locid_transform_data v1.5.0
Compiling version_check v0.9.5
Compiling smallvec v1.14.0
Compiling libc v0.2.155
Compiling rustversion v1.0.17
Compiling icu_properties_data v1.5.0
Compiling radium v0.7.0
Compiling icu_normalizer_data v1.5.0
Compiling cfg-if v1.0.0
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.
note: VS Code is a different product, and is not sufficient.
error: could not compile `proc-macro2` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `rustversion` (build script) due to 1 previous error
error: could not compile `radium` (build script) due to 1 previous error
error: could not compile `libc` (build script) due to 1 previous error
error: could not compile `target-lexicon` (build script) due to 1 previous error
๐ฅ maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit code: 101": `"cargo" "rustc" "--profile" "release" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "C:\\Users\\ะะฟัะธะป\\AppData\\Local\\Temp\\pip-install-0hn9zsoq\\pydantic-core_923ecaeca9354f6993cc3c497b906c15\\Cargo.toml" "--lib" "--crate-type" "cdylib"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'C:\\Program Files\\Python315\\python.exe', '--compatibility', 'off'] returned non-zero exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pydantic-core
Failed to build aiohttp pydantic-core
error: failed-wheel-build-for-install
ร Failed to build installable wheels for some pyproject.toml based projects
โฐโ> aiohttp, pydantic-core
I seem to have downloaded pydantic-core, and RUST confirms that it is installed via version checking, but I still can't download aiogram.
2 posts - 2 participants
๐ท๏ธ Rust_feed