UFO icon indicating copy to clipboard operation
UFO copied to clipboard

Getting requirements to build wheel ... error

Open jurgen178 opened this issue 11 months ago • 6 comments

Hi, when cloning and running the install cmd 'pip install -r requirements.txt', I get an error to build 'wheel'. Pulled the latest on main and have Python 3.13.1 installed. Any idea what I'm missing? Thanks! The full output for context is here:

C:\Projects\UFO>pip install -r requirements.txt Collecting art==6.1 (from -r requirements.txt (line 1)) Using cached art-6.1-py3-none-any.whl.metadata (69 kB) Collecting colorama==0.4.6 (from -r requirements.txt (line 2)) Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB) Collecting langchain==0.1.11 (from -r requirements.txt (line 3)) Using cached langchain-0.1.11-py3-none-any.whl.metadata (13 kB) Collecting langchain_community==0.0.27 (from -r requirements.txt (line 4)) Using cached langchain_community-0.0.27-py3-none-any.whl.metadata (8.2 kB) Collecting msal==1.25.0 (from -r requirements.txt (line 5)) Using cached msal-1.25.0-py2.py3-none-any.whl.metadata (11 kB) Collecting openai==1.59.7 (from -r requirements.txt (line 6)) Downloading openai-1.59.7-py3-none-any.whl.metadata (27 kB) Collecting Pillow==10.3.0 (from -r requirements.txt (line 7)) Using cached pillow-10.3.0.tar.gz (46.6 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. ¦ exit code: 1 ?-> [21 lines of output] Traceback (most recent call last): File "C:\Users\test\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() ~~~~^^ File "C:\Users\test\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\test\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "C:\Users\test\AppData\Local\Temp\pip-build-env-38j_ciy5\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\test\AppData\Local\Temp\pip-build-env-38j_ciy5\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires self.run_setup() ~~~~~~~~~~~~~~^^ File "C:\Users\test\AppData\Local\Temp\pip-build-env-38j_ciy5\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup exec(code, locals()) ~~~~^^^^^^^^^^^^^^^^ File "", line 33, in File "", line 27, in get_version KeyError: 'version' [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.

jurgen178 avatar Jan 21 '25 21:01 jurgen178

Ran into this issue as well...

godofecht avatar Jan 25 '25 19:01 godofecht

I have the same problem

SpiersZ avatar Feb 02 '25 10:02 SpiersZ

@jurgen178 Hi, do you have solve this problem? This issue arises from using an incompatible Python version. The Pillow package supports specific Python versions, which are detailed in the documentation: https://pillow.readthedocs.io/en/stable/installation/python-support.html . Please You should change to a compatible Python version.

zhuyanxi avatar Feb 14 '25 08:02 zhuyanxi

I was able to solve this problem and can provide access to a custom repository. Please email abhishek.shivakumar@gmail with a relevant subject for more info.

godofecht avatar Feb 14 '25 09:02 godofecht

@zhuyanxi , as I wrote in my initial comment, I used the latest released Python 3.13.1 when I ran it for the first time. Thanks for providing the compatibility table, which suggests using 3.12 Installation instruction called for Python >= 3.10

🛠️ Step 1: Installation UFO requires Python >= 3.10 running on Windows OS >= 10.

jurgen178 avatar Feb 14 '25 18:02 jurgen178

I'm going to add that on my setup it works solely with python 3.10 (pandas won't build with 3.12).

C-ake avatar Mar 29 '25 20:03 C-ake