snap-stanford / stark

STaRK: Benchmarking LLM Retrieval on Textual and Relational Knowledge Bases (https://stark.stanford.edu/)
https://stark.stanford.edu/
MIT License
270 stars 33 forks source link

Problems with Python 3.8 #1

Closed tobiasoberrauch closed 21 hours ago

tobiasoberrauch commented 2 months ago

Hi,

you mentioned that Python 3.8 is required. I tried this on my mac + conda I got an error

ERROR: Ignored the following versions that require a different python version: 1.2.0 Requires-Python >=3.9; 1.2.1 Requires-Python >=3.9; 1.2.1rc1 Requires-Python >=3.9 ERROR: Could not find a version that satisfies the requirement cupy-cuda11x==12.2.0 (from versions: none) ERROR: No matching distribution found for cupy-cuda11x==12.2.0

Full log

(base) tobiasoberrauch@Tobiass-MBP stark % conda create -n stark python=3.8 Channels:

Package Plan

environment location: /opt/anaconda3/envs/stark

added / updated specs:

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
pip-23.3.1                 |   py38hca03da5_0         2.6 MB
python-3.8.19              |       hb885b13_0        12.5 MB
setuptools-68.2.2          |   py38hca03da5_0         934 KB
wheel-0.41.2               |   py38hca03da5_0         107 KB
xz-5.4.6                   |       h80987f9_0         372 KB
------------------------------------------------------------
                                       Total:        16.5 MB

The following NEW packages will be INSTALLED:

ca-certificates pkgs/main/osx-arm64::ca-certificates-2024.3.11-hca03da5_0 libcxx pkgs/main/osx-arm64::libcxx-14.0.6-h848a8c0_0 libffi pkgs/main/osx-arm64::libffi-3.4.4-hca03da5_0 ncurses pkgs/main/osx-arm64::ncurses-6.4-h313beb8_0 openssl pkgs/main/osx-arm64::openssl-3.0.13-h1a28f6b_0 pip pkgs/main/osx-arm64::pip-23.3.1-py38hca03da5_0 python pkgs/main/osx-arm64::python-3.8.19-hb885b13_0 readline pkgs/main/osx-arm64::readline-8.2-h1a28f6b_0 setuptools pkgs/main/osx-arm64::setuptools-68.2.2-py38hca03da5_0 sqlite pkgs/main/osx-arm64::sqlite-3.41.2-h80987f9_0 tk pkgs/main/osx-arm64::tk-8.6.12-hb8d0fd4_0 wheel pkgs/main/osx-arm64::wheel-0.41.2-py38hca03da5_0 xz pkgs/main/osx-arm64::xz-5.4.6-h80987f9_0 zlib pkgs/main/osx-arm64::zlib-1.2.13-h5a0b063_0

Proceed ([y]/n)?

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: | WARNING conda.core.path_actions:verify(1055): Unable to create environments file. Path not writable.
environment location: /Users/tobiasoberrauch/.conda/environments.txt

done Executing transaction: \ WARNING conda.core.envs_manager:register_env(66): Unable to register environment. Path not writable or missing. environment location: /opt/anaconda3/envs/stark registry file: /Users/tobiasoberrauch/.conda/environments.txt done #

To activate this environment, use

#

$ conda activate stark

#

To deactivate an active environment, use

#

$ conda deactivate

(base) tobiasoberrauch@Tobiass-MBP stark % conda activate stark pip install -r requirements.txt Collecting anthropic==0.25.0 (from -r requirements.txt (line 1)) Downloading anthropic-0.25.0-py3-none-any.whl.metadata (18 kB) Collecting async-timeout==4.0.3 (from -r requirements.txt (line 2)) Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB) Collecting attrs==23.1.0 (from -r requirements.txt (line 3)) Downloading attrs-23.1.0-py3-none-any.whl.metadata (11 kB) Collecting bs4==0.0.1 (from -r requirements.txt (line 4)) Downloading bs4-0.0.1.tar.gz (1.1 kB) Preparing metadata (setup.py) ... done Collecting certifi==2023.7.22 (from -r requirements.txt (line 5)) Downloading certifi-2023.7.22-py3-none-any.whl.metadata (2.2 kB) Collecting click==8.1.7 (from -r requirements.txt (line 6)) Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB) Collecting cmake==3.27.7 (from -r requirements.txt (line 7)) Downloading cmake-3.27.7-py2.py3-none-macosx_10_10_universal2.macosx_10_10_x86_64.macosx_11_0_arm64.macosx_11_0_universal2.whl.metadata (6.7 kB) Collecting comm==0.1.4 (from -r requirements.txt (line 8)) Downloading comm-0.1.4-py3-none-any.whl.metadata (4.2 kB) Collecting contourpy==1.1.1 (from -r requirements.txt (line 9)) Downloading contourpy-1.1.1-cp38-cp38-macosx_11_0_arm64.whl.metadata (5.9 kB) ERROR: Ignored the following versions that require a different python version: 1.2.0 Requires-Python >=3.9; 1.2.1 Requires-Python >=3.9; 1.2.1rc1 Requires-Python >=3.9 ERROR: Could not find a version that satisfies the requirement cupy-cuda11x==12.2.0 (from versions: none) ERROR: No matching distribution found for cupy-cuda11x==12.2.0

zsyJosh commented 2 months ago

It seems possible that the Conda environment named stark with Python 3.8 may not have been correctly created or activated. Could you please verify the Python version in the stark environment by running python --version? Additionally, to ensure you are using the correct pip, could you execute which pip and confirm it points to the pip in the stark Conda environment?

Wuyxin commented 21 hours ago

Closed the issue for now. Feel free to reopen if not resolved. PS we have pushed pip to avoid env problem.