Orange app can't find MySQLdb. How do I install it?

I've installed the Orange app on my Mac and when I try a "Prototypes > SQL" widget, I get an error when executing the query. It says the MySQLdb Python library is not found/installed.

How do I go about installing it so that the Orange app can find it?

Answers


Using pip:

pip install MySQL-python

This may not be the optimal approach in terms of system paths and such, but it works.

Find where you installed Orange. If in the OS's Applications directory, it is: /Applications/Orange.app

Try this at the console:

cd <your_Orange_app>/Contents/Frameworks/Python.framework/Resources/Python.app/Contents/MacOS/

./Python <your_Orange_app>/Contents/Frameworks/Python.framework/Versions/2.7/bin/pip install MySQL-python

This just executes "pip install MySQL-python" but with the relevant python and the relevant pip.

Another approach might be to edit the <your_Orange_app>/Contents/MacOS/ENV file and specify the path to an existing installation of the MySQLdb lib.


Need Your Help

Why is twitter bootstrap carousel class "slide" unknown in bootsrap 3

html css twitter-bootstrap

I have downloaded the twitter bootsrap carousel example. I noticed that when I navigate the slide nothing happens and in my view the "slide" class from the bootstrap.css version 3 is unknown.

onTaskRemoved called after onCreate in started service on swipe-out from recent app list

android android-service kill-process

I have a service started from an Activity, the service is running fine onCreate, onStartCommand called properly. In settings-->running app its showing 1 process and 1 service.