Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The langchain-nvidia-ai-endpoints package does not have a __version__ attribute #28

Open
aishwaryap opened this issue Apr 23, 2024 · 0 comments

Comments

@aishwaryap
Copy link

Hi all, I was recently trying to debug a mismatch between a public example using langchain-nvidia-ai-endpoints and something I was trying to implement and found that the langchain-nvidia-ai-endpoints package does not have a __version__ attribute.

Code:

import langchain_nvidia_ai_endpoints
print(langchain_nvidia_ai_endpoints.__dict__.keys())

Output:

dict_keys(['__name__', '__doc__', '__package__', '__loader__', '__spec__', '__path__', '__file__', '__cached__', '__builtins__', '_statics', '_common', 'chat_models', 'ChatNVIDIA', 'callbacks', 'embeddings', 'NVIDIAEmbeddings', '__all__'])

Code:

import langchain_nvidia_ai_endpoints
print(langchain_nvidia_ai_endpoints.__version__)

Output:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[20], line 2
      1 import langchain_nvidia_ai_endpoints
----> 2 print(langchain_nvidia_ai_endpoints.__version__)

AttributeError: module 'langchain_nvidia_ai_endpoints' has no attribute '__version__'

While there are other ways to check the version of the package that has been installed, this is a standard attribute that's valuable to have for debugging. Requesting that this be added.

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

No branches or pull requests

1 participant