# Pygplates dylib error

**URL:** https://discourse.gplates.org/t/pygplates-dylib-error/169
**Category:** Q&A
**Created:** [21 August 2020 14:27 UTC](https://discourse.gplates.org/t/pygplates-dylib-error/169 "2020-08-21T14:27:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![amforte](https://discourse.gplates.org/letter_avatar_proxy/v4/letter/a/e0b2c6/32.png) [@amforte](https://discourse.gplates.org/u/amforte)
#### Post date: [21 August 2020 14:27 UTC](https://discourse.gplates.org/t/pygplates-dylib-error/169/1 "2020-08-21T14:27:10Z")

</div>

I’m trying to get pygplates running and have tried both the python 2.7 and python 3.8 versions (within conda environments running the correct python version respectively) but when I attempt to import pygplates in either a script or just from a python prompt, I get the following error:

ImportError: dlopen(pygplates\_rev28\_python27\_MacOS64/pygplates.so, 2): Symbol not found: \_objc\_opt\_class  
Referenced from: pygplates\_rev28\_python27\_MacOS64/QtCore (which was built for Mac OS X 10.15)  
Expected in: /usr/lib/libobjc.A.dylib  
in pygplates\_rev28\_python27\_MacOS64/QtCore

I’m running MacOS 10.14.6, and it seems like maybe the error is indicating that it’s expecting 10.15, but I thought the documentation indicated anything greater than 10.9 should work? Any help would be appreciated (and this is my first time trying to use pygplates, so I’m not 100% sure this isn’t something screwed up on my end).

---

<div class="post-metadata">

### Author: ![john.cannon](https://discourse.gplates.org/letter_avatar_proxy/v4/letter/j/3e96dc/32.png) [@john.cannon](https://discourse.gplates.org/u/john.cannon)
#### Post date: [21 August 2020 15:44 UTC](https://discourse.gplates.org/t/pygplates-dylib-error/169/2 "2020-08-21T15:44:45Z")

</div>

Hi amforte,

Thanks for reporting that. It looks like, even though we build pyGPlates for 10.9+, the dependency libraries (in this case Qt) are built for 10.15 (ie, my version of macOS). I guess we haven’t noticed it internally since we are probably all using macOS 10.15 (Catalina).

I’m currently using Macports, which builds the dependencies from source, so I’ll look into rebuilding Macports with `macosx_deployment_target` configured for 10.9 and send you another pyGPlates for testing. Apparently not all ports honour that setting (or have problems with it), and it’s not documented for that reason, so I’ll see how that goes.

Worse comes to worse we’ll set up a machine (or VM) with macOS 10.9 and build with that. Then it should run on 10.9 and above.

Regards,  
John

---

<div class="post-metadata">

### Author: ![john.cannon](https://discourse.gplates.org/letter_avatar_proxy/v4/letter/j/3e96dc/32.png) [@john.cannon](https://discourse.gplates.org/u/john.cannon)
#### Post date: [25 August 2020 06:16 UTC](https://discourse.gplates.org/t/pygplates-dylib-error/169/3 "2020-08-25T06:16:56Z")

</div>

For others reading this, please note that this has been resolved by the new macOS builds (although there are still some warnings related to `libQt5Core` when used in Anaconda, that we’ll look into resolving for the next release, but they don’t appear to be showstoppers)…

> [@PyGPlates supports Python 3](https://discourse.gplates.org/t/pygplates-supports-python-3/165/2):
>
> Please note that we’ve uploaded new [macOS builds](https://sourceforge.net/projects/gplates/files/pygplates/beta-revision-28/). The previous ones only supported macOS 10.15+ (Catalina). The new ones support 10.13+ (High Sierra, Mojave, Catalina, and any upcoming macOS release). Also note that you may get the following message when loading/saving OGR files (eg, Shapefiles) with pyGPlates (although if you happen to have the PROJ library installed on your system then you might not): ERROR 1: PROJ: proj\_identify: Cannot find proj.db ERROR 1: PROJ: proj\_create\_from\_database:…
