michelle123lam / lloom

Concept Induction: Analyzing Unstructured Text with High-Level Concepts Using LLooM (CHI 2024 paper). LLooM automatically surfaces high-level concepts to analyze unstructured text.
https://stanfordhci.github.io/lloom
BSD 3-Clause "New" or "Revised" License
45 stars 12 forks source link

numpy, pandas, PyYAML? stale dependencies #4

Closed michaelrhanson closed 4 weeks ago

michaelrhanson commented 2 months ago

Hello there - I tried to build the project locally on a fresh Python 3.12 install. There are a number of stale dependencies that encounter pip errors during the build (read more at https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean ) that can be fixed by tweaking the requirements.txt file.

My local diff looks like

@@ -3,13 +3,13 @@ hdbscan==0.8.33
 ipywidgets==8.1.2
 langchain==0.1.5
 nltk==3.8.1
-numpy==1.23.5
-openai==1.23.1
-pandas==2.2.0
+numpy==1.26.4
+openai>=1.23.1
+pandas>=2.2.0
 pathos==0.3.0
 protobuf==4.25.2
-PyYAML==6.0
+PyYAML>=6.0
 tqdm==4.66.1
 traitlets==5.14.1
 umap-learn==0.5.5

... I wasn't totally methodical about this, but these changes got me past the pip install errors.

michelle123lam commented 2 months ago

Thanks for raising this, and apologies for the delayed response! I'll update the requirements file so that others can get set up with local development more easily. Also, I've been using Python 3.10 for local development, but I can check later if anything breaks with Python 3.12.