Skip to Main Content
Mobile Menu

Obspy and the Eclipse IDE

Obspy and the Eclipse IDE

I have been wanting to use OBSPY for a while now to process passive seismic data. This post details how to get obspy up and running with the ECLIPSE IDE on a mac. Eclipse is a nice IDE, but it does not have Ipython capabilities like Enthought’s Canopy. See this post for more on using obspy with canopy.


1) You need to install the dependencies for obspy. I did this using an academic license from Enthought. But you can do this a variety of ways. See the obspy site for different ways.


2) Get the obspy package using GIT. You may need to install GIT on your mac first. It’s version control system like SVN. In the command line type:

git clone /path/to/my/obspy


3)In the command line type:

sudo /path/to/my/python develop -N -U –verbose


3a) (you can also make executable and run: sudo ./ develop -N -U –verbose)

4) Install eclipse from the download page.

5) Once eclipse is installed you need to add the python development environment PyDev. The easiest way is to use the tab: Help –> Install New Sotfware.

Click ‘Add’ on the right side of the ‘Work with:’ option. Type:

Name: PyDev


Check the box for PyDev. Do not worry about checking the box for PyDev Mylin. Click ‘Next’ at the bottom of the page.

6) Now you need to tell PyDev which python to use (needs to be version 2.7 for obspy). Under ‘Preferences’ in eclipse, expand ‘PyDev’ and then click on ‘Interpreter – Python’. Under ‘Python interperters’ click ‘New’. Type:

Name: Python 2.7

Excutable: /usr/bin/python (or /your/path/to/python2.7 on your machine)

In the next window, make sure to click the ‘/git/obspy’ and ‘site-packages’ libraries, along with the default libraries.

7) You should now be able to use the obspy modules and run the obspy tutorials.

Example of running the first obspy tutorial example.

Example of running the first obspy tutorial example.

This entry was posted in ESLab's desktop. Bookmark the permalink.
Leave a reply