'Getting requirements to build wheel did not run successfully.' during deployment

Got this error during deployment . " ```
Installing build dependencies: started


Installing build dependencies: finished with status ‘done’


Getting requirements to build wheel: started


Getting requirements to build wheel: finished with status ‘error’


error: subprocess-exited-with-error



× Getting requirements to build wheel did not run successfully.


│ exit code: 1


╰─> [23 lines of output]


  <string>:33: DeprecationWarning: Use shutil.which instead of find_executable

  <string>:34: DeprecationWarning: Use shutil.which instead of find_executable

  fatal: not a git repository (or any of the parent directories): .git

  Traceback (most recent call last):

    File "/home/adminuser/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>

      main()

    File "/home/adminuser/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main

      json_out['return_val'] = hook(**hook_input['kwargs'])

                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/home/adminuser/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel

      return hook(config_settings)

             ^^^^^^^^^^^^^^^^^^^^^

    File "/tmp/pip-build-env-l4exo4mv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel

      return self._get_build_requires(config_settings, requirements=[])

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/tmp/pip-build-env-l4exo4mv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires

      self.run_setup()

    File "/tmp/pip-build-env-l4exo4mv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 522, in run_setup

      super().run_setup(setup_script=setup_script)

    File "/tmp/pip-build-env-l4exo4mv/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup

      exec(code, locals())

    File "<string>", line 85, in <module>

  AssertionError: Could not find cmake executable!

  [end of output]


note: This error originates from a subprocess, and is likely not a problem with pip.


error: subprocess-exited-with-error



× Getting requirements to build wheel did not run successfully.


│ exit code: 1


╰─> See above for output.



note: This error originates from a subprocess, and is likely not a problem with pip.



[notice] A new release of pip is available: 24.0 → 24.3.1


[notice] To update, run: pip install --upgrade pip


Checking if Streamlit is installed


Found Streamlit version 1.41.1 in the environment

my requirements.txt file

aiohappyeyeballs==2.4.4
aiohttp==3.11.11
aiosignal==1.3.2
altair==5.5.0
annotated-types==0.7.0
anyio==4.8.0
async-timeout==4.0.3
attrs==24.3.0
bcrypt==4.2.1
blinker==1.9.0
cachetools==5.5.0
certifi==2024.12.14
cffi==1.17.1
charset-normalizer==3.4.1
click==8.1.8
colorama==0.4.6
coloredlogs==15.0.1
cryptography==44.0.0
dataclasses-json==0.6.7
dill==0.3.9
distro==1.9.0
exceptiongroup==1.2.2
fasteners==0.19
filelock==3.16.1
flatbuffers==24.12.23
frozenlist==1.5.0
fsspec==2024.12.0
gitdb==4.0.12
GitPython==3.1.44
greenlet==3.1.1
groq==0.15.0
groqcloud==0.4.0
groqflow==4.3.1
h11==0.14.0
httpcore==1.0.7
httpx==0.28.1
httpx-sse==0.4.0
huggingface-hub==0.27.1
humanfriendly==10.0
hummingbird-ml==0.4.4
idna==3.10
iniconfig==2.0.0
invoke==2.2.0
Jinja2==3.1.5
jiter==0.8.2
joblib==1.4.2
jsonpatch==1.33
jsonpointer==3.0.0
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
langchain==0.3.14
langchain-community==0.3.14
langchain-core==0.3.29
langchain-groq==0.2.3
langchain-text-splitters==0.3.4
langsmith==0.2.10
lightgbm==3.3.5
markdown-it-py==3.0.0
MarkupSafe==3.0.2
marshmallow==3.23.3
mdurl==0.1.2
mlagility==3.3.1
mpmath==1.3.0
multidict==6.1.0
mypy-extensions==1.0.0
narwhals==1.20.1
networkx==3.4.2
numpy==1.26.4
onnx==1.14.0
onnxconverter-common==1.13.0
onnxmltools==1.11.2
onnxruntime==1.15.1
openai==1.59.3
orjson==3.10.13
packaging==24.2
pandas==2.2.3
paramiko==2.11.0
pillow==11.1.0
pluggy==1.5.0
propcache==0.2.1
protobuf==3.20.3
psutil==6.1.1
pyarrow==18.1.0
pycparser==2.22
pydantic==2.10.4
pydantic-settings==2.7.1
pydantic_core==2.27.2
pydeck==0.9.1
Pygments==2.19.0
PyNaCl==1.5.0
pyreadline3==3.5.4
pytest==8.3.4
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
pytz==2024.2
PyYAML==6.0.2
referencing==0.35.1
regex==2024.11.6
requests==2.32.3
requests-toolbelt==1.0.0
rich==13.9.4
rpds-py==0.22.3
safetensors==0.5.2
scikit-learn==1.1.1
scipy==1.15.1
six==1.17.0
skl2onnx==1.18.0
smmap==5.0.2
sniffio==1.3.1
SQLAlchemy==2.0.36
streamlit==1.41.1
sympy==1.13.1
tenacity==9.0.0
threadpoolctl==3.5.0
tokenizers==0.21.0
toml==0.10.2
tomli==2.2.1
torch==2.1.0
torchvision==0.16.0
tornado==6.4.2
tqdm==4.67.1
transformers==4.48.0
typeguard==4.0.0
typing-inspect==0.9.0
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.3.0
watchdog==6.0.0
xgboost==1.6.1
yarl==1.18.3

Trying to install those requirements gave me different errors, the first one related to onnxruntime==1.15.1 being incompatible with python 3.12. That should be fixed by using an older python or a recent onnxruntime. But your errors are different, so I don’t know…