Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
farhi opened this issue Aug 10, 2023 · 0 comments

Comments

@farhi
Copy link

farhi commented Aug 10, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant