crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
18.98k stars 2.61k forks source link

Could not build wheels for chroma-hnswlib #344

Closed joaolvivas closed 2 weeks ago

joaolvivas commented 5 months ago

Has anyone experienced this issue before?

Could it be something related to my Python version?

Screenshot 2024-03-12 at 7 59 10 PM
joaolvivas commented 5 months ago

I fixed this by downgrading my Python version to 3.10.

Thanks.

Traveltainer007 commented 5 months ago

Ive upgraded to 3.12 and the MSVSC C++ on win10 pro and everything downloads and installs except the chromalib I also rebooted

│ exit code: 1 ╰─> [12 lines of output] running bdist_wheel running build running build_ext building 'hnswlib' extension creating build creating build\temp.win32-cpython-312 creating build\temp.win32-cpython-312\Release creating build\temp.win32-cpython-312\Release\python_bindings "D:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x86\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\user\AppData\Local\Temp\pip-build-env-4_9y2dxx\overlay\Lib\site-packages\pybind11\include -IC:\Users\user\AppData\Local\Temp\pip-build-env-4_9y2dxx\overlay\Lib\site-packages\numpy\core\include -I./hnswlib/ -IC:\Users\user\AppData\Local\Programs\Python\Python312\include -IC:\Users\user\AppData\Local\Programs\Python\Python312\Include "-ID:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-ID:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-ID:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-ID:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /EHsc /Tp./python_bindings/bindings.cpp /Fobuild\temp.win32-cpython-312\Release./python_bindings/bindings.obj /EHsc /openmp /O2 /DVERSION_INFO=\\"0.7.3\\" bindings.cpp D:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include\yvals.h(20): fatal error C1083: Cannot open include file: 'crtdbg.h': No such file or directory error: command 'D:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x86\cl.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for chroma-hnswlib Failed to build chroma-hnswlib

j-dominguez9 commented 4 months ago

Still getting this error.

system: Fedora Linux 39 python version: 3.12.2

Why is chroma-hnswlib even a dependency?

Kei1yn commented 4 months ago

What worked for me was installing the VS Build Tools.

Cap0n3 commented 4 months ago

Still getting this error.

system: Fedora Linux 39 python version: 3.12.2

Why is chroma-hnswlib even a dependency?

To resolve this issue on Fedora version 32 or newer, you'll need to install the equivalent of the build-essential package. Execute the following command in the terminal to install the necessary development tools and libraries:

sudo dnf groupinstall "Development Tools" "Development Libraries"
Free-Radical commented 4 months ago

For Ubuntu 22 fix-

sudo apt install python3-dev
sudo apt-get install build-essential -y
ZealLab commented 3 months ago

What worked for me was installing the VS Build Tools.

This worked for me

GeorgeMyller commented 3 months ago

I have the same error on VScode to MacBook Pro.

huangpan2507 commented 2 months ago

apt-get install build-essential -y

it workds for me!!!!!

HarishChandran3304 commented 2 months ago

Still getting this error. system: Fedora Linux 39 python version: 3.12.2 Why is chroma-hnswlib even a dependency?

To resolve this issue on Fedora version 32 or newer, you'll need to install the equivalent of the build-essential package. Execute the following command in the terminal to install the necessary development tools and libraries:

sudo dnf groupinstall "Development Tools" "Development Libraries"

Worked for me, thank you!

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been stalled for 5 days with no activity.