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

Replacing part of std::vector by smaller std::vector

c++11 vector replace stdvector

I wonder what would be the correct way to replace (overwriting) a part of a given std::vector "input" by another, smaller std::vector?

Simplifying a Java if statement

java if-statement

I want some help converting this Java code to an if/else statement.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.