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

unresolved import winapi::um::errhandlingapi #668

Closed
SEBROVATER opened this issue May 23, 2024 · 2 comments
Closed

unresolved import winapi::um::errhandlingapi #668

SEBROVATER opened this issue May 23, 2024 · 2 comments

Comments

@SEBROVATER
Copy link

Installing through pip works fine, but installing through cargo fails with a compile error.

The full error message looks like this:

error[E0432]: unresolved import `winapi::um::errhandlingapi`
  --> C:\Users\sebro\.cargo\registry\src\index.crates.io-6f17d22bba15001f\remoteprocess-0.4.13\src\windows\symbolication.rs:11:17
   |
11 | use winapi::um::errhandlingapi::GetLastError;
   |                 ^^^^^^^^^^^^^^ could not find `errhandlingapi` in `um`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `remoteprocess` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `py-spy v0.3.14`, intermediate artifacts can be found at `C:\Users\sebro\AppData\Local\Temp\cargo-installmeg7Lx`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

The same error appears if I try to compile from the source (main branch)

System info:
Windows 11 Home (fresh installation, as I bought a new laptop)
cargo --version 1.78.0 (54d8815d0 2024-03-26)
rustc --version 1.78.0 (9b00956e5 2024-04-29
Used "Sophia-Script for Windows" to clear the system from useless garbage, maybe it caused some problems.

@akhramov
Copy link
Contributor

benfred/remoteprocess#88

A fix for this ^

@benfred
Copy link
Owner

benfred commented Oct 30, 2024

believe this is fixed by #685

@benfred benfred closed this as completed Oct 30, 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

Successfully merging a pull request may close this issue.

3 participants