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

Error while executing create -f environment.yml #2

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

Error while executing create -f environment.yml #2

SatyamKumarr opened this issue Feb 21, 2024 · 1 comment

Comments

@SatyamKumarr
Copy link

SatyamKumarr commented Feb 21, 2024

When I am executing create -f environment.yml it is showing the error that is attached in the screenshot. Let me know if there is any solution for the same. I am using conda 23.11.0. Even I have run this command pip install --upgrade pip setuptools

CauseNet_ERROR

@yascho
Copy link

yascho commented Feb 25, 2024

Hi, thank you for reaching out with your question.

It appears that the issue you're encountering stems from the deprecation of the sklearn PyPI package.

While we don't have a direct dependency on this package, our dependency flair==0.4.2 (see requirements.yml) does require sklearn (you can find this in flair's requirements.txt here).

There are two solutions:

  1. Install a newer version of the flair package.
  2. Alternatively, you can circumvent this error as follows:
export SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True
conda env create -f environment.yml

Regarding the first approach, I haven't verified whether the latest flair package still supports loading our pretrained models.

Hope it helps.

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

2 participants