-
Notifications
You must be signed in to change notification settings - Fork 27
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
TypeError: unsupported operand type(s) for |: 'type' and 'type' #49
Comments
Hey @akamming thanks for posting this issue ... it looks like you are using python 3.9 and this might be where the issue is arising. For security patching and regulatory use we have to keep our python version fairly up to date and so have implemented this library for 3.10 and higher, are you able to use this version of python? |
I am indeed on python 3.9 which is the default python for the rpi bullseye distribution. I Will check if I can upgrade easily |
Hey, team.
I get the error: op.list_vaults() function is returning a list instead of a string. The json.loads() function expects a JSON-formatted string as input. When I changed the code to:
I do get valid vaults_data back. However, I only get back 13 vaults. I have >100 vaults in my account. Any idea why? Thanks in advance. |
Hey @dale-courtney ! Just checking the code I see that we convert the JSON output from the cli using In terms of the number of vaults, as I just explained we simply parse the output from Hence the code will show you only the vaults you have access to with that user within that account you have authenticated with. If you have multiple accounts or groups you might need to authenticate with them separately and bring those vaults in there. |
@akamming How did this go? |
@dale-courtney I have moved this into a separate issue #55 |
Describe the bug
error in the code? I tried the sample code, and i got this typerror in the library
To Reproduce
and got this error:
So already fails on the "from onepassword import OnePassword" line...
Expected behavior
At least to not fail on the "from onepassword import OnePassword" line
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: