[Debian-pan-maintainers] Bug#1051217: python3-xrt: xrt GUI fails to start with error module 'inspect' has no attribute 'getargspec'.

Emmanuel FARHI emmanuel.farhi at synchrotron-soleil.fr
Mon Sep 4 16:44:52 BST 2023


Package: python3-xrt
Version: 1.4.0-2
Severity: important
X-Debbugs-Cc: emmanuel.farhi at synchrotron-soleil.fr

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:
>> AttributeError: module 'inspect' has no attribute 'getargspec'. Did you
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.


-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-11-amd64 (SMP w/256 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-xrt depends on:
ii  libjs-mathjax       2.7.9+dfsg-1
ii  python3             3.11.2-1+b1
ii  python3-matplotlib  3.6.3-1+b1
ii  python3-numpy       1:1.24.2-1
ii  python3-opengl      3.1.6+dfsg-3
ii  python3-pandas      1.5.3+dfsg-2
ii  python3-scipy       1.10.1-2
ii  python3-sphinx      5.3.0-4
ii  python3-spyder      5.4.2+ds-5
ii  python3-xdg         0.28-2

python3-xrt recommends no packages.

Versions of packages python3-xrt suggests:
ii  python3-pyopencl  2022.3.1-2.1

-- no debconf information



More information about the Debian-pan-maintainers mailing list