microsoft/Qcodes

Error when running `Infiniium.py` driver file

paniash opened this issue · 4 comments

Bug report template:

type object error when running driver file Infiniium.py

Steps to reproduce

  1. Open Infiniium.py
  2. Run the file in python i.e. python Infiniium.py
  3. Error pops up as: 'type' object is not subscriptable

Expected behaviour

Running the file should yield no output.

Actual behaviour

Traceback (most recent call last):
  File "Infiniium.py", line 82, in <module>
    class DSOTraceParam(ParameterWithSetpoints):
  File "Infiniium.py", line 87, in DSOTraceParam
    UNIT_MAP: ClassVar[dict[int, str]] = {
TypeError: 'type' object is not subscriptable

System

operating system Arch Linux

qcodes version 0.43.0

@paniash Which version of python are you using. QCoDeS 0.43 (and newer only supports 3.9+) this looks like you are using an older version of python

You're right, it's python 3.8. Running with a later version of python fixes the issue! Thanks.

Relevant to this issue, the docs need to be updated as there is a mention of the following:

You need a working python 3.7 installation, as the minimum Python version, to be able to use QCoDeS.

The minimum version is 3.9 now. I'd be happy to make a pull request to make the relevant changes in the docs and readme. :)

@paniash Thanks a pr to update the readme is very welcome. For reference we are likely to drop 3.9 support soon too.

@jenshnielsen Just opened #5646. :)