Skip to content

Conversation

@mariosasko
Copy link
Collaborator

Improve the error message for missing packages from inside a dataset script:

With this change, the error message for missing packages for bigbench looks as follows:

ImportError: To be able to use bigbench, you need to install the following dependencies:
        - 'bigbench' using 'pip install "bigbench @ https://storage.googleapis.com/public_research_data/bigbench/bigbench-0.0.1.tar.gz"'

And this is how it looked before:

ImportError: To be able to use bigbench, you need to install the following dependencies['bigbench', 'bigbench', 'bigbench', 'bigbench'] using 'pip install "bigbench @ https://storage.googleapis.com/public_research_data/bigbench/bigbench-0.0.1.tar.gz" bigbench bigbench bigbench' for instance'

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 10, 2022

The documentation is not available anymore as the PR was closed or merged.

@lhoestq
Copy link
Member

lhoestq commented Jun 13, 2022

I opened a PR before I noticed yours ^^' You can find it here: #4484

The only comment I have regarding your message is that it possibly shows several pip install commands, whereas one can run one single pip install command with the list of missing dependencies, which is maybe simpler.

Let me know which one your prefer

@mariosasko
Copy link
Collaborator Author

Closing in favor of #4484.

@mariosasko mariosasko closed this Jun 13, 2022
@mariosasko mariosasko deleted the improve-missing-packages-error branch October 6, 2022 13:46
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

Successfully merging this pull request may close these issues.

4 participants