macOS Catalina Python Issues – Continuous Crashing After Update

catalinacrashpython

During my regular development tasks, there is no problem with python. I can activate my virtual environments, interpreter and keep on development with no error whatsoever.

However, randomly MacOS pops up "Problem Report for Python" dialog. This is started after I've upgrade to 10.15 Catalina.

I have no idea how to fix it since everything related python is working correctly as far as I can see.

Here is full log message. Any help is appreciated.

Best Answer

This was happening to me. I had a cron entry that was running a python3 script in virtual env.

check your crontab for anything running python. crontab -l

Install openssl with brew. brew install openssl.

Then for any script you find in your crontab, make sure it has the openssl lib paths first in the LD_LIBRARY path. Add this to either the shell script that starts your python script or to your ~/.bashrc file

export DYLD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$DYLD_LIBRARY_PATH