Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e519aa8555
Fetching contributors…

Cannot retrieve contributors at this time

142 lines (95 sloc) 3.575 kb
OpenQuake System
Until we get this updated, you should please follow the instructions here for installation:
For the most part the Python packages in here can be installed using `pip`
(python-pip on ubuntu) or your favorite package manager.
* libxslt-dev
* gfortran
* python-numpy
* python-scipy
Is it recommended that you install the following Python packages with
easy_install (
* matplotlib
On OS X a good way to install the pieces that are not Python (if you don't
already use MacPorts or Fink) is called homebrew:
* gdal
* Brew install gdal itself, then
* sudo pip install gdal (FAILS, so):
* Use the package from
* osgeo (pip install)
* jpype
* lxml
* python-gflags
* RabbitMQ (Installed using brew install rabbitmq)
* SciPy
* You will need gfortran, for os x that is at:
* After that `pip install scipy` should work.
* If it doesn't and there is an error about ppc64... well it is more complex,
see Troubleshooting
* Shapely
* requires geos (c library, also called libgeos)
* Sphinx (for building documentation only)
* Guppy (
* Redis 2.x or greater (
You'll need to mess with PYTHONPATH (in your .bash_profile file), or add a .pth file, both for gdal and for openquake itself.
To get RabbitMQ set up, execute the following:
sudo rabbitmq-server &
sudo rabbitmqctl add_user celeryuser celery
sudo rabbitmqctl add_vhost celeryvhost
sudo rabbitmqctl set_permissions -p celeryvhost celeryuser ".*" ".*" ".*"
(Feel free to customize these settings and update
Running Tests
To run the python tests use:
celeryd &
To run the java tests use:
Running Demos
To run the command-line demo:
./ --debug
Tools / Services
* git
* git-cl (
git clone git://
ln -s /path/to/git-cl/git-cl /usr/bin/git-cl
ln -s /path/to/git-cl/ /usr/bin/
* GitHub (
* Rietveld ( - requires a google account
* PivotalTracker (
SciPy can be a real pain to install on OS X. These steps should work if the
procedure mentioned above does not.
Make sure you have installed numpy >= 1.4, if you have installed GDAL you
might have an older version of numpy that may be loaded by Python before your
new installation on numpy. To resolve this, change the python module loading
order by editing /Python/2.6/site-packages/gdal.pth
import sys; sys.path.insert(0,'/Library/Frameworks/GDAL.framework/Versions/1.7/
import sys; sys.path.append('/Library/Frameworks/GDAL.framework/Versions/1.7/
svn co numpy
svn co scipy
cd numpy
# edit and find the word "ppc64" and remove it from the array
vim numpy/distutils/fcompiler/
python build
sudo python install
cd ../scipy
python build
sudo python install
Jump to Line
Something went wrong with that request. Please try again.