Skip to content

Snippet in Dashboard for setting up qpi-driver does not upgrade pre-existing qpi-driver #31

Description

@Tinitto

Describe the bug
On creation of a driver, the systemd snippet shown for python (could also be for other languages) does not
upgrade/downgrade an already existing qpi-driver and thus it raises errors if the expected version is incompatible with the pre-existing one.

To Reproduce
Steps to reproduce the behavior:

  1. Install an older version of qpi-driver e.g. uv tool install --python 3.12 "qpi-driver[cli,aer]==0.0.36"
  2. As admin, go to 'http://127.0.0.1:8090/#drivers'
  3. Click on 'Register Driver'
  4. Feed in details including language: 'python', kind: 'qiskit_aer ( Aer Simulator)'
  5. Click the submit button
  6. In the snippets that are shown, copy the one for systemd
  7. Go to your terminal if you are on a systemd enabled computer and run the snippet.
  8. Check the logs of the driver installed journalctl -u <name-of-service> -n 25
  9. You will see errors like 'No such command 'process'. ' which is true for qpi-driver v0.0.35

Screenshots
N/A

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
It seems QPI_DRIVER_VERSION which was probably originally passed as part of that snippet is no longer passed.
It is supposed to be got from /api/op/version GET to the go server, I think.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions