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

Cannot build wheels #3

Open
MoRadwan21 opened this issue Jun 6, 2023 · 1 comment
Open

Cannot build wheels #3

MoRadwan21 opened this issue Jun 6, 2023 · 1 comment

Comments

@MoRadwan21
Copy link

Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Collecting exceptiongroup
Using cached exceptiongroup-1.1.1-py3-none-any.whl (14 kB)
Using legacy 'setup.py install' for sentence-transformers, since package 'wheel' is not installed.
Using legacy 'setup.py install' for validators, since package 'wheel' is not installed.
Building wheels for collected packages: llama-cpp-python
Building wheel for llama-cpp-python (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [224 lines of output]

  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- The C compiler identification is unknown
  CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
    No CMAKE_C_COMPILER could be found.
 
    Tell CMake where to find the compiler by setting either the environment
    variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
    the compiler, or to the compiler name if it is in the PATH.
 
 
  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - failure
  --------------------------------------------------------------------------------
 
 
 
  --------------------------------------------------------------------------------
  -- Trying 'Visual Studio 17 2022 x64 v143' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator
 
      Visual Studio 17 2022
 
    could not find any instance of Visual Studio.
 
 
 
  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Visual Studio 17 2022 x64 v143' generator - failure
  --------------------------------------------------------------------------------
 
 
 
  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- The C compiler identification is MSVC 19.29.30140.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped   
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- The CXX compiler identification is MSVC 19.29.30140.0
  CMake Warning (dev) at C:/Users/madko/AppData/Local/Temp/pip-build-env-53gm1aa8/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:168 (if):
    Policy CMP0054 is not set: Only interpret if() arguments as variables or
    keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
    details.  Use the cmake_policy command to set the policy and suppress this
    warning.
 
    Quoted variables like "MSVC" will no longer be dereferenced when the policy
    is set to NEW.  Since the policy is not set the OLD behavior will be used.
  Call Stack (most recent call first):
    CMakeLists.txt:4 (ENABLE_LANGUAGE)
  This warning is for project developers.  Use -Wno-dev to suppress it.
 
  CMake Warning (dev) at C:/Users/madko/AppData/Local/Temp/pip-build-env-53gm1aa8/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:189 (elseif):
    Policy CMP0054 is not set: Only interpret if() arguments as variables or
    keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
    details.  Use the cmake_policy command to set the policy and suppress this
    warning.
 
    Quoted variables like "MSVC" will no longer be dereferenced when the policy
    is set to NEW.  Since the policy is not set the OLD behavior will be used.
  Call Stack (most recent call first):
    CMakeLists.txt:4 (ENABLE_LANGUAGE)
  This warning is for project developers.  Use -Wno-dev to suppress it.
 
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped 
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring done (3.1s)
  -- Generating done (0.0s)
  -- Build files have been written to: C:/Users/madko/AppData/Local/Temp/pip-install-cdzw0iqp/llama-cpp-python_946467f6ea1e445db77966c7afb835a9/_cmake_test_compile/build
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator - success
  --------------------------------------------------------------------------------
 
  Configuring Project
    Working directory:
      C:\Users\madko\AppData\Local\Temp\pip-install-cdzw0iqp\llama-cpp-python_946467f6ea1e445db77966c7afb835a9\_skbuild\win-amd64-3.9\cmake-build
    Command:
      'C:\Users\madko\AppData\Local\Temp\pip-build-env-53gm1aa8\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\Users\madko\AppData\Local\Temp\pip-install-cdzw0iqp\llama-cpp-python_946467f6ea1e445db77966c7afb835a9' -G Ninja '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\madko\AppData\Local\Temp\pip-build-env-53gm1aa8\overlay\Lib\site-packages\ninja\data\bin\ninja' -D_SKBUILD_FORCE_MSVC=1920 --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\madko\AppData\Local\Temp\pip-install-cdzw0iqp\llama-cpp-python_946467f6ea1e445db77966c7afb835a9\_skbuild\win-amd64-3.9\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.9.13 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\madko\AppData\Local\Temp\pip-build-env-53gm1aa8\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\madko\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\Include' '-DPYTHON_LIBRARY:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\libs\python39.lib' '-DPython_EXECUTABLE:PATH=C:\Users\madko\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' '-DPython_ROOT_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\Include' '-DPython_LIBRARY:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\libs\python39.lib' '-DPython3_EXECUTABLE:PATH=C:\Users\madko\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\Include' '-DPython3_LIBRARY:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\libs\python39.lib' '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\madko\AppData\Local\Temp\pip-build-env-53gm1aa8\overlay\Lib\site-packages\ninja\data\bin\ninja' -DCMAKE_BUILD_TYPE:STRING=Release
 
  Not searching for unused variables given on the command line.
  -- The C compiler identification is MSVC 19.29.30140.0
  -- The CXX compiler identification is MSVC 19.29.30140.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped   
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped 
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.38.1.windows.1")
  fatal: not a git repository (or any of the parent directories): .git
  fatal: not a git repository (or any of the parent directories): .git
  CMake Warning at vendor/llama.cpp/CMakeLists.txt:109 (message):
    Git repository not found; to enable automatic generation of build info,
    make sure Git is installed and the project is a Git repository.
 
 
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
  -- Looking for pthread_create in pthreads
  -- Looking for pthread_create in pthreads - not found
  -- Looking for pthread_create in pthread
  -- Looking for pthread_create in pthread - not found
  -- Found Threads: TRUE
  -- CMAKE_SYSTEM_PROCESSOR: AMD64
  -- x86 detected
  -- Configuring done (3.6s)
  -- Generating done (0.0s)
  -- Build files have been written to: C:/Users/madko/AppData/Local/Temp/pip-install-cdzw0iqp/llama-cpp-python_946467f6ea1e445db77966c7afb835a9/_skbuild/win-amd64-3.9/cmake-build
  [1/4] Building C object vendor\llama.cpp\CMakeFiles\ggml.dir\ggml.c.obj
  FAILED: vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.obj
  C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx86\x64\cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -IC:\Users\madko\AppData\Local\Temp\pip-install-cdzw0iqp\llama-cpp-python_946467f6ea1e445db77966c7afb835a9\vendor\llama.cpp\. /DWIN32 /D_WINDOWS /O2 /Ob2 /DNDEBUG -std:c11 -MD /arch:AVX2 /showIncludes /Fovendor\llama.cpp\CMakeFiles\ggml.dir\ggml.c.obj /Fdvendor\llama.cpp\CMakeFiles\ggml.dir\ /FS -c C:\Users\madko\AppData\Local\Temp\pip-install-cdzw0iqp\llama-cpp-python_946467f6ea1e445db77966c7afb835a9\vendor\llama.cpp\ggml.c
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\malloc.h(172): warning C5105: macro expansion producing 'defined' has undefined behavior   
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\time.h(588): warning C5105: macro expansion producing 'defined' has undefined behavior     
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_math.h(43): warning C5105: macro expansion producing 'defined' has undefined behavior
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_math.h(962): warning C5105: macro expansion producing 'defined' has undefined behavior
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_search.h(188): warning C5105: macro expansion producing 'defined' has undefined behavior
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdlib.h(78): warning C5105: macro expansion producing 'defined' has undefined behavior    
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdlib.h(1297): warning C5105: macro expansion producing 'defined' has undefined behavior  
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_memory.h(76): warning C5105: macro expansion producing 'defined' has undefined behavior
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_wstring.h(573): warning C5105: macro expansion producing 'defined' has undefined behavior
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\string.h(530): warning C5105: macro expansion producing 'defined' has undefined behavior   
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(377): warning C5105: macro expansion producing 'defined' has undefined behavior    
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(2435): warning C5105: macro expansion producing 'defined' has undefined behavior   
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\float.h(327): warning C5105: macro expansion producing 'defined' has undefined behavior    
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\ctype.h(223): warning C5105: macro expansion producing 'defined' has undefined behavior    
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winbase.h(9156): warning C5105: macro expansion producing 'defined' has undefined behavior   
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(487): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared\wtypes.h(745): note: in expansion of macro '_VARIANT_BOOL'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(487): error C2059: syntax error: '/'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(502): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared\wtypes.h(745): note: in expansion of macro '_VARIANT_BOOL'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(502): error C2059: syntax error: '/'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(530): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(531): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(533): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(534): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(665): error C2079: 'varDefaultValue' uses undefined struct 'tagVARIANT'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(950): error C2079: 'varValue' uses undefined struct 'tagVARIANT'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(319): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared\wtypes.h(745): note: in expansion of macro '_VARIANT_BOOL'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(319): error C2059: syntax error: '/'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(378): error C2371: 'pvarVal': redefinition; different basic types
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(510): note: see declaration of 'pvarVal'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(379): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(380): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(383): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(384): error C2059: syntax error: '}'
  [2/4] Building CXX object vendor\llama.cpp\CMakeFiles\llama.dir\llama.cpp.obj
  ninja: build stopped: subcommand failed.
  Traceback (most recent call last):
    File "C:\Users\madko\AppData\Local\Temp\pip-build-env-53gm1aa8\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 674, in setup
      cmkr.make(make_args, install_target=cmake_install_target, env=env)
    File "C:\Users\madko\AppData\Local\Temp\pip-build-env-53gm1aa8\overlay\Lib\site-packages\skbuild\cmaker.py", line 697, in make
      self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
    File "C:\Users\madko\AppData\Local\Temp\pip-build-env-53gm1aa8\overlay\Lib\site-packages\skbuild\cmaker.py", line 742, in make_impl
      raise SKBuildError(msg)
 
  An error occurred while building with CMake.
    Command:
      'C:\Users\madko\AppData\Local\Temp\pip-build-env-53gm1aa8\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' --build . --target install --config Release --
    Install target:
      install
    Source directory:
      C:\Users\madko\AppData\Local\Temp\pip-install-cdzw0iqp\llama-cpp-python_946467f6ea1e445db77966c7afb835a9
      C:\Users\madko\AppData\Local\Temp\pip-install-cdzw0iqp\llama-cpp-python_946467f6ea1e445db77966c7afb835a9\_skbuild\win-amd64-3.9\cmake-build
  Please check the install target is valid and see CMake's output for more information.
 
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
WARNING: You are using pip version 22.0.4; however, version 23.1.2 is available.
You should consider upgrading via the 'C:\Users\madko\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.
PS D:\GPT\langchain-ask-pdf-local> -m pip install --upgrade pip
-m : The term '-m' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1

  • -m pip install --upgrade pip
  • ~~
    • CategoryInfo : ObjectNotFound: (-m:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException
      PS D:\GPT\langchain-ask-pdf-local> pip install --upgrade pip
      Requirement already satisfied: pip in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\site-packages (22.0.4)
      Collecting pip
      Using cached pip-23.1.2-py3-none-any.whl (2.1 MB)
      Installing collected packages: pip
      WARNING: The scripts pip.exe, pip3.10.exe, pip3.9.exe and pip3.exe are installed in 'C:\Users\madko\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
      Successfully installed pip-23.1.2
      WARNING: You are using pip version 22.0.4; however, version 23.1.2 is available.
      You should consider upgrading via the 'C:\Users\madko\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.
      PS D:\GPT\langchain-ask-pdf-local> streamlit run .\app.py
      streamlit : The term 'streamlit' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
      path was included, verify that the path is correct and try again.
      At line:1 char:1
  • streamlit run .\app.py
    • CategoryInfo : ObjectNotFound: (streamlit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS D:\GPT\langchain-ask-pdf-local> pip install pyllamacpp
Collecting pyllamacpp
Downloading pyllamacpp-2.4.0-cp39-cp39-win_amd64.whl (279 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 279.6/279.6 kB 195.9 kB/s eta 0:00:00
Installing collected packages: pyllamacpp
PS D:\GPT\langchain-ask-pdf-local> pip install -r requirements.txt
Collecting langchain==0.0.161 (from -r requirements.txt (line 1))
Using cached langchain-0.0.161-py3-none-any.whl (758 kB)
Collecting PyPDF2==3.0.1 (from -r requirements.txt (line 2))
Using cached pypdf2-3.0.1-py3-none-any.whl (232 kB)
Collecting streamlit==1.22.0 (from -r requirements.txt (line 3))
Using cached streamlit-1.22.0-py2.py3-none-any.whl (8.9 MB)
Collecting qdrant-client==1.1.6 (from -r requirements.txt (line 4))
Using cached qdrant_client-1.1.6-py3-none-any.whl (126 kB)
Collecting sentence-transformers==2.2.2 (from -r requirements.txt (line 5))
Using cached sentence-transformers-2.2.2.tar.gz (85 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting llama-cpp-python==0.1.57 (from -r requirements.txt (line 6))
Using cached llama_cpp_python-0.1.57.tar.gz (1.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting PyYAML>=5.4.1 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached PyYAML-6.0-cp39-cp39-win_amd64.whl (151 kB)
Collecting SQLAlchemy<3,>=1.4 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached SQLAlchemy-2.0.15-cp39-cp39-win_amd64.whl (2.0 MB)
Collecting aiohttp<4.0.0,>=3.8.3 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached aiohttp-3.8.4-cp39-cp39-win_amd64.whl (323 kB)
Collecting async-timeout<5.0.0,>=4.0.0 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting dataclasses-json<0.6.0,>=0.5.7 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached dataclasses_json-0.5.7-py3-none-any.whl (25 kB)
Collecting numexpr<3.0.0,>=2.8.4 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached numexpr-2.8.4-cp39-cp39-win_amd64.whl (92 kB)
Collecting numpy<2,>=1 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached numpy-1.24.3-cp39-cp39-win_amd64.whl (14.9 MB)
Collecting openapi-schema-pydantic<2.0,>=1.2 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached openapi_schema_pydantic-1.2.4-py3-none-any.whl (90 kB)
Collecting pydantic<2,>=1 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached pydantic-1.10.8-cp39-cp39-win_amd64.whl (2.2 MB)
Collecting requests<3,>=2 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Collecting tenacity<9.0.0,>=8.1.0 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached tenacity-8.2.2-py3-none-any.whl (24 kB)
Collecting tqdm>=4.48.0 (from langchain==0.0.161->-r requirements.txt (line 1))
Using cached tqdm-4.65.0-py3-none-any.whl (77 kB)
Collecting typing_extensions>=3.10.0.0 (from PyPDF2==3.0.1->-r requirements.txt (line 2))
Using cached typing_extensions-4.6.3-py3-none-any.whl (31 kB)
Collecting altair<5,>=3.2.0 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached altair-4.2.2-py3-none-any.whl (813 kB)
Collecting blinker>=1.0.0 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached blinker-1.6.2-py3-none-any.whl (13 kB)
Collecting cachetools>=4.0 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached cachetools-5.3.1-py3-none-any.whl (9.3 kB)
Collecting click>=7.0 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting importlib-metadata>=1.4 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached importlib_metadata-6.6.0-py3-none-any.whl (22 kB)
Collecting packaging>=14.1 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached packaging-23.1-py3-none-any.whl (48 kB)
Collecting pandas<3,>=0.25 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached pandas-2.0.2-cp39-cp39-win_amd64.whl (10.7 MB)
Collecting pillow>=6.2.0 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached Pillow-9.5.0-cp39-cp39-win_amd64.whl (2.5 MB)
Collecting protobuf<4,>=3.12 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached protobuf-3.20.3-cp39-cp39-win_amd64.whl (904 kB)
Collecting pyarrow>=4.0 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached pyarrow-12.0.0-cp39-cp39-win_amd64.whl (21.5 MB)
Collecting pympler>=0.9 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached Pympler-1.0.1-py3-none-any.whl (164 kB)
Collecting python-dateutil (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting rich>=10.11.0 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached rich-13.4.1-py3-none-any.whl (239 kB)
Requirement already satisfied: toml in c:\users\madko\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from streamlit==1.22.0->-r requirements.txt (line 3)) (0.10.2)
Collecting tzlocal>=1.1 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached tzlocal-5.0.1-py3-none-any.whl (20 kB)
Collecting validators>=0.2 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached validators-0.20.0.tar.gz (30 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting gitpython!=3.1.19 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached GitPython-3.1.31-py3-none-any.whl (184 kB)
Collecting pydeck>=0.1.dev5 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached pydeck-0.8.1b0-py2.py3-none-any.whl (4.8 MB)
Collecting tornado>=6.0.3 (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached tornado-6.3.2-cp38-abi3-win_amd64.whl (428 kB)
Collecting watchdog (from streamlit==1.22.0->-r requirements.txt (line 3))
Using cached watchdog-3.0.0-py3-none-win_amd64.whl (82 kB)
Collecting grpcio>=1.41.0 (from qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached grpcio-1.54.2-cp39-cp39-win_amd64.whl (4.1 MB)
Collecting grpcio-tools>=1.41.0 (from qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached grpcio_tools-1.54.2-cp39-cp39-win_amd64.whl (1.7 MB)
Collecting httpx[http2]>=0.14.0 (from qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached httpx-0.24.1-py3-none-any.whl (75 kB)
Collecting urllib3<2.0.0,>=1.26.14 (from qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached urllib3-1.26.16-py2.py3-none-any.whl (143 kB)
Collecting transformers<5.0.0,>=4.6.0 (from sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached transformers-4.29.2-py3-none-any.whl (7.1 MB)
Collecting torch>=1.6.0 (from sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached torch-2.0.1-cp39-cp39-win_amd64.whl (172.4 MB)
Collecting torchvision (from sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached torchvision-0.15.2-cp39-cp39-win_amd64.whl (1.2 MB)
Collecting scikit-learn (from sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached scikit_learn-1.2.2-cp39-cp39-win_amd64.whl (8.4 MB)
Collecting scipy (from sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached scipy-1.10.1-cp39-cp39-win_amd64.whl (42.5 MB)
Collecting nltk (from sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached nltk-3.8.1-py3-none-any.whl (1.5 MB)
Collecting sentencepiece (from sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached sentencepiece-0.1.99-cp39-cp39-win_amd64.whl (977 kB)
Collecting huggingface-hub>=0.4.0 (from sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached huggingface_hub-0.15.1-py3-none-any.whl (236 kB)
Collecting attrs>=17.3.0 (from aiohttp<4.0.0,>=3.8.3->langchain==0.0.161->-r requirements.txt (line 1))
Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting charset-normalizer<4.0,>=2.0 (from aiohttp<4.0.0,>=3.8.3->langchain==0.0.161->-r requirements.txt (line 1))
Using cached charset_normalizer-3.1.0-cp39-cp39-win_amd64.whl (97 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp<4.0.0,>=3.8.3->langchain==0.0.161->-r requirements.txt (line 1))
Using cached multidict-6.0.4-cp39-cp39-win_amd64.whl (28 kB)
Collecting yarl<2.0,>=1.0 (from aiohttp<4.0.0,>=3.8.3->langchain==0.0.161->-r requirements.txt (line 1))
Using cached yarl-1.9.2-cp39-cp39-win_amd64.whl (61 kB)
Collecting frozenlist>=1.1.1 (from aiohttp<4.0.0,>=3.8.3->langchain==0.0.161->-r requirements.txt (line 1))
Using cached frozenlist-1.3.3-cp39-cp39-win_amd64.whl (34 kB)
Collecting aiosignal>=1.1.2 (from aiohttp<4.0.0,>=3.8.3->langchain==0.0.161->-r requirements.txt (line 1))
Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting entrypoints (from altair<5,>=3.2.0->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached entrypoints-0.4-py3-none-any.whl (5.3 kB)
Collecting jinja2 (from altair<5,>=3.2.0->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting jsonschema>=3.0 (from altair<5,>=3.2.0->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached jsonschema-4.17.3-py3-none-any.whl (90 kB)
Collecting toolz (from altair<5,>=3.2.0->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached toolz-0.12.0-py3-none-any.whl (55 kB)
Collecting colorama (from click>=7.0->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting marshmallow<4.0.0,>=3.3.0 (from dataclasses-json<0.6.0,>=0.5.7->langchain==0.0.161->-r requirements.txt (line 1))
Using cached marshmallow-3.19.0-py3-none-any.whl (49 kB)
Collecting marshmallow-enum<2.0.0,>=1.5.1 (from dataclasses-json<0.6.0,>=0.5.7->langchain==0.0.161->-r requirements.txt (line 1))
Using cached marshmallow_enum-1.5.1-py2.py3-none-any.whl (4.2 kB)
Collecting typing-inspect>=0.4.0 (from dataclasses-json<0.6.0,>=0.5.7->langchain==0.0.161->-r requirements.txt (line 1))
Using cached typing_inspect-0.9.0-py3-none-any.whl (8.8 kB)
Collecting gitdb<5,>=4.0.1 (from gitpython!=3.1.19->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)
INFO: pip is looking at multiple versions of grpcio-tools to determine which version is compatible with other requirements. This could take a while.
Collecting grpcio-tools>=1.41.0 (from qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached grpcio_tools-1.54.0-cp39-cp39-win_amd64.whl (1.7 MB)
Using cached grpcio_tools-1.53.1-cp39-cp39-win_amd64.whl (1.7 MB)
Using cached grpcio_tools-1.53.0-cp39-cp39-win_amd64.whl (1.7 MB)
Using cached grpcio_tools-1.51.3-cp39-cp39-win_amd64.whl (1.8 MB)
Using cached grpcio_tools-1.51.1-cp39-cp39-win_amd64.whl (1.8 MB)
Using cached grpcio_tools-1.50.0-cp39-cp39-win_amd64.whl (1.8 MB)
Using cached grpcio_tools-1.49.1-cp39-cp39-win_amd64.whl (1.8 MB)
INFO: pip is looking at multiple versions of grpcio-tools to determine which version is compatible with other requirements. This could take a while.
Using cached grpcio_tools-1.48.2-cp39-cp39-win_amd64.whl (1.9 MB)
Requirement already satisfied: setuptools in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\site-packages (from grpcio-tools>=1.41.0->qdrant-client==1.1.6->-r requirements.txt (line 4)) (58.1.0)
Collecting certifi (from httpx[http2]>=0.14.0->qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached certifi-2023.5.7-py3-none-any.whl (156 kB)
Collecting httpcore<0.18.0,>=0.15.0 (from httpx[http2]>=0.14.0->qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached httpcore-0.17.2-py3-none-any.whl (72 kB)
Collecting idna (from httpx[http2]>=0.14.0->qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting sniffio (from httpx[http2]>=0.14.0->qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting h2<5,>=3 (from httpx[http2]>=0.14.0->qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached h2-4.1.0-py3-none-any.whl (57 kB)
Collecting filelock (from huggingface-hub>=0.4.0->sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached filelock-3.12.0-py3-none-any.whl (10 kB)
Collecting fsspec (from huggingface-hub>=0.4.0->sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached fsspec-2023.5.0-py3-none-any.whl (160 kB)
Collecting zipp>=0.5 (from importlib-metadata>=1.4->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached zipp-3.15.0-py3-none-any.whl (6.8 kB)
Collecting pytz>=2020.1 (from pandas<3,>=0.25->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached pytz-2023.3-py2.py3-none-any.whl (502 kB)
Collecting tzdata>=2022.1 (from pandas<3,>=0.25->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached tzdata-2023.3-py2.py3-none-any.whl (341 kB)
Collecting six>=1.5 (from python-dateutil->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting markdown-it-py<3.0.0,>=2.2.0 (from rich>=10.11.0->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached markdown_it_py-2.2.0-py3-none-any.whl (84 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.11.0->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached Pygments-2.15.1-py3-none-any.whl (1.1 MB)
Collecting greenlet!=0.4.17 (from SQLAlchemy<3,>=1.4->langchain==0.0.161->-r requirements.txt (line 1))
Using cached greenlet-2.0.2-cp39-cp39-win_amd64.whl (192 kB)
Collecting sympy (from torch>=1.6.0->sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached sympy-1.12-py3-none-any.whl (5.7 MB)
Collecting networkx (from torch>=1.6.0->sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached networkx-3.1-py3-none-any.whl (2.1 MB)
Collecting regex!=2019.12.17 (from transformers<5.0.0,>=4.6.0->sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached regex-2023.6.3-cp39-cp39-win_amd64.whl (268 kB)
Collecting tokenizers!=0.11.3,<0.14,>=0.11.1 (from transformers<5.0.0,>=4.6.0->sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached tokenizers-0.13.3-cp39-cp39-win_amd64.whl (3.5 MB)
Collecting decorator>=3.4.0 (from validators>=0.2->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting joblib (from nltk->sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached joblib-1.2.0-py3-none-any.whl (297 kB)
Collecting threadpoolctl>=2.0.0 (from scikit-learn->sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython!=3.1.19->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Collecting hyperframe<7,>=6.0 (from h2<5,>=3->httpx[http2]>=0.14.0->qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached hyperframe-6.0.1-py3-none-any.whl (12 kB)
Collecting hpack<5,>=4.0 (from h2<5,>=3->httpx[http2]>=0.14.0->qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached hpack-4.0.0-py3-none-any.whl (32 kB)
Collecting h11<0.15,>=0.13 (from httpcore<0.18.0,>=0.15.0->httpx[http2]>=0.14.0->qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Collecting anyio<5.0,>=3.0 (from httpcore<0.18.0,>=0.15.0->httpx[http2]>=0.14.0->qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached anyio-3.7.0-py3-none-any.whl (80 kB)
Collecting MarkupSafe>=2.0 (from jinja2->altair<5,>=3.2.0->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached MarkupSafe-2.1.3-cp39-cp39-win_amd64.whl (17 kB)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 (from jsonschema>=3.0->altair<5,>=3.2.0->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached pyrsistent-0.19.3-cp39-cp39-win_amd64.whl (62 kB)
Collecting mdurl~=0.1 (from markdown-it-py<3.0.0,>=2.2.0->rich>=10.11.0->streamlit==1.22.0->-r requirements.txt (line 3))
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting mypy-extensions>=0.3.0 (from typing-inspect>=0.4.0->dataclasses-json<0.6.0,>=0.5.7->langchain==0.0.161->-r requirements.txt (line 1))
Using cached mypy_extensions-1.0.0-py3-none-any.whl (4.7 kB)
Collecting mpmath>=0.19 (from sympy->torch>=1.6.0->sentence-transformers==2.2.2->-r requirements.txt (line 5))
Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Collecting exceptiongroup (from anyio<5.0,>=3.0->httpcore<0.18.0,>=0.15.0->httpx[http2]>=0.14.0->qdrant-client==1.1.6->-r requirements.txt (line 4))
Using cached exceptiongroup-1.1.1-py3-none-any.whl (14 kB)
Building wheels for collected packages: sentence-transformers, llama-cpp-python, validators
Building wheel for sentence-transformers (pyproject.toml) ... done
Created wheel for sentence-transformers: filename=sentence_transformers-2.2.2-py3-none-any.whl size=125961 sha256=80848aaf9fb04df5da1cffc98180f7c9a8489798ae45dd1206dafff565d55e46
Stored in directory: c:\users\madko\appdata\local\pip\cache\wheels\71\67\06\162a3760c40d74dd40bc855d527008d26341c2b0ecf3e8e11f
Building wheel for llama-cpp-python (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [224 lines of output]

  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- The C compiler identification is unknown
  CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
    No CMAKE_C_COMPILER could be found.
 
    Tell CMake where to find the compiler by setting either the environment
    variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
    the compiler, or to the compiler name if it is in the PATH.
 
 
  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - failure
  --------------------------------------------------------------------------------
 
 
 
  --------------------------------------------------------------------------------
  -- Trying 'Visual Studio 17 2022 x64 v143' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator
 
      Visual Studio 17 2022
 
    could not find any instance of Visual Studio.
 
 
 
  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Visual Studio 17 2022 x64 v143' generator - failure
  --------------------------------------------------------------------------------
 
 
 
  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- The C compiler identification is MSVC 19.29.30140.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped   
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- The CXX compiler identification is MSVC 19.29.30140.0
  CMake Warning (dev) at C:/Users/madko/AppData/Local/Temp/pip-build-env-g7w9e3sh/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:168 (if):
    Policy CMP0054 is not set: Only interpret if() arguments as variables or
    keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
    details.  Use the cmake_policy command to set the policy and suppress this
    warning.
 
    Quoted variables like "MSVC" will no longer be dereferenced when the policy
    is set to NEW.  Since the policy is not set the OLD behavior will be used.
  Call Stack (most recent call first):
    CMakeLists.txt:4 (ENABLE_LANGUAGE)
  This warning is for project developers.  Use -Wno-dev to suppress it.
 
  CMake Warning (dev) at C:/Users/madko/AppData/Local/Temp/pip-build-env-g7w9e3sh/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:189 (elseif):
    Policy CMP0054 is not set: Only interpret if() arguments as variables or
    keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
    details.  Use the cmake_policy command to set the policy and suppress this
    warning.
 
    Quoted variables like "MSVC" will no longer be dereferenced when the policy
    is set to NEW.  Since the policy is not set the OLD behavior will be used.
  Call Stack (most recent call first):
    CMakeLists.txt:4 (ENABLE_LANGUAGE)
  This warning is for project developers.  Use -Wno-dev to suppress it.
 
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped 
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring done (3.2s)
  -- Generating done (0.0s)
  -- Build files have been written to: C:/Users/madko/AppData/Local/Temp/pip-install-alhduk1e/llama-cpp-python_7f38abacc39c41d8afc0c81a4fd6cd8c/_cmake_test_compile/build
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator - success
  --------------------------------------------------------------------------------
 
  Configuring Project
    Working directory:
      C:\Users\madko\AppData\Local\Temp\pip-install-alhduk1e\llama-cpp-python_7f38abacc39c41d8afc0c81a4fd6cd8c\_skbuild\win-amd64-3.9\cmake-build
    Command:
      'C:\Users\madko\AppData\Local\Temp\pip-build-env-g7w9e3sh\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\Users\madko\AppData\Local\Temp\pip-install-alhduk1e\llama-cpp-python_7f38abacc39c41d8afc0c81a4fd6cd8c' -G Ninja '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\madko\AppData\Local\Temp\pip-build-env-g7w9e3sh\overlay\Lib\site-packages\ninja\data\bin\ninja' -D_SKBUILD_FORCE_MSVC=1920 --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\madko\AppData\Local\Temp\pip-install-alhduk1e\llama-cpp-python_7f38abacc39c41d8afc0c81a4fd6cd8c\_skbuild\win-amd64-3.9\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.9.13 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\madko\AppData\Local\Temp\pip-build-env-g7w9e3sh\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\madko\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\Include' '-DPYTHON_LIBRARY:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\libs\python39.lib' '-DPython_EXECUTABLE:PATH=C:\Users\madko\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' '-DPython_ROOT_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\Include' '-DPython_LIBRARY:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\libs\python39.lib' '-DPython3_EXECUTABLE:PATH=C:\Users\madko\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\Include' '-DPython3_LIBRARY:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\libs\python39.lib' '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\madko\AppData\Local\Temp\pip-build-env-g7w9e3sh\overlay\Lib\site-packages\ninja\data\bin\ninja' -DCMAKE_BUILD_TYPE:STRING=Release
 
  Not searching for unused variables given on the command line.
  -- The C compiler identification is MSVC 19.29.30140.0
  -- The CXX compiler identification is MSVC 19.29.30140.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped   
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped 
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.38.1.windows.1")
  fatal: not a git repository (or any of the parent directories): .git
  fatal: not a git repository (or any of the parent directories): .git
  CMake Warning at vendor/llama.cpp/CMakeLists.txt:109 (message):
    Git repository not found; to enable automatic generation of build info,
    make sure Git is installed and the project is a Git repository.
 
 
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
  -- Looking for pthread_create in pthreads
  -- Looking for pthread_create in pthreads - not found
  -- Looking for pthread_create in pthread
  -- Looking for pthread_create in pthread - not found
  -- Found Threads: TRUE
  -- CMAKE_SYSTEM_PROCESSOR: AMD64
  -- x86 detected
  -- Configuring done (2.9s)
  -- Generating done (0.0s)
  -- Build files have been written to: C:/Users/madko/AppData/Local/Temp/pip-install-alhduk1e/llama-cpp-python_7f38abacc39c41d8afc0c81a4fd6cd8c/_skbuild/win-amd64-3.9/cmake-build
  [1/4] Building C object vendor\llama.cpp\CMakeFiles\ggml.dir\ggml.c.obj
  FAILED: vendor/llama.cpp/CMakeFiles/ggml.dir/ggml.c.obj
  C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx86\x64\cl.exe  /nologo -D_CRT_SECURE_NO_WARNINGS -IC:\Users\madko\AppData\Local\Temp\pip-install-alhduk1e\llama-cpp-python_7f38abacc39c41d8afc0c81a4fd6cd8c\vendor\llama.cpp\. /DWIN32 /D_WINDOWS /O2 /Ob2 /DNDEBUG -std:c11 -MD /arch:AVX2 /showIncludes /Fovendor\llama.cpp\CMakeFiles\ggml.dir\ggml.c.obj /Fdvendor\llama.cpp\CMakeFiles\ggml.dir\ /FS -c C:\Users\madko\AppData\Local\Temp\pip-install-alhduk1e\llama-cpp-python_7f38abacc39c41d8afc0c81a4fd6cd8c\vendor\llama.cpp\ggml.c
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\malloc.h(172): warning C5105: macro expansion producing 'defined' has undefined behavior   
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\time.h(588): warning C5105: macro expansion producing 'defined' has undefined behavior     
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_math.h(43): warning C5105: macro expansion producing 'defined' has undefined behavior
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_math.h(962): warning C5105: macro expansion producing 'defined' has undefined behavior
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_search.h(188): warning C5105: macro expansion producing 'defined' has undefined behavior
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdlib.h(78): warning C5105: macro expansion producing 'defined' has undefined behavior    
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdlib.h(1297): warning C5105: macro expansion producing 'defined' has undefined behavior  
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_memory.h(76): warning C5105: macro expansion producing 'defined' has undefined behavior
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_wstring.h(573): warning C5105: macro expansion producing 'defined' has undefined behavior
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\string.h(530): warning C5105: macro expansion producing 'defined' has undefined behavior   
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(377): warning C5105: macro expansion producing 'defined' has undefined behavior    
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\stdio.h(2435): warning C5105: macro expansion producing 'defined' has undefined behavior   
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\float.h(327): warning C5105: macro expansion producing 'defined' has undefined behavior    
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\ctype.h(223): warning C5105: macro expansion producing 'defined' has undefined behavior    
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\winbase.h(9156): warning C5105: macro expansion producing 'defined' has undefined behavior   
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(487): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared\wtypes.h(745): note: in expansion of macro '_VARIANT_BOOL'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(487): error C2059: syntax error: '/'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(502): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared\wtypes.h(745): note: in expansion of macro '_VARIANT_BOOL'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(502): error C2059: syntax error: '/'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(530): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(531): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(533): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(534): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(665): error C2079: 'varDefaultValue' uses undefined struct 'tagVARIANT'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(950): error C2079: 'varValue' uses undefined struct 'tagVARIANT'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(319): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared\wtypes.h(745): note: in expansion of macro '_VARIANT_BOOL'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(319): error C2059: syntax error: '/'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(378): error C2371: 'pvarVal': redefinition; different basic types
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\oaidl.h(510): note: see declaration of 'pvarVal'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(379): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(380): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(383): error C2059: syntax error: '}'
  C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\propidlbase.h(384): error C2059: syntax error: '}'
  [2/4] Building CXX object vendor\llama.cpp\CMakeFiles\llama.dir\llama.cpp.obj
  ninja: build stopped: subcommand failed.
  Traceback (most recent call last):
    File "C:\Users\madko\AppData\Local\Temp\pip-build-env-g7w9e3sh\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 674, in setup
      cmkr.make(make_args, install_target=cmake_install_target, env=env)
    File "C:\Users\madko\AppData\Local\Temp\pip-build-env-g7w9e3sh\overlay\Lib\site-packages\skbuild\cmaker.py", line 697, in make
      self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
    File "C:\Users\madko\AppData\Local\Temp\pip-build-env-g7w9e3sh\overlay\Lib\site-packages\skbuild\cmaker.py", line 742, in make_impl
      raise SKBuildError(msg)
 
  An error occurred while building with CMake.
    Command:
      'C:\Users\madko\AppData\Local\Temp\pip-build-env-g7w9e3sh\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' --build . --target install --config Release --
    Install target:
      install
    Source directory:
      C:\Users\madko\AppData\Local\Temp\pip-install-alhduk1e\llama-cpp-python_7f38abacc39c41d8afc0c81a4fd6cd8c
    Working directory:
      C:\Users\madko\AppData\Local\Temp\pip-install-alhduk1e\llama-cpp-python_7f38abacc39c41d8afc0c81a4fd6cd8c\_skbuild\win-amd64-3.9\cmake-build
  Please check the install target is valid and see CMake's output for more information.
 
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for llama-cpp-python
Building wheel for validators (pyproject.toml) ... done
Created wheel for validators: filename=validators-0.20.0-py3-none-any.whl size=19590 sha256=2b847a40bcadadf4633ac260cb5517578c2b62afd36057f3ca26f36e94eaf83c
Stored in directory: c:\users\madko\appdata\local\pip\cache\wheels\2d\f0\a8\1094fca7a7e5d0d12ff56e0c64675d72aa5cc81a5fc200e849
Successfully built sentence-transformers validators
Failed to build llama-cpp-python
ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects

@wafflecomposite
Copy link
Owner

Honestly I have no idea at this point. llama-cpp-python keeps being randomly problematic for people.

I'll try to clean install it somewhere on this week. Probably gonna update the requirements and change the LLM model to something new too, if this thing still works.

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

No branches or pull requests

2 participants