yangalan123 / Amortized-Interpretability

Codebase for the ACL 2023 paper "Efficient Shapley Values Estimation by Amortization for Text Classification"
MIT License
10 stars 1 forks source link

Requirements.txt not working on MacOS M2 chip #3

Closed sideDesert closed 5 months ago

sideDesert commented 5 months ago

I am trying to install the dependencies as mentioned in the requirements.txt file. I am using a condo env with python 3.7, on my Macbook Air running the M2 chip. I run into this issue where it is implied that I should use a higher version of python to install the dependencies.

Python version used - 3.7.16 pip_install_py37.log

ERROR: Ignored the following versions that require a different python version: 0.1.0 Requires-Python >=3.8; 0.1.1 Requires-Python >=3.8; 0.11.0 Requires-Python >= 3.8; 0.12.0 Requires-Python >=3.8; 0.12.0rc1 Requires-Python >=3.8; 0.12.1 Requires-Python >=3.8; 0.13.0 Requires-Python >=3.8; 0.13.1 Requires-Python >=3.8; 0.17.0 Requires-Python >=3.8.0; 0.17.0rc0 Requires-Python >=3.8.0; 0.17.1 Requires-Python >=3.8.0; 0.17.2 Requires-Python >=3.8.0; 0.17.3 Requires-Python >=3.8.0; 0.18.0 Requires-Python >=3.8.0; 0.18.0rc0 Requires-Python >=3.8.0; 0.19.0 Requires-Python >=3.8.0; 0.19.0rc0 Requires-Python >=3.8.0; 0.19.1 Requires-Python >=3.8.0; 0.19.2 Requires-Python >=3.8.0; 0.19.3 Requires-Python >=3.8.0; 0.19.4 Requires-Python >=3.8.0; 0.20.0 Requires-Python >=3.8.0; 0.20.0rc0 Requires-Python >=3.8.0; 0.20.0rc1 Requires-Python >=3.8.0; 0.20.1 Requires-Python >=3.8.0; 0.20.2 Requires-Python >=3.8.0; 0.20.3 Requires-Python >=3.8.0; 0.21.0 Requires-Python >=3.8.0; 0.21.0rc0 Requires-Python >=3.8.0; 0.21.1 Requires-Python >=3.8.0; 0.21.2 Requires-Python >=3.8.0; 0.21.3 Requires-Python >=3.8.0; 0.21.4 Requires-Python >=3.8.0; 0.22.0 Requires-Python >=3.8.0; 0.22.0rc0 Requires-Python >=3.8.0; 0.22.0rc1 Requires-Python >=3.8.0; 0.22.1 Requires-Python >=3.8.0; 0.22.2 Requires-Python >=3.8.0; 0.23.0 Requires-Python >=3.8.0; 0.23.0rc0 Requires-Python >=3.8.0; 0.23.0rc1 Requires-Python >=3.8.0; 0.24.0 Requires-Python >=3.8; 0.24.1 Requires-Python >=3.8; 0.25.0 Requires-Python >=3.8; 0.3.10 Requires-Python >=3.8; 0.3.8 Requires-Python >=3.8; 0.4.0 Requires-Python >=3.8; 0.6.0 Requires-Python >=3.8; 0.70.16 Requires-Python >=3.8; 0.8.0 Requires-Python >=3.8; 0.8.1 Requires-Python >=3.8; 1.1.0 Requires-Python >=3.8; 1.1.1 Requires-Python >=3.8; 1.1.2 Requires-Python >=3.8; 1.1.3 Requires-Python >=3.8; 1.10.0 Requires-Python <3.12,>=3.8; 1.10.0rc1 Requires-Python <3.12,>=3.8; 1.10.0rc2 Requires-Python <3.12,>=3.8; 1.10.1 Requires-Python <3.12,>=3.8; 1.11.0 Requires-Python <3.13,>=3.9; 1.11.0rc1 Requires-Python <3.13,>=3.9; 1.11.0rc2 Requires-Python <3.13,>=3.9; 1.11.1 Requires-Python <3.13,>=3.9; 1.11.2 Requires-Python <3.13,>=3.9; 1.11.3 Requires-Python <3.13,>=3.9; 1.11.4 Requires-Python >=3.9; 1.12.0 Requires-Python >=3.9; 1.12.0rc1 Requires-Python >=3.9; 1.12.0rc2 Requires-Python >=3.9; 1.13.0 Requires-Python >=3.9; 1.13.0rc1 Requires-Python >=3.9; 1.2.0 Requires-Python >=3.8; 1.2.0rc1 Requires-Python >=3.8; 1.2.1 Requires-Python >=3.8; 1.2.2 Requires-Python >=3.8; 1.22.0 Requires-Python >=3.8; 1.22.1 Requires-Python >=3.8; 1.22.2 Requires-Python >=3.8; 1.22.3 Requires-Python >=3.8; 1.22.4 Requires-Python >=3.8; 1.23.0 Requires-Python >=3.8; 1.23.0rc1 Requires-Python >=3.8; 1.23.0rc2 Requires-Python >=3.8; 1.23.0rc3 Requires-Python >=3.8; 1.23.1 Requires-Python >=3.8; 1.23.2 Requires-Python >=3.8; 1.23.3 Requires-Python >=3.8; 1.23.4 Requires-Python >=3.8; 1.23.5 Requires-Python >=3.8; 1.24.0 Requires-Python >=3.8; 1.24.0rc1 Requires-Python >=3.8; 1.24.0rc2 Requires-Python >=3.8; 1.24.1 Requires-Python >=3.8; 1.24.2 Requires-Python >=3.8; 1.24.3 Requires-Python >=3.8; 1.24.4 Requires-Python >=3.8; 1.25.0 Requires-Python >=3.9; 1.25.0rc1 Requires-Python >=3.9; 1.25.1 Requires-Python >=3.9; 1.25.2 Requires-Python >=3.9; 1.26.0 Requires-Python <3.13,>=3.9; 1.26.0b1 Requires-Python <3.13,>=3.9; 1.26.0rc1 Requires-Python <3.13,>=3.9; 1.26.1 Requires-Python <3.13,>=3.9; 1.26.2 Requires-Python >=3.9; 1.26.3 Requires-Python >=3.9; 1.26.4 Requires-Python >=3.9; 1.3.0 Requires-Python >=3.8; 1.3.0rc1 Requires-Python >=3.8; 1.3.1 Requires-Python >=3.8; 1.3.2 Requires-Python >=3.8; 1.4.0 Requires-Python >=3.8; 1.4.0 Requires-Python >=3.9; 1.4.0rc0 Requires-Python >=3.8; 1.4.0rc1 Requires-Python >=3.9; 1.4.1 Requires-Python >=3.8; 1.4.1.post1 Requires-Python >=3.9; 1.4.2 Requires-Python >=3.8; 1.4.2 Requires-Python >=3.9; 1.4.3 Requires-Python >=3.8; 1.4.4 Requires-Python >=3.8; 1.5.0 Requires-Python >=3.8; 1.5.0rc0 Requires-Python >=3.8; 1.5.0rc1 Requires-Python >=3.9; 1.5.1 Requires-Python >=3.8; 1.5.2 Requires-Python >=3.8; 1.5.3 Requires-Python >=3.8; 1.63.0 Requires-Python >=3.8; 1.63.0rc1 Requires-Python >=3.8; 1.63.0rc2 Requires-Python >=3.8; 1.64.0rc1 Requires-Python >=3.8; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11; 1.9.0 Requires-Python >=3.8,<3.12; 1.9.0rc1 Requires-Python >=3.8,<3.12; 1.9.0rc2 Requires-Python >=3.8,<3.12; 1.9.0rc3 Requires-Python >=3.8,<3.12; 1.9.1 Requires-Python >=3.8,<3.12; 1.9.2 Requires-Python >=3.8; 1.9.3 Requires-Python >=3.8; 10.0.0 Requires-Python >=3.8; 10.0.1 Requires-Python >=3.8; 10.1.0 Requires-Python >=3.8; 10.2.0 Requires-Python >=3.8; 10.3.0 Requires-Python >=3.8; 13.0.0 Requires-Python >=3.8; 14.0.0 Requires-Python >=3.8; 14.0.1 Requires-Python >=3.8; 14.0.2 Requires-Python >=3.8; 15.0.0 Requires-Python >=3.8; 15.0.1 Requires-Python >=3.8; 15.0.2 Requires-Python >=3.8; 16.0.0 Requires-Python >=3.8; 16.1.0 Requires-Python >=3.8; 2.0.0 Requires-Python >=3.8; 2.0.0b1 Requires-Python >=3.9; 2.0.0rc0 Requires-Python >=3.8; 2.0.0rc1 Requires-Python >=3.8; 2.0.0rc1 Requires-Python >=3.9; 2.0.0rc2 Requires-Python >=3.9; 2.0.1 Requires-Python >=3.8; 2.0.2 Requires-Python >=3.8; 2.0.3 Requires-Python >=3.8; 2.1.0 Requires-Python >=3.9; 2.1.0rc0 Requires-Python >=3.9; 2.1.1 Requires-Python >=3.9; 2.1.2 Requires-Python >=3.9; 2.1.3 Requires-Python >=3.9; 2.1.4 Requires-Python >=3.9; 2.12.0 Requires-Python >=3.8; 2.12.0rc0 Requires-Python >=3.8; 2.12.0rc1 Requires-Python >=3.8; 2.12.1 Requires-Python >=3.8; 2.12.2 Requires-Python >=3.8; 2.12.3 Requires-Python >=3.8; 2.13.0 Requires-Python >=3.8; 2.13.1 Requires-Python >=3.8; 2.13.1rc0 Requires-Python >=3.8; 2.13.1rc1 Requires-Python >=3.8; 2.14.0 Requires-Python >=3.8; 2.14.0 Requires-Python >=3.8.0; 2.14.0 Requires-Python >=3.9; 2.14.0rc0 Requires-Python >=3.9; 2.14.1 Requires-Python >=3.8.0; 2.14.1 Requires-Python >=3.9; 2.14.2 Requires-Python >=3.8.0; 2.14.3 Requires-Python >=3.8.0; 2.14.4 Requires-Python >=3.8.0; 2.14.5 Requires-Python >=3.8.0; 2.14.6 Requires-Python >=3.8.0; 2.14.7 Requires-Python >=3.8.0; 2.15.0 Requires-Python >=3.8; 2.15.0 Requires-Python >=3.8.0; 2.15.0 Requires-Python >=3.9; 2.15.0rc0 Requires-Python >=3.8; 2.15.0rc1 Requires-Python >=3.8; 2.15.1 Requires-Python >=3.9; 2.15.2 Requires-Python >=3.9; 2.16.0 Requires-Python >=3.8.0; 2.16.0 Requires-Python >=3.9; 2.16.1 Requires-Python >=3.8.0; 2.16.1 Requires-Python >=3.9; 2.16.2 Requires-Python >=3.9; 2.17.0 Requires-Python >=3.8.0; 2.17.1 Requires-Python >=3.8.0; 2.18.0 Requires-Python >=3.8.0; 2.19.0 Requires-Python >=3.8.0; 2.19.1 Requires-Python >=3.8.0; 2.2.0 Requires-Python >=3.9; 2.2.0rc0 Requires-Python >=3.9; 2.2.1 Requires-Python >=3.9; 2.2.2 Requires-Python >=3.9; 2.4.0 Requires-Python >=3.8; 2.5 Requires-Python >=3.8; 2.6.0 Requires-Python >=3.8; 2.6.0b1 Requires-Python >=3.8; 2.6.1 Requires-Python >=3.8; 2.6.2 Requires-Python >=3.8; 2.6.3 Requires-Python >=3.8; 2.6.4 Requires-Python >=3.8; 2.7 Requires-Python >=3.8; 2.7.0 Requires-Python >=3.8; 2.7.0b1 Requires-Python >=3.8; 2.7.1 Requires-Python >=3.8; 2.7rc1 Requires-Python >=3.8; 2.8 Requires-Python >=3.8; 2.8.1 Requires-Python >=3.8; 2.8.1rc1 Requires-Python >=3.8; 2.8.2 Requires-Python >=3.8; 2.8.3 Requires-Python >=3.8; 2.8.4 Requires-Python >=3.8; 2.8.5 Requires-Python >=3.8; 2.8.6 Requires-Python >=3.8; 2.8.7 Requires-Python >=3.8; 2.8.8 Requires-Python >=3.8; 2.8rc1 Requires-Python >=3.8; 2023.10.0 Requires-Python >=3.8; 2023.12.0 Requires-Python >=3.8; 2023.12.1 Requires-Python >=3.8; 2023.12.2 Requires-Python >=3.8; 2023.3.0 Requires-Python >=3.8; 2023.3.22 Requires-Python >=3.8; 2023.3.23 Requires-Python >=3.8; 2023.4.0 Requires-Python >=3.8; 2023.5.0 Requires-Python >=3.8; 2023.5.2 Requires-Python >=3.8; 2023.6.0 Requires-Python >=3.8; 2023.9.0 Requires-Python >=3.8; 2023.9.1 Requires-Python >=3.8; 2023.9.2 Requires-Python >=3.8; 2024.2.0 Requires-Python >=3.8; 2024.3.0 Requires-Python >=3.8; 2024.3.1 Requires-Python >=3.8; 2024.4.28 Requires-Python >=3.8; 2024.5.0 Requires-Python >=3.8; 2024.5.10 Requires-Python >=3.8; 2024.5.15 Requires-Python >=3.8; 3.0 Requires-Python >=3.8; 3.0.0 Requires-Python >=3.8; 3.0.0 Requires-Python >=3.9; 3.0.1 Requires-Python >=3.9; 3.0.2 Requires-Python >=3.9; 3.0.3 Requires-Python >=3.9; 3.0.4 Requires-Python >=3.9; 3.0.5 Requires-Python >=3.9; 3.0b1 Requires-Python >=3.8; 3.0rc1 Requires-Python >=3.8; 3.1 Requires-Python >=3.8; 3.1.0 Requires-Python >=3.9; 3.1.1 Requires-Python >=3.9; 3.10.0 Requires-Python >=3.8; 3.11.0 Requires-Python >=3.8; 3.12.3 Requires-Python >=3.8; 3.12.4 Requires-Python >=3.8; 3.13.0 Requires-Python >=3.8; 3.13.1 Requires-Python >=3.8; 3.13.2 Requires-Python >=3.8; 3.13.3 Requires-Python >=3.8; 3.13.4 Requires-Python >=3.8; 3.14.0 Requires-Python >=3.8; 3.1rc0 Requires-Python >=3.8; 3.2 Requires-Python >=3.9; 3.2.0 Requires-Python >=3.8; 3.2.0 Requires-Python >=3.9; 3.2.1 Requires-Python >=3.9; 3.2rc0 Requires-Python >=3.9; 3.3 Requires-Python >=3.10; 3.3.0 Requires-Python >=3.8; 3.3.0 Requires-Python >=3.9; 3.3.1 Requires-Python >=3.9; 3.3.2 Requires-Python >=3.9; 3.3.3 Requires-Python >=3.9; 3.3rc0 Requires-Python >=3.10; 3.4.0 Requires-Python >=3.8; 3.4.0.dev2 Requires-Python >=3.8; 3.5 Requires-Python >=3.8; 3.5.0 Requires-Python >=3.8; 3.5.1 Requires-Python >=3.8; 3.5.2 Requires-Python >=3.8; 3.6 Requires-Python >=3.8; 3.6.0 Requires-Python >=3.8; 3.6.0rc1 Requires-Python >=3.8; 3.6.0rc2 Requires-Python >=3.8; 3.6.1 Requires-Python >=3.8; 3.6.2 Requires-Python >=3.8; 3.6.3 Requires-Python >=3.8; 3.7.0 Requires-Python >=3.8; 3.7.0rc1 Requires-Python >=3.8; 3.7.1 Requires-Python >=3.8; 3.7.2 Requires-Python >=3.8; 3.7.3 Requires-Python >=3.8; 3.7.4 Requires-Python >=3.8; 3.7.5 Requires-Python >=3.8; 3.8.0 Requires-Python >=3.9; 3.8.0rc1 Requires-Python >=3.9; 3.8.1 Requires-Python >=3.9; 3.8.2 Requires-Python >=3.9; 3.8.3 Requires-Python >=3.9; 3.8.4 Requires-Python >=3.9; 3.9.0 Requires-Python >=3.8; 3.9.0 Requires-Python >=3.9; 3.9.0b0 Requires-Python >=3.8; 3.9.0b1 Requires-Python >=3.8; 3.9.0rc0 Requires-Python >=3.8; 3.9.0rc2 Requires-Python >=3.9; 3.9.1 Requires-Python >=3.8; 3.9.2 Requires-Python >=3.8; 3.9.3 Requires-Python >=3.8; 3.9.4 Requires-Python >=3.8; 3.9.4rc0 Requires-Python >=3.8; 3.9.5 Requires-Python >=3.8; 4.0.0.dev0 Requires-Python >=3.8; 4.0.0.dev1 Requires-Python >=3.8; 4.0.0.dev2 Requires-Python >=3.8; 4.0.0.dev3 Requires-Python >=3.9; 4.25.0 Requires-Python >=3.8; 4.25.0rc1 Requires-Python >=3.8; 4.25.0rc2 Requires-Python >=3.8; 4.25.1 Requires-Python >=3.8; 4.25.2 Requires-Python >=3.8; 4.25.3 Requires-Python >=3.8; 4.3.0 Requires-Python >=3.8; 4.3.1 Requires-Python >=3.8; 4.3.2 Requires-Python >=3.8; 4.38.1.dev0 Requires-Python >=3.8; 4.39.0 Requires-Python >=3.8; 4.39.1 Requires-Python >=3.8; 4.39.2 Requires-Python >=3.8; 4.39.3 Requires-Python >=3.8; 4.39.4 Requires-Python >=3.8; 4.40.0 Requires-Python >=3.8; 4.41.0 Requires-Python >=3.8; 4.41.1 Requires-Python >=3.8; 4.42.0 Requires-Python >=3.8; 4.42.1 Requires-Python >=3.8; 4.43.0 Requires-Python >=3.8; 4.43.1 Requires-Python >=3.8; 4.44.0 Requires-Python >=3.8; 4.44.1 Requires-Python >=3.8; 4.44.3 Requires-Python >=3.8; 4.45.0 Requires-Python >=3.8; 4.45.1 Requires-Python >=3.8; 4.46.0 Requires-Python >=3.8; 4.47.0 Requires-Python >=3.8; 4.47.2 Requires-Python >=3.8; 4.48.1 Requires-Python >=3.8; 4.49.0 Requires-Python >=3.8; 4.50.0 Requires-Python >=3.8; 4.51.0 Requires-Python >=3.8; 5.0.0 Requires-Python >=3.8; 5.0.0rc1 Requires-Python >=3.8; 5.0.1 Requires-Python >=3.8; 5.1.0 Requires-Python >=3.8; 5.2.0 Requires-Python >=3.8; 5.26.0 Requires-Python >=3.8; 5.26.0rc1 Requires-Python >=3.8; 5.26.0rc2 Requires-Python >=3.8; 5.26.0rc3 Requires-Python >=3.8; 5.26.1 Requires-Python >=3.8; 5.27.0rc1 Requires-Python >=3.8; 5.27.0rc2 Requires-Python >=3.8; 5.27.0rc3 Requires-Python >=3.8; 5.5.0 Requires-Python >=3.8.0,<4.0.0; 5.5.1 Requires-Python >=3.8.0,<4.0.0; 5.5.2 Requires-Python >=3.8.0,<4.0.0; 5.5.3 Requires-Python >=3.8.0,<4.0.0; 5.5.4 Requires-Python >=3.8.0,<4.0.0; 5.5.5 Requires-Python >=3.8.0,<4.0.0; 5.5.6 Requires-Python >=3.8; 5.5.6a0 Requires-Python >=3.8; 6.1.3 Requires-Python >=3.8,<4; 6.10.0 Requires-Python >=3.8; 6.11.0 Requires-Python >=3.8; 6.2.0 Requires-Python >=3.8,<4; 6.8.0 Requires-Python >=3.8; 6.9.0 Requires-Python >=3.8; 7.0.0 Requires-Python >=3.8; 7.0.1 Requires-Python >=3.8; 7.0.2 Requires-Python >=3.8; 7.1.0 Requires-Python >=3.8; 9.0.0 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement torch==1.9.0+cu111 (from versions: 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0, 1.1.0.post2, 1.2.0, 1.3.0, 1.3.0.post2, 1.3.1, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1)
ERROR: No matching distribution found for torch==1.9.0+cu111

After coming across this error, I tried installing the dependencies using python 3.8 and python 3.9 as well -

Python version used - 3.9.19 pip_install_py39.log

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement numpy==1.21.6 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0, 1.21.1, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.23.0rc1, 1.23.0rc2, 1.23.0rc3, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4, 1.23.5, 1.24.0rc1, 1.24.0rc2, 1.24.0, 1.24.1, 1.24.2, 1.24.3, 1.24.4, 1.25.0rc1, 1.25.0, 1.25.1, 1.25.2, 1.26.0b1, 1.26.0rc1, 1.26.0, 1.26.1, 1.26.2, 1.26.3, 1.26.4, 2.0.0b1, 2.0.0rc1, 2.0.0rc2)
ERROR: No matching distribution found for numpy==1.21.6

Python version used - 3.8.19 pip_install_py38.log

Collecting PyYAML==6.0 (from -r requirements.txt (line 101))
  Using cached PyYAML-6.0.tar.gz (124 kB)
  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
  ╰─> [48 lines of output]
      running egg_info
      writing lib/PyYAML.egg-info/PKG-INFO
      writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
      writing top-level names to lib/PyYAML.egg-info/top_level.txt
      Traceback (most recent call last):
        File "/Users/siddarth.saha/Desktop/dev/dev-python/iml/shap/Amortized-Interpretability/py38/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/siddarth.saha/Desktop/dev/dev-python/iml/shap/Amortized-Interpretability/py38/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/siddarth.saha/Desktop/dev/dev-python/iml/shap/Amortized-Interpretability/py38/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 288, in <module>
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 104, in setup
          return distutils.core.setup(**attrs)
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 184, in setup
          return run_commands(dist)
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
          dist.run_commands()
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
          super().run_command(command)
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 321, in run
          self.find_sources()
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
          mm.run()
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 550, in run
          self.add_defaults()
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 588, in add_defaults
          sdist.add_defaults(self)
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/command/sdist.py", line 102, in add_defaults
          super().add_defaults()
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 250, in add_defaults
          self._add_defaults_ext()
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 335, in _add_defaults_ext
          self.filelist.extend(build_ext.get_source_files())
        File "<string>", line 204, in get_source_files
        File "/private/var/folders/qb/3nr24jts5ms5294wzm2sp7100000gp/T/pip-build-env-7u51gqgk/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
          raise AttributeError(attr)
      AttributeError: cython_sources
      [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.

After realising that PyYaml, torch (the versioning) and Numpy were causing the issues, I created a new requirements.txt file to try to install the rest of the packages, using python 3.7 condo environment pip_install_py37-1.log

INFO: pip is looking at multiple versions of absl-py to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements-1.txt (line 18), -r requirements-1.txt (line 23), -r requirements-1.txt (line 45), -r requirements-1.txt (line 57) and importlib-metadata==4.11.4 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested importlib-metadata==4.11.4
    click 8.0.4 depends on importlib-metadata; python_version < "3.8"
    datasets 1.15.0 depends on importlib-metadata; python_version < "3.8"
    huggingface-hub 0.0.19 depends on importlib-metadata; python_version < "3.8"
    konoha 4.6.5 depends on importlib-metadata<4.0.0 and >=3.7.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Installation without versioning

I finally also tried to install the packages without their version numbers using python 3.7 and then 3.8. I am attaching the logs for the errors as well Python 3.7 - pip_install_py37-2.log

Collecting hyperopt
  Using cached hyperopt-0.2.7-py2.py3-none-any.whl (1.6 MB)
ERROR: Ignored the following versions that require a different python version: 0.12.0 Requires-Python >=3.8; 0.12.0rc1 Requires-Python >=3.8; 0.12.1 Requires-Python >=3.8; 0.13.0 Requires-Python >=3.8; 0.13.1 Requires-Python >=3.8; 0.17.0 Requires-Python >=3.8.0; 0.17.0rc0 Requires-Python >=3.8.0; 0.17.1 Requires-Python >=3.8.0; 0.17.2 Requires-Python >=3.8.0; 0.17.3 Requires-Python >=3.8.0; 0.18.0 Requires-Python >=3.8.0; 0.18.0rc0 Requires-Python >=3.8.0; 0.19.0 Requires-Python >=3.8.0; 0.19.0rc0 Requires-Python >=3.8.0; 0.19.1 Requires-Python >=3.8.0; 0.19.2 Requires-Python >=3.8.0; 0.19.3 Requires-Python >=3.8.0; 0.19.4 Requires-Python >=3.8.0; 0.20.0 Requires-Python >=3.8.0; 0.20.0rc0 Requires-Python >=3.8.0; 0.20.0rc1 Requires-Python >=3.8.0; 0.20.1 Requires-Python >=3.8.0; 0.20.2 Requires-Python >=3.8.0; 0.20.3 Requires-Python >=3.8.0; 0.21.0 Requires-Python >=3.8.0; 0.21.0rc0 Requires-Python >=3.8.0; 0.21.1 Requires-Python >=3.8.0; 0.21.2 Requires-Python >=3.8.0; 0.21.3 Requires-Python >=3.8.0; 0.21.4 Requires-Python >=3.8.0; 0.22.0 Requires-Python >=3.8.0; 0.22.0rc0 Requires-Python >=3.8.0; 0.22.0rc1 Requires-Python >=3.8.0; 0.22.1 Requires-Python >=3.8.0; 0.22.2 Requires-Python >=3.8.0; 0.23.0 Requires-Python >=3.8.0; 0.23.0rc0 Requires-Python >=3.8.0; 0.23.0rc1 Requires-Python >=3.8.0; 0.3.8 Requires-Python >=3.8; 0.8.0 Requires-Python >=3.8; 0.8.1 Requires-Python >=3.8; 1.4.0 Requires-Python >=3.8; 1.4.1 Requires-Python >=3.8; 1.63.0 Requires-Python >=3.8; 1.63.0rc1 Requires-Python >=3.8; 1.63.0rc2 Requires-Python >=3.8; 1.64.0rc1 Requires-Python >=3.8; 2.14.0 Requires-Python >=3.8.0; 2.14.1 Requires-Python >=3.8.0; 2.14.2 Requires-Python >=3.8.0; 2.14.3 Requires-Python >=3.8.0; 2.14.4 Requires-Python >=3.8.0; 2.14.5 Requires-Python >=3.8.0; 2.14.6 Requires-Python >=3.8.0; 2.14.7 Requires-Python >=3.8.0; 2.15.0 Requires-Python >=3.8.0; 2.16.0 Requires-Python >=3.8.0; 2.16.1 Requires-Python >=3.8.0; 2.17.0 Requires-Python >=3.8.0; 2.17.1 Requires-Python >=3.8.0; 2.18.0 Requires-Python >=3.8.0; 2.19.0 Requires-Python >=3.8.0; 2.19.1 Requires-Python >=3.8.0; 2023.10.0 Requires-Python >=3.8; 2023.12.0 Requires-Python >=3.8; 2023.12.1 Requires-Python >=3.8; 2023.12.2 Requires-Python >=3.8; 2023.3.0 Requires-Python >=3.8; 2023.4.0 Requires-Python >=3.8; 2023.5.0 Requires-Python >=3.8; 2023.6.0 Requires-Python >=3.8; 2023.9.0 Requires-Python >=3.8; 2023.9.1 Requires-Python >=3.8; 2023.9.2 Requires-Python >=3.8; 2024.2.0 Requires-Python >=3.8; 2024.3.0 Requires-Python >=3.8; 2024.3.1 Requires-Python >=3.8; 2024.5.0 Requires-Python >=3.8; 3.0.0 Requires-Python >=3.8; 3.10.0 Requires-Python >=3.8; 3.11.0 Requires-Python >=3.8; 3.12.3 Requires-Python >=3.8; 3.12.4 Requires-Python >=3.8; 3.13.0 Requires-Python >=3.8; 3.13.1 Requires-Python >=3.8; 3.13.2 Requires-Python >=3.8; 3.13.3 Requires-Python >=3.8; 3.13.4 Requires-Python >=3.8; 3.14.0 Requires-Python >=3.8; 3.9.0 Requires-Python >=3.8; 3.9.0b0 Requires-Python >=3.8; 3.9.0b1 Requires-Python >=3.8; 3.9.0rc0 Requires-Python >=3.8; 3.9.1 Requires-Python >=3.8; 3.9.2 Requires-Python >=3.8; 3.9.3 Requires-Python >=3.8; 3.9.4 Requires-Python >=3.8; 3.9.4rc0 Requires-Python >=3.8; 3.9.5 Requires-Python >=3.8; 4.3.0 Requires-Python >=3.8; 4.3.1 Requires-Python >=3.8; 4.3.2 Requires-Python >=3.8; 5.0.0 Requires-Python >=3.8; 5.0.0rc1 Requires-Python >=3.8; 5.0.1 Requires-Python >=3.8; 5.1.0 Requires-Python >=3.8; 5.2.0 Requires-Python >=3.8; 6.1.3 Requires-Python >=3.8,<4; 6.2.0 Requires-Python >=3.8,<4
ERROR: Could not find a version that satisfies the requirement idna-metadata (from versions: none)
ERROR: No matching distribution found for idna-metadata

Python 3.8 -

ERROR: Could not find a version that satisfies the requirement idna-metadata (from versions: none)
ERROR: No matching distribution found for idna-metadata

pip_install_py38-2.log

Please let me know if there are any more details required.

yangalan123 commented 5 months ago

Thanks for the detailed feedback -- I can confirm that some upstream dependency is no longer supported also in Linux for Python 3.8 (non-M2 chip, in that case, torch is not supported). I am considering a comprehensive migration to a higher version of Python like 3.9 / 3.10. Let me get a machine with M2 chip to test first.

yangalan123 commented 5 months ago

Sorry for the confusion and I have confirmed there exists dependency problems here. My old requirements.txt no longer works due to an upstream dependency update. I have updated the dependency installation instructions in my README.md with simplified requirements.txt. In my (borrowed) Macbook, I think python 3.8 and 3.9 works.

The main update is now, that we build thermostat package first (do not use their requirements.txt as that one is also broken, instead, using their setup.py by pip install -e .) and then build the main repo. Many old dependencies were introduced mostly due to InterpCalib submodule that we take a dependency from. Considering the author for that package no longer actively maintain that one, I have uploaded my local copy for further reproduction purposes and incorporate the necessary dependency for that one in my new requirements.txt.

Let me know if this solution works for you.

yangalan123 commented 5 months ago

Close this issue as the problem seems to be solved after offline discussion. Feel free to reopen it if needed.