Describe the bug
The requirements.txt file is missing the scipy dependency.
In README.md it states:
While your normal Python install may "just work" if you're lucky, if you run into any issues and want to install the exact versions of Python packages that we've tested the code with, please create a new virtual environment and install the packages from requirements.txt:
Then after downloading the data files (see next section) into /sourcecode/, you will be able to run:
cd sourcecode
python main.py
Doing this will result in:
File "../communitynotes/sourcecode/scoring/reputation_matrix_factorization/weighted_loss.py", line 1, in <module>
import scipy.sparse as sps
ModuleNotFoundError: No module named 'scipy'
This can be easily fixed by adding the dependency in requirements.txt
Hi! Amazing work š
Describe the bug The
requirements.txt
file is missing thescipy
dependency. InREADME.md
it states:Doing this will result in:
This can be easily fixed by adding the dependency in
requirements.txt
To Reproduce Steps to reproduce the behavior:
git clone https://github.com/twitter/communitynotes.git
conda create --name communitynotes python=3.7.9
(or usevenv
)conda activate communitynotes
(or usevenv
)pip install -r requirements.txt
/sourcecode/data
folderpython main.py --enrollment data/userEnrollment-00000.tsv --notes data/notes-00000.tsv --ratings data/ratings-00000.tsv --status data/noteStatusHistory-00000.tsv --outdir data