[Debian-pan-maintainers] Bug#1051203: dioptas: pyqtgraph: Unable to convert to QColor

Emmanuel FARHI emmanuel.farhi at synchrotron-soleil.fr
Mon Sep 4 13:14:03 BST 2023


Package: dioptas
Version: 0.5.2-4+b3
Severity: important
X-Debbugs-Cc: emmanuel.farhi at synchrotron-soleil.fr

Dear Maintainer,

   * What led up to the situation?

Starting command 'dioptas' (or Desktop launcher) fails.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

An error message is displayed , and the program stops:

<class 'ValueError'>:
Unable to convert ffffff to QColor
--------------------------------------------------------------------------------
  File "/usr/bin/dioptas", line 9, in <module>
    main()
  File "/usr/lib/python3/dist-packages/dioptas/__init__.py", line 109, in main
    controller = MainController()
                 ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dioptas/controller/MainController.py",
line 48, in __init__
    self.widget = MainWidget()
                  ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dioptas/widgets/MainWidget.py", line
113, in __init__
    self.calibration_widget = CalibrationWidget(self)
                              ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dioptas/widgets/CalibrationWidget.py",
line 46, in __init__
    self.calibration_display_widget = CalibrationDisplayWidget(self)
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/dioptas/widgets/CalibrationWidget.py",
line 323, in __init__
    self.pattern_widget = PatternWidget(self.pattern_layout_widget)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-
packages/dioptas/widgets/plot_widgets/PatternWidget.py", line 43, in __init__
    self.create_main_plot()
  File "/usr/lib/python3/dist-
packages/dioptas/widgets/plot_widgets/PatternWidget.py", line 74, in
create_main_plot
    self.legend.addItem(self.plot_item, '')
  File "/usr/lib/python3/dist-
packages/dioptas/widgets/plot_widgets/ExLegendItem.py", line 134, in addItem
    label.setText(name)
  File "/usr/lib/python3/dist-packages/pyqtgraph/graphicsItems/LabelItem.py",
line 57, in setText
    color = fn.mkColor(color)
            ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pyqtgraph/functions.py", line 272, in
mkColor
    raise ValueError(f"Unable to convert {c} to QColor")
--------------------------------------------------------------------------------
Dioptas Version: 0.5.2

   * What was the outcome of this action?

The GUI should start. It does not.

   * Potential solution: upgrade to upstream Dioptas 0.5.5 or 0.5.7 as reported
in https://github.com/Dioptas/Dioptas/issues/133


-- 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 dioptas depends on:
ii  cython3             0.29.32-2+b1
ii  libc6               2.36-9+deb12u1
ii  libjs-jquery        3.6.1+dfsg+~3.5.14-1
ii  libjs-sphinxdoc     5.3.0-4
ii  libjs-underscore    1.13.4~dfsg+~1.11.4-3
ii  python3             3.11.2-1+b1
ii  python3-extra-data  1.7.0-5
ii  python3-fabio       0.14.0+dfsg-2+b2
ii  python3-future      0.18.2-6
ii  python3-h5py        3.7.0-8
ii  python3-lmfit       1.1.0-1
ii  python3-numpy       1:1.24.2-1
ii  python3-pycifrw     4.4.4-3+b1
ii  python3-pyepics     3.4.1+ds-3
ii  python3-pyfai       2023.5.0+dfsg1-9~bpo12+1
ii  python3-pyqtgraph   0.13.2-1
ii  python3-qtpy        2.3.0-1
ii  python3-scipy       1.10.1-2
ii  python3-skimage     0.19.3-8

dioptas recommends no packages.

dioptas suggests no packages.

-- no debconf information



More information about the Debian-pan-maintainers mailing list