langflow-ai / langflow

⛓️ Langflow is a dynamic graph where each node is an executable unit. Its modular and interactive design fosters rapid experimentation and prototyping, pushing hard on the limits of creativity.
http://www.langflow.org
MIT License
17.87k stars 2.68k forks source link

CMAKE, PyArrow bug, unable to build wheel for PyArrow when installing langflow #1782

Closed richpianist closed 2 weeks ago

richpianist commented 3 weeks ago

Describe the bug Unable to install langflow due to CMAKE error (states cannot find any instance of visual studio) and unable to build pyarrow wheel. I have everything possible downloaded for the Desktop development with C++ (all MSBuild Tools, Desktop development with C++, individual components including windows 11/10 SDKs and MSVC v141 - VS 2017 C++ build tool).

cmake version 3.29.2 Python 3.12.2 PyArrow 16.0.0

Browser and Version -chrome -Version 124.0.6367.63 (Official Build) (64-bit)

To Reproduce When installing from either of these:

python -m pip install langflow --pre --force-reinstall python -m pip install langflow -U

I get the following error:

  CMake Error at CMakeLists.txt:22 (project):
    Generator
      Visual Studio 15 2017 Win64
    could not find any instance of Visual Studio.
  -- Configuring incomplete, errors occurred!
  error: command 'C:\\Program Files\\CMake\\bin\\cmake.exe' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pyarrow

richpianist commented 2 weeks ago

Was using python 3.12. switched to 3.10.9 and now works.