[mcstas-users] qt problems using wsl ubuntu 24.04.1

Peter Kjær Willendrup pkwi at dtu.dk
Tue Mar 31 12:51:54 CEST 2026


Hi Rob,

Very sorry to have completely overlooked your message from last summer!

On Thu Jul 31 12:30:40 CEST 2025 Robert Dalgliesh - STFC UKRI robert.dalgliesh at stfc.ac.uk wrote:

I have been running the Debian/ubuntu install of mcstas fine using 22.04.5 with the windows subsystem for linux.

Everything works very smoothly.

Unfortunately, if I install under the newer ubuntu 24.04.1 from a completely clean system a qt error occurs that prevents popup windows from the insert menu being opened by the main application.

Traceback (most recent call last):
  File "/usr/share/mcstas/tools/Python/mcgui/viewclasses.py", line 404, in handle
    self.cb(self.comp_parser)
  File "/usr/share/mcstas/tools/Python/mcgui/viewclasses.py", line 463, in __handleComponentClicked
    dlg = McInsertComponentDialog()
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/mcstas/tools/Python/mcgui/viewclasses.py", line 912, in __init__
    self.ui.setupUi(self)
  File "/usr/share/mcstas/tools/Python/mcgui/widgets.py", line 737, in setupUi
    self.edtAtRel.setLayoutDirection(QtCore.Qt.LeftToRight)
                                     ^^^^^^^^^^^^^^^^^^^^^

I’ve tried this on a couple of different PCs and see the same error.
Removing the lines with setLayoutDirection(QtCore.Qt.LeftToRight) from widgets.py and relying on the default layout seems to work.

Presumably the change to qt6 has caused a problem but I’ve not been able to figure out what the change is.

Yes indeed there was a PyQt6 oriented issue back then that I believe / hope I have since managed to fix on Debian?

(There is now a similar issue on conda-forge that for the foreseeable future will block us from using qscintilla2 for the built-in editor… Seems this is hitting Mantid also…)

Best,
Peter



Peter Kjær Willendrup
Forskningsingeniør, Specialkonsulent

DTU Physics

[image001.gif]


Technical University of Denmark


[image002.gif]


Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby

Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby

Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20260331/601c5ad6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20260331/601c5ad6/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20260331/601c5ad6/attachment-0003.gif>


More information about the mcstas-users mailing list