Skip to content

Commit

Permalink
fix olive not found
Browse files Browse the repository at this point in the history
  • Loading branch information
lshqqytiger committed Oct 31, 2023
1 parent 7d7821d commit 2fd8d2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,14 @@ def ensure_base_requirements():
import rich # pylint: disable=unused-import
except ImportError:
pass
try: # related to: https://github.com/microsoft/Olive/issues/675
import olive.workflows # pylint: disable=unused-import
except ImportError:
install('olive-ai', 'Olive')
try:
import olive.workflows
except ImportError:
log.error('Failed to install dependency: olive-ai.')


def install_requirements():
Expand Down
1 change: 0 additions & 1 deletion modules/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import sys
import json
import argparse
import olive.workflows
from modules.errors import log

# parse args, parse again after we have the data-dir and early-read the config file
Expand Down

0 comments on commit 2fd8d2c

Please sign in to comment.