Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency incompatibilities #100

Open
milanschroeder opened this issue Feb 21, 2024 · 1 comment
Open

Dependency incompatibilities #100

milanschroeder opened this issue Feb 21, 2024 · 1 comment

Comments

@milanschroeder
Copy link

Potentially related to some other issues, installation of version 0.3.0 failed on GoogleColab due to incompatibilities between required packages, with torch versions being the central issue:
Successfull installation requires torch==1.12.1 and torch==2.1.0

Trying to install using %pip install relatio fails with:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
sqlalchemy 2.0.27 requires typing-extensions>=4.6.0, but you have typing-extensions 4.5.0 which is incompatible.
en-core-web-sm 3.7.1 requires spacy<3.8.0,>=3.7.2, but you have spacy 3.3.3 which is incompatible.
inflect 7.0.0 requires pydantic>=1.9.1, but you have pydantic 1.8.2 which is incompatible.
pydantic-core 2.16.2 requires typing-extensions!=4.7.0,>=4.6.0, but you have typing-extensions 4.5.0 which is incompatible.
torchaudio 2.1.0+cu121 requires torch==2.1.0, but you have torch 1.12.1 which is incompatible.
torchdata 0.7.0 requires torch==2.1.0, but you have torch 1.12.1 which is incompatible.
torchtext 0.16.0 requires torch==2.1.0, but you have torch 1.12.1 which is incompatible.

Hence trying to install required versions of dependencis manually:
%pip install torch==2.1.0
%pip install typing-extensions<=4.7.0,>=4.6.0
%pip install spacy<3.8.0,>=3.7.2
%pip install pydantic>=1.9.1

After installing torch==2.1.0, however:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
allennlp 2.10.1 requires torch<1.13.0,>=1.10.0, but you have torch 2.1.0 which is incompatible.
allennlp-models 2.10.1 requires torch<1.13.0,>=1.7.0, but you have torch 2.1.0 which is incompatible.
torchvision 0.13.1 requires torch==1.12.1, but you have torch 2.1.0 which is incompatible

Hence installs torch==1.12.1, which results in:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchaudio 2.1.0+cu121 requires torch==2.1.0, but you have torch 1.12.1 which is incompatible.
torchdata 0.7.0 requires torch==2.1.0, but you have torch 1.12.1 which is incompatible.
torchtext 0.16.0 requires torch==2.1.0, but you have torch 1.12.1 which is incompatible.

@milanschroeder
Copy link
Author

Works in Colab as long as installation is done like:

%pip` install spacy==3.3.2
%pip install relatio
%pip install spacy==3.7.2

and Preprocessor uses different model, e.g.:
p = relatio.Preprocessor(spacy_model = "en_core_web_lg")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant