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

Python create_vaults_from_input.py example script fails on Windows #63

Open
ag-adampike opened this issue Jun 5, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@ag-adampike
Copy link
Member

ag-adampike commented Jun 5, 2024

In Windows environments, getMyUUID() catches an error on every run of the script, even after recently signing in. The response from the subprocess.run implementation of 1Password CLI seems to include a non-zero return code in every case, so the script exits here:

if r.returncode != 0:
sys.exit(
f"🔴 Unable to get your user UUID. Make sure you are are signed into the 1Password CLI. Error: {r.stderr.decode('utf-8')}"
)

I've not yet been able to work out why this is an issue for Windows, but it's easily reproduced. The error message consistently includes account not signed in.

@ag-adampike ag-adampike added the bug Something isn't working label Jun 5, 2024
@ag-adampike ag-adampike self-assigned this Jun 5, 2024
@scottisloud
Copy link
Collaborator

Does this happen both when using the desktop integration and when signing into op manually?

@ag-adampike
Copy link
Member Author

ag-adampike commented Jun 6, 2024

This error happens on Windows when 1Password CLI is integrated with 1Password for Windows. The desktop app integration does not seem to allow a subprocess to delegate sign in using the desktop app.

A workaround is to sign in manually:
https://developer.1password.com/docs/cli/sign-in-manually/

The script behaves as expected on Windows when signing in manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants