Python Catalina

2/13/2022by admin

$ xcrun python3 Python 3.7.3 (default, Sep 5 2019, 17:14:41) Clang 11.0.0 (clang-1100.0.33.8) on darwin. Maria Campbell provides a post on installing the latest version of Python on Mac OS Catalina and overriding the old default pre-installed version. And it even uses Homebrew and not some gnarly steps. I finally did it. I successfully installed Python version 3.7.7 via Homebrew on my Mac laptop with OS Catalina installed.

The sys.path variable. It's common for beginners to install the wrong interpreter package and ends up being unable to import the desired package. Sys.path is a list of strings that specifies the search path for modules, and it tells where the packages you installed (typically with pip) go. Problems using zsh with Catalina, Python/Python3, pip/pip3, PATH, zshrc, etc. I recently updated to Catalina and the default zsh. I probably messed up paths during the transition, and I'm currently trying to sort out the locations of Python3.7, pip3, the command-line PATH and my zshrc file. It looks as if there are potentially redundant files. I am running the examples provided by the PyQtGraph python graphic module, on a MacOS Catalina. They all work fine for me, except those in 3D. I have a message: Traceback (most recent call last).

Catalina python 3.7

A couple of days ago, I update my MacOS to Catalina and immediately after that, all the Snowflake scripts I wrote in #Python started returning an Abort trap: 6 error. My initial thought was something must be a compatibility issue with either the python connector or new default terminal shell zsh. Fortunately I was wrong, but here is what I found and how i was able to do get my Python scripts running again. –Oh Happy Days.

Why is this happening
The error seems to be related to Catalina not allowing un-versioned dylibs to be called. Let’s shortcut this by linking the un-versioned dylib files to those with versions. Here’s the fix that worked for me.

The Fix

Catalina python issues

Python Catalina Update

A google search led me here: https://forums.developer.apple.com/thread/119429

;tldr
From you terminal we need to run a few update using brew.

Catalina Python 3.8

Once the updates are complete, execute the following steps

Python

My more specific issue

More specifically for me, was ensuring the Snowflake Python Connector was functioning properly, so I also did a pip3 upgrade of that as well:

Python Catalina Download

After skipping several modules that didn’t need any updates, we got to the a few updates from some files that are associated with crypto:

“Successfully installed asn1crypto-1.2.0 oscrypto-1.1.0 snowflake-connector-python-2.0.3”

After this, all is well …. so far 😉

Hope this helps!

Comments are closed.