stitionai / devika

Devika is an Agentic AI Software Engineer that can understand high-level human instructions, break them down into steps, research relevant information, and write code to achieve the given objective. Devika aims to be a competitive open-source alternative to Devin by Cognition AI.
MIT License
18.49k stars 2.4k forks source link

[ISSUE] The build process gets stuck at requirement.txt installation @ windows - Failed to fetch wheel: fastlogging==1.2.0 #629

Open nevinm opened 3 months ago

nevinm commented 3 months ago

Describe your issue

 devika  uv venv
Using Python 3.12.4 interpreter at: C:\Users\nevin\AppData\Local\Programs\Python\Python312\python.exe
Creating virtualenv at: .venv
Activate with: .venv\Scripts\activate
 devika  .venv\Scripts\activate
 devika 
 devika  uv pip install -r requirements.txt
Resolved 140 packages in 114ms
error: Failed to prepare distributions
  Caused by: Failed to fetch wheel: fastlogging==1.2.0
  Caused by: Failed to build: `fastlogging==1.2.0`
  Caused by: Build backend failed to build wheel through `build_wheel()` with exit code: 1
--- stdout:
Creating C:\Users\nevin\AppData\Local\uv\cache\built-wheels-v3\pypi\fastlogging\1.2.0\gQFPfmgCloieSdprUPVc4\fastlogging-1.2.0.tar.gz\fastlogging\fastlogging.pyx
Creating C:\Users\nevin\AppData\Local\uv\cache\built-wheels-v3\pypi\fastlogging\1.2.0\gQFPfmgCloieSdprUPVc4\fastlogging-1.2.0.tar.gz\fastlogging\network.pyx
building with Cython 3.0.10
Compiling fastlogging\fastlogging.pyx because it changed.
Compiling fastlogging\network.pyx because it changed.
[1/2] Cythonizing fastlogging\fastlogging.pyx
[2/2] Cythonizing fastlogging\network.pyx
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\fastlogging
copying fastlogging\console.py -> build\lib.win-amd64-cpython-312\fastlogging
copying fastlogging\fastlogging.py -> build\lib.win-amd64-cpython-312\fastlogging
copying fastlogging\network.py -> build\lib.win-amd64-cpython-312\fastlogging
copying fastlogging\optimize.py -> build\lib.win-amd64-cpython-312\fastlogging
copying fastlogging\__init__.py -> build\lib.win-amd64-cpython-312\fastlogging
running egg_info
writing fastlogging.egg-info\PKG-INFO
writing dependency_links to fastlogging.egg-info\dependency_links.txt
writing top-level names to fastlogging.egg-info\top_level.txt
reading manifest file 'fastlogging.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'fastlogging.egg-info\SOURCES.txt'
running build_ext
building 'fastlogging.fastlogging' extension
--- stderr:
warning: no previously-included files matching '*.cpp' found anywhere in distribution
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/
---
(devika)  Nevin   devika    main ≡                     

How To Reproduce

I was following the steps here https://github.com/stitionai/devika?tab=readme-ov-file#installation. The above error came when I was doing: uv pip install -r requirements.txt

Configuration

- OS: Windows 11
- Python version: 
- Node version: v18.20.3
- bun version: 1.1.21
- Model: llama3
pratikdhaboo commented 3 months ago

Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
image

vaishnavprabhakar commented 2 months ago

stuck on installing requirements the same issue showing.

@pratikdhaboo

issue solved by installing python3-devel package.

velesbh commented 4 days ago

Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ image

Fixed it for me!