Menu

#202 QT support not fully decoupled from Tk support

v1.6.2.0
open
nobody
None
5
2018-03-29
2018-03-25
No

A build of pymol at svn r4187 against the py-pyqt5 package and tk uninstalled under MacPorts reveals that the use of Tk isn't fully disabled when Qt support is in use. When tk and its associated MacPort dependencies are uninstalled, the following errors appear in the terminal from which pymol was started....

No module named _tkinter
Unable to initialize plugin 'remote_pdb_load' (pmg_tk.startup.remote_pdb_load).
No module named _tkinter
Unable to initialize plugin 'apbs_tools' (pmg_tk.startup.apbs_tools).

and in the top portion of the pymol Qt display as

No module named _tkinter
Unable to initialize plugin 'apbs_tools' (pmg_tk.startup.apbs_tools).

Otherwise the pymol 2.1.0 release built against qt 5.10_0 works fine with all of the demos rendering properly on a MacPro 3,1 with HD2600 graphics.

Discussion

  • Jack Howarth

    Jack Howarth - 2018-03-25

    Note that I have posted initial packaging changes to the MacPorts pymol package for builds with either the X11 or PyQt support.

    https://trac.macports.org/ticket/56139

     
  • Jack Howarth

    Jack Howarth - 2018-03-26

    Just to clarify the situation with building pymol with PyQt support on MacPorts vs fink, currently only MacPorts will be able to produce a working pymol using the PyQt support. The issue appears to be that fink's glew package is built against the X11 libGL (which is a wrappered version providing additional X11 support to libGL) whereas the MacPorts glew package is built against the system libGL instead. Also, it is necessary to build pymol with the --osx-framworks option passed to setup.py to avoid mixing in X11 based libraries like freeglut and mesa to the build.

     
  • Thomas Holder

    Thomas Holder - 2018-03-29

    these plugins can be disabled in the Plugin Manager (Plugin > Plugin Manager > ... > [ ] Load on startup). After that no Tkinter errors should be raised.

     
    • Jack Howarth

      Jack Howarth - 2018-03-29

      I have managed to get the APBS plugin to work partially under a MacPorts build of pymol with the PyQT interface as long the tk and pmg components are installed. However,, while I can use the APBS plugin to generate electrostatic maps for a pdb file, when I try to display the electrostatic surface, pymol goes into an endless cycle of progress bars being displayed. Have you been able to get the APBS plugin to render surfaces when pymol is run under the PyQt interface?

       

      Last edit: Jack Howarth 2018-03-29
      • Thomas Holder

        Thomas Holder - 2018-04-10

        Showing surface with the legacy APBS plugin and PyQt PyMOL interface works for me on Linux.

        They way how pdb2pqr is imported is messy, that could ceratinly be improved.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.