Babelscape / rebel

REBEL is a seq2seq model that simplifies Relation Extraction (EMNLP 2021).
505 stars 73 forks source link

Error while executing setup #51

Closed mhgrove closed 1 year ago

mhgrove commented 1 year ago

Looks like the dependencies have drifted some:

ERROR: Cannot install -r requirements.txt (line 4) and -r requirements.txt (line 7) because these package versions have conflicting dependencies.

The conflict is caused by:
    transformers 4.19.2 depends on huggingface-hub<1.0 and >=0.1.0
    datasets 1.3.0 depends on huggingface-hub==0.0.2

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/user_guide/#fixing-conflicting-dependencies
WARNING: You are using pip version 21.1.1; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/local/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip' command.
mhgrove commented 1 year ago

fwiw, i removed the version restriction on datasets and it let pip figure it out. that got past the error and got things set up enough such that they appear to work locally. it's not clear if this will blow up down the road or not.

LittlePea13 commented 1 year ago

Yes, there were some breaking changes in the datasets updates. However, it seems they are fixed now. Just come back if someone breaks, I will try to update the requirements so this doesn't happen.