Skip to content

Commit

Permalink
fixed: ModuleNotFoundError: No module named 'clarifai.auth' (langchai…
Browse files Browse the repository at this point in the history
…n-ai#14215)

Updated the clarifai imports 

fixed: langchain-ai#14175 

@efriis 
@baskaryan
  • Loading branch information
umair313 authored and aymeric-roucher committed Dec 11, 2023
1 parent b371eaa commit fd58347
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 fd58347

Please sign in to comment.