Closed KrisJanssen closed 1 month ago
I experimented with PySide6 and also ran into the setSuffix
issue. This commit works around the issue: https://github.com/speleo3/pymol-open-source/commit/5eb6de645aced9d0419b6eb9c686d55fc4dbf869
Thanks for the update and the commit! I will be sure to give that a go later today and comment on findings.
Sorry for addressing this late, but both setSuffix
(996b70185f3fb97e7d7335f1a70a712b2c99b878) issue and pyside2-uic
(06c72143d2058ad5a856d4743edcf1f54d932598) should be addressed now.
Feel free to reopen if the problem(s) persist.
Our users of pymol-oss indicated preferring the single window style of Qt5/Pyside builds of pymol as opposed to the multi-window style you get with build option --glut.
Similarly, the draw/render menu behavies differently, users again preferring the Qt5/Pyside flavor:
To this end, when trying to build PyMol for internal use on RHEL7 and 8, we use following process:
Clone and build
on RHEL8, python is 3.6.8 OOTB
Note we explicitly need to set PySide==5.13.2 if we do not do this, we hit issues with Module pyside2 not being found and following code failing:
https://github.com/schrodinger/pymol-open-source/blob/a610ff1f38284594c595c02bf2899586ee4fc506/modules/pymol/Qt/utils.py#L288
Here, following code edit restores functionality (i.e. replace the uic call to pyside2-uic):
https://github.com/schrodinger/pymol-open-source/blob/a610ff1f38284594c595c02bf2899586ee4fc506/modules/pmg_qt/forms/render.ui#L67C12-L67C32
The only issue which then remains is an error about the argument to setSuffix being passed as
int
whilestring
is expected for these UI elements (there are 2):Oddly, the Pyside2 converted render.ui seems OK:
Any idea how this could be addressed such that pymol can be built with more recent versions of python and dependencies?