Jan 20, 2020
#python
#macOS
#quit
#ansible
When running something depending on OpenSSL you may get something like this on macOS 10.15.2:
The output of the report:
To fix:
brew reinstall openssl Then:
cd /usr/local/lib sudo ln -s /usr/local/opt/openssl/lib/libssl.dylib libssl.dylib sudo ln -s /usr/local/opt/openssl/lib/libcrypto.dylib libcrypto.dylib
…
Nov 12, 2019
#python
#pip
#macos
#catalina
Reinstall openssl:
brew reinstall openssl And then:
export DYLD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$DYLD_LIBRARY_PATH Or create the link manually:
cd /usr/local/lib sudo ln -s /usr/local/opt/openssl/lib/libssl.dylib libssl.dylib sudo ln -s /usr/local/opt/openssl/lib/libcrypto.dylib libcrypto.dylib Reinstall python:
brew reinstall python Upgrade pip packages:
pip install -U --user $(pip freeze | awk -F'[=]' '{print $1}')
…
Jun 7, 2018
#python
#site-packages
To find the python site-packages paths:
$ python -m site
…
Mar 22, 2018
#python
#fork
#mac
In macOS High Sierra if getting this:
objc[55492]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. objc[55492]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug. Define:
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES This will fix temporally fix the problem and allow program to continue executing, more about this issue here: http://sealiesoftware.
…
Oct 27, 2016
#selenium
#scraper
#python
Webscraping using python + chrome In mac OS X, install chromedriver and selenium:
brew install chromedriver Install selenium via pip:
pip install -U selenium if required to install globally sudo pip install selenium
To test, open a terminal, type python and try:
Python 2.7.12 (default, Oct 11 2016, 05:20:59) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin Type "help", "copyright", "credits" or "license" for more information.
…