executorch icon indicating copy to clipboard operation
executorch copied to clipboard

Ensure python version is compatible before building wheels

Open Ciao-Wen-Chen opened this issue 9 months ago • 3 comments

Hi I got the following error message after running instruction from page

./install_requirements.sh --pybind

build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 549, in TypeError: 'type' object is not subscriptable Preparing wheel metadata ... error

image

Ciao-Wen-Chen avatar May 10 '24 09:05 Ciao-Wen-Chen

@Ciao-Wen-Chen Looks like you're using python 3.8

ExecuTorch runs on python 3.10 and above.

@dbort - once actionable thing is to update our setup page (https://pytorch.org/executorch/main/getting-started-setup.html) to include supported python versions more upfront on the top as opposed to part of the conda creation step.

mergennachin avatar May 13 '24 22:05 mergennachin

Updating the docs makes sense; I thought we already mentioned it, but we don't.

We should also update install_requirements.sh and maybe setup.py to explicitly check for a compatible python version.

dbort avatar May 13 '24 23:05 dbort

yeah, I pointed to the wrong Python version. Get the build successfully, thank you for the reply!

Ciao-Wen-Chen avatar May 15 '24 17:05 Ciao-Wen-Chen

#4131 will explicitly check for the right python version when running install_requirements.sh or building the wheel, so it should be more obvious when the version isn't supported.

dbort avatar Jul 03 '24 21:07 dbort

Merged in https://github.com/pytorch/executorch/commit/f32d707fd89ce64ffbaff6d9c216ac7d15c829e6

dbort avatar Jul 03 '24 23:07 dbort