-
Notifications
You must be signed in to change notification settings - Fork 6
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
AttributeError: type object 'VaultOverview' has no attribute 'model_validate' #109
Comments
Hi @alavi-sorrek , thank you for reaching out. Can you please give me a few more details related to:
Looking forward to hearing back from you! |
I was definitely running on Python 3.9, and either on Ubuntu 22 or it was
throwing the error on my Lambda - I can’t remember which here.
I ended up using the 1password PyPi, which also had its own issues, but I
was able to work around that.
…On Thu, Sep 12, 2024 at 3:17 AM Horia Culea ***@***.***> wrote:
Hi @alavi-sorrek <https://github.com/alavi-sorrek> , thank you for
reaching out. Can you please give me a few more details related to:
- the platform where you are running the SDK (OS + arch)
- the Python version that you use
- if you are running in any virtual environment, or if you use a
pyproject.toml manifest to declare your project's dependencies
Looking forward to hearing back from you!
—
Reply to this email directly, view it on GitHub
<#109 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2QBB54ZYMS3ZFPZ5Q3A2ADZWE5W3AVCNFSM6AAAAABN7LTIAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBVGQ2TGNJYGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @alavi-sorrek, We pushed a fix for a bad commit when installing the Python SDK. Could you please retry and let me know if the error is still happening. If so, I have some follow up questions:
Looking forward to hearing from you! |
Thanks Mohammad - I’ll check it out this week!
…On Tue, Sep 24, 2024 at 10:52 AM Mohammed Omar Miraj < ***@***.***> wrote:
Hi @alavi-sorrek <https://github.com/alavi-sorrek>,
We pushed a fix for a bad commit when installing the Python SDK. Could you
please retry and let me know if the error is still happening. If so, I have
some follow up questions:
1. Did you try running the example.py code and does that work fine?
2. What version of pydantic are you using?
Looking forward to hearing from you!
—
Reply to this email directly, view it on GitHub
<#109 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2QBB54RN66WF4SMYROLHR3ZYF4BTAVCNFSM6AAAAABN7LTIAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZRGUZTQMBQGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @MOmarMiraj We tried to list the vault and facing the same error. We followed the installation instructions provided in the README.
Python Version - 3.10.7 |
Hi @kumarnmanoj Thanks for looking into this deeper and sorry your having trouble with this still. It seems that the issue is your pydantic version. The minimum version of pydantic that the SDK requires is v2.5. Is it possible you update your pydantic version to a version thats greater than v2.5 and try again? This is a dependancy we do not currently document and we will address this soon. |
Hi @MOmarMiraj Thanks for the quick reply. We upgraded the pydantic to the latest version and it worked perfectly. Thanks again. |
Im glad I could fix it, I will close the issue as this has been resolved! |
Scenario & Reproduction Steps
Seems any time I try to list vaults or list items using the docs' suggestions, I'm thrown an attribute error related to model_validate for both items and vaults.
pip install git+https://github.com/1Password/[email protected]#egg=onepassword
Actual Behavior
AttributeError: type object 'VaultOverview' has no attribute 'model_validate'
Expected Behavior
I'm expecting to retrieve information related to vaults and items in them that are associated with my account
SDK version
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: