Version 1 (modified by ales, 2 years ago) (diff)

Scripting Using Orange from the .dmg Install

It is possible to use Orange from the .dmg install on OSX for scripting without needing to install fink or build Orange from source yourself.

The easiest way is to use the python interpreter that comes bundled with it. Just run


from the terminal (assuming you installed Orange in /Applications directory). There is also an IPython shell script available in the same directory.

A somewhat more cumbersome way is to use Orange from the system python interpreter (/usr/bin/python) by setting the appropriate PYTHONPATH environment variable to /Applications/ before running it. You will also need to run the interpereter in 32-bit mode (64 is the default) because the Orange libraries in the dmg are built for 32 bit architecture only. This can be done by setting the VERSIONER_PYTHON_PREFER_32_BIT evnironment variable to yes.

export PYTHONPATH=/Applications/

Note that the Orange libraries are 32 bit, so you will also need to run python in 32bit mode. Do this with