#1051217 python3-xrt: xrt GUI fails to start with error module 'inspect' has no attribute 'getargspec'.

Package:
python3-xrt
Source:
python3-xrt
Description:
Xilinx Runtime (XRT) - Python bindings
Submitter:
Emmanuel FARHI
Date:
2023-09-04 15:51:04 UTC
Severity:
normal
#1051217#5
Date:
2023-09-04 15:44:52 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?

The command '/usr/bin/xrtQookStart' or Desktop launcher "XRay Tracer" fails to
start GUI.

   * What was the outcome of this action?

An error message is displayed in the Terminal:
mean: 'getargs'?

$ /usr/bin/xrtQookStart
Traceback (most recent call last):
  File "/usr/bin/xrtQookStart", line 30, in <module>
    ex = xQ.XrtQook()
         ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/xrt/gui/xrtQook/__init__.py", line 245,
in __init__
    self.initAllTrees()
  File "/usr/lib/python3/dist-packages/xrt/gui/xrtQook/__init__.py", line 637,
in initAllTrees
    if inspect.getargspec(obj)[3] is not None:
       ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean:
'getargs'?

   * What outcome did you expect instead?

The GUI should start.

   * Potential fix

It seems inspect.getargspec is now deprecated in python 3.11. It should be
replaced by inspect.getfullargspec(func)
The upstream code has been fixed, so that a version upgrade to 1.6.0 should fix
the bug.