Skip to content

BUG: Debian bookworm/Ubuntu 22/23: AttributeError: type object 'Qt' has no attribute 'DashLine' #5

Description

@farhi

Hi,
it seems this code, which did run OK on debian bullseye/Ubuntu20/22, is now broken. Indeed, PySide2 calls the Qt6 API which as recently changed its API.

  • jupyter-notebook /usr/share/pyimagetool/examples/ExampleNotebook.ipynb

This brings an error:

File /usr/lib/python3/dist-packages/pyimagetool/PGImageTool.py:24, in PGImageTool()
     22 index_to_coord: List[str] = ['x', 'y', 'z', 't']
     23 frame_rate = 60
---> 24 bin_pen = pg.mkPen(style=pg.Qt.QtCore.Qt.DashLine)
     26 mouse_hover = QtCore.Signal(str)  # event fired when the mouse moves on an image
     28 def __init__(self, data: RegularDataArray, parent=None, layout=0):

AttributeError: type object 'Qt' has no attribute 'DashLine'

In case you still maintain this code, is there a hope to adapt it to recent QT API's ?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions