Skip to content

Commit

Permalink
fixed: ModuleNotFoundError: No module named 'clarifai.auth' (#14215)
Browse files Browse the repository at this point in the history
Updated the clarifai imports 

fixed: #14175 

@efriis 
@baskaryan
  • Loading branch information
umair313 committed Dec 4, 2023
1 parent ca8a022 commit 8504ec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/langchain/langchain/embeddings/clarifai.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def validate_environment(cls, values: Dict) -> Dict:
raise ValueError("Please provide a model_id.")

try:
from clarifai.auth.helper import ClarifaiAuthHelper
from clarifai.client import create_stub
from clarifai.client.auth.helper import ClarifaiAuthHelper
except ImportError:
raise ImportError(
"Could not import clarifai python package. "
Expand Down
2 changes: 1 addition & 1 deletion libs/langchain/langchain/llms/clarifai.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def validate_environment(cls, values: Dict) -> Dict:
raise ValueError("Please provide a model_id.")

try:
from clarifai.auth.helper import ClarifaiAuthHelper
from clarifai.client import create_stub
from clarifai.client.auth.helper import ClarifaiAuthHelper
except ImportError:
raise ImportError(
"Could not import clarifai python package. "
Expand Down

0 comments on commit 8504ec5

Please sign in to comment.