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

dispatch_clops throws an 'unable to find account' error #23

Open
willzeng opened this issue Nov 11, 2024 · 0 comments
Open

dispatch_clops throws an 'unable to find account' error #23

willzeng opened this issue Nov 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@willzeng
Copy link
Contributor

willzeng commented Nov 11, 2024

When running dispatch_clops it looks like the system expects credentials for an IBM account to be available. This was unexpected as it was not required for dispatch_qv.py which works fine nor was this config part of the initial README.

(metriq-gym-py3.12) will@MacBook-Pro-66 metriq-gym % python metriq_gym/dispatch_clops.py
2024-11-11 13:15:06,410 - INFO - Dispatching CLOPS job with n=8, shots=8, trials=8, backend=qasm_simulator, confidence_level=0.025, jobs_file=.metriq_gym_jobs.json
Traceback (most recent call last):
  File "/Users/will/Library/CloudStorage/[email protected]/My Drive/code/metriq-gym/metriq_gym/dispatch_clops.py", line 68, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/will/Library/CloudStorage/[email protected]/My Drive/code/metriq-gym/metriq_gym/dispatch_clops.py", line 34, in main
    service=QiskitRuntimeService(),
            ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/will/Library/Caches/pypoetry/virtualenvs/metriq-gym-UB4WfuaA-py3.12/lib/python3.12/site-packages/qiskit_ibm_runtime/qiskit_runtime_service.py", line 144, in __init__
    self._account = self._discover_account(
                    ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/will/Library/Caches/pypoetry/virtualenvs/metriq-gym-UB4WfuaA-py3.12/lib/python3.12/site-packages/qiskit_ibm_runtime/qiskit_runtime_service.py", line 267, in _discover_account
    account = AccountManager.get(filename=filename)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/will/Library/Caches/pypoetry/virtualenvs/metriq-gym-UB4WfuaA-py3.12/lib/python3.12/site-packages/qiskit_ibm_runtime/accounts/management.py", line 197, in get
    raise AccountNotFoundError("Unable to find account.")
qiskit_ibm_runtime.accounts.exceptions.AccountNotFoundError: 'Unable to find account.'
@willzeng willzeng added the bug Something isn't working label Nov 11, 2024
@cosenal cosenal self-assigned this Nov 14, 2024
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