Installation Troubleshooting - CellProfiler/CellProfiler GitHub Wiki

The instructions below apply to CellProfiler 3.1.9 and earlier versions. Instructions for CellProfiler 4.0 installation will be added shortly for all compatible platforms. Please check out the image.sc forum or our Github issues (and submit new issues as needed) if these instructions fail to work for you.

MySQL could not be loaded

Reported in 2529.

Error

$ pythonw CellProfiler.py
MySQL could not be loaded.
Traceback (most recent call last):
  File "/cellprofiler/modules/exporttodatabase.py", line 75, in <module>
    import MySQLdb
  File "build/bdist.macosx-10.5-x86_64/egg/MySQLdb/__init__.py", line 19, in <module>
  File "build/bdist.macosx-10.5-x86_64/egg/_mysql.py", line 7, in <module>
  File "build/bdist.macosx-10.5-x86_64/egg/_mysql.py", line 6, in __bootstrap__
ImportError: dlopen(/Users/*****/Library/Caches/Python-Eggs/MySQL_python-1.2.5-py2.7-macosx-10.5-x86_64.egg-tmp/_mysql.so, 2): Library not loaded: libssl.1.0.0.dylib
  Referenced from: /Users/*****/Library/Caches/Python-Eggs/MySQL_python-1.2.5-py2.7-macosx-10.5-x86_64.egg-tmp/_mysql.so
  Reason: image not found

System

OS X 10.5 managed by Homebrew. Installation from source using conda.

Resolution

Openssl with El Capitan

brew install --upgrade openssl
brew unlink openssl && brew link --overwrite openssl --force
ln -s /usr/local/Cellar/openssl/{VERSION}/include/openssl /usr/local/include/openssl

WX Python

  1. http://stackoverflow.com/a/27436070
⚠️ **GitHub.com Fallback** ⚠️