da-rth / yasb

A highly configurable cross-platform (Windows) status bar written in Python.
MIT License
1.36k stars 80 forks source link

[BUG] build failed , while installing requirement #72

Closed NormTurtle closed 1 year ago

NormTurtle commented 1 year ago

image

i even installed VS-code as it says , but still not workign info : OS : wind 11 , python = 3.11 ![image](https://user-images.githubusercontent.com/108952834/217237531-1f38f548-7f6b-4fad-8860-7835a2dedfb1.png) ``` copying psutil\tests\__init__.py -> build\lib.win-amd64-cpython-311\psutil\tests copying psutil\tests\__main__.py -> build\lib.win-amd64-cpython-311\psutil\tests running build_ext building 'psutil._psutil_windows' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for psutil Building wheel for winsdk (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for winsdk (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [332 lines of output] ```
Kaleidoscope361 commented 1 year ago

It's asking you to install visual studio, not visual studio code.

lazuee commented 1 year ago

Same problem, I already installed visual studio 2022 and cmake.. still getting this error

Kaleidoscope361 commented 1 year ago

Same problem, I already installed visual studio and cmake.. still getting this error

You need to modify your visual studio by going to the Installer > Individual componets and search for Windows SDK and C++ build tools, that worked for me. Still, yasb's installer seems to be broken as shown in this issue, i wouldn't bother tinkering with this since the project seems to be pretty dead, the developer hasn't replied to any of the issues for a while now.

NormTurtle commented 1 year ago

@Hackett99 im just curious, why they are not providing a prebuild binary of YASB ? :( it would be so much better

da-rth commented 1 year ago

@Hackett99 im just curious, why they are not providing a prebuild binary of YASB ? :( it would be so much better

Development for YASB v1 has been halted as I am currently working on rewriting yasb in rust. The rewrite will include a prebuilt binary release.

Marking as closed as this issue appears to have been resolved