Skip to content

Improve missing tsfile dependency error#8307

Open
Pranjalitem189 wants to merge 1 commit into
huggingface:mainfrom
Pranjalitem189:fixes
Open

Improve missing tsfile dependency error#8307
Pranjalitem189 wants to merge 1 commit into
huggingface:mainfrom
Pranjalitem189:fixes

Conversation

@Pranjalitem189

Copy link
Copy Markdown

Related to #8256

This PR improves the error message when the optional tsfile dependency is unavailable.

Currently, loading a TSFile dataset without tsfile installed raises a raw:

ModuleNotFoundError: No module named 'tsfile'

This change raises a clearer ImportError instead:

ImportError: To support loading TSFile datasets, please install 'tsfile'.

A regression test is included for the missing dependency case.

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.

1 participant