Question: Pymol fails to run on Mac
gravatar for Reyhaneh
3.1 years ago by
United Kingdom
Reyhaneh480 wrote:



I have installed pymol on my Mac using:

brew install homebrew/science/pymol

when I try to run pymol I get the following error:

MP02s-iMac:$ pymol

Traceback (most recent call last):

  File "/usr/local/Cellar/pymol/", line 71, in <module>

    import pymol
  File "/usr/local/Cellar/pymol/", line 521, in <module>

    import pymol._cmd
ImportError: dlopen(/usr/local/Cellar/pymol/, 2): Library not loaded: /usr/local/lib/libGLEW.1.12.0.dylib

  Referenced from: /usr/local/Cellar/pymol/

 Reason: image not found


It seems I have two installation of python.

MPMAC02s-iMac:Downloads rey$ which python


MPMAC02s-iMac:Downloads rey$ type -a python
python is /usr/local/bin/python
python is /usr/bin/python


Do you know what might be causing the problem? Setting PYMOL_PATH didn't help either.



pymol python mac • 2.0k views
ADD COMMENTlink modified 3.1 years ago by Biostar ♦♦ 20 • written 3.1 years ago by Reyhaneh480

This commit is addressing this issue. I think it should be patched up already, run
brew update

brew doctor

ADD REPLYlink written 3.1 years ago by Sukhdeep Singh9.6k

I'm seeing a weird error as well - mine is with libpng, it's loading the wrong version even when I set the DYLIB_PATH variable. I'd suggest using EduPymol's DMG for Mac.

EDIT: Solution found - I just needed to update XQuartz. XQuartz is X11 - I had no idea that was the case. If brew doctor had been telling me X11 needed an update (instead of XQuartz needs an update), I'd have done it immediately.

ADD REPLYlink modified 3.1 years ago • written 3.1 years ago by RamRS20k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1138 users visited in the last hour