Skip to content

Commit

Permalink
revert error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
fkiraly committed Jun 29, 2024
1 parent 5b5291e commit bb81f58
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions skbase/utils/dependencies/_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,17 @@ def _check_soft_dependencies(
if pkg_spec is None:
if obj is None and msg is None:
msg = (
f"'{package}' not found. "
f"'{package}' is a soft dependency and not included in the "
f"base sktime installation. Please run: `pip install {package}` to "
f"{class_name} requires package {package!r} to be present "
f"in the python environment, but {package!r} was not found. "
)
if obj is not None:
msg = msg + (
f"{package!r} is a dependency of {class_name} and required "
f"to construct it. "
)
msg = msg + (
f"Please run: `pip install {package}` to "
f"install the {package} package. "
f"To install all soft dependencies, run: `pip install "
f"sktime[all_extras]`"
)
elif msg is None: # obj is not None, msg is None
msg = (
Expand Down

0 comments on commit bb81f58

Please sign in to comment.