# KBA 2 Keys CLI error

**URL:** <https://onlykey.discourse.group/t/kba-2-keys-cli-error/995>\
**Category:** Uncategorized\
**Created:** [February 16, 2023, 11:34pm UTC](https://onlykey.discourse.group/t/kba-2-keys-cli-error/995 "2023-02-16T23:34:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xokc](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@xokc](https://onlykey.discourse.group/u/xokc)\
**Post date:** [February 16, 2023, 11:34pm UTC](https://onlykey.discourse.group/t/kba-2-keys-cli-error/995/1 "2023-02-16T23:34:36Z")

</div>

Hi this is just a little Q/A I was greeted with a strange error when running some cli commands.  
It turns out, that, because I also have another key plugged in the lookup can not find the proper device.

```auto
  File "/home/_/.pyenv/versions/default/bin/onlykey-cli", line 8, in <module>
    sys.exit(main())
  File "/home/_/.pyenv/versions/default/lib/python3.10/site-packages/onlykey/cli.py", line 1196, in main
    cli()
  File "/home/_/.pyenv/versions/default/lib/python3.10/site-packages/onlykey/cli.py", line 548, in cli
    solo.cli.key()
  File "/home/_/.pyenv/versions/default/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/_/.pyenv/versions/default/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/_/.pyenv/versions/default/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/_/.pyenv/versions/default/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/_/.pyenv/versions/default/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/_/.pyenv/versions/default/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/_/.pyenv/versions/default/lib/python3.10/site-packages/solo/cli/key.py", line 56, in hexbytes
    print(solo.client.find(serial).get_rng(count).hex())
  File "/home/_/.pyenv/versions/default/lib/python3.10/site-packages/solo/client.py", line 32, in find
    p.find_device(dev=raw_device, solo_serial=solo_serial)
  File "/home/_/.pyenv/versions/default/lib/python3.10/site-packages/solo/devices/solo_v1.py", line 63, in find_device
    raise solo.exceptions.NonUniqueDeviceError
solo.exceptions.NonUniqueDeviceError

```

---

<div class="post-metadata">

**Author:** ![t11](https://avatars.discourse-cdn.com/v4/letter/t/8e7dd6/32.png) [@t11](https://onlykey.discourse.group/u/t11)\
**Post date:** [February 17, 2023, 5:19pm UTC](https://onlykey.discourse.group/t/kba-2-keys-cli-error/995/2 "2023-02-17T17:19:15Z")

</div>

Only one device is supported in the CLI, if you were to use two it doesn’t have a way of specifying which device to send USB communication to.

---

<div class="post-metadata">

**Author:** ![xokc](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@xokc](https://onlykey.discourse.group/u/xokc)\
**Post date:** [February 19, 2023, 11:49am UTC](https://onlykey.discourse.group/t/kba-2-keys-cli-error/995/3 "2023-02-19T11:49:32Z")

</div>

actually it could have, but it isn’t implemented…  
I don’t exactly know under which control the respective code is.  
At least selecting by vendor would be great though.

anyway, my topic was only intended as a general information for users, in case this error pops up
