Dear Hyeuk,
the OpenQuake macOS self-installer is not designed for Anaconda, but for the standard Python provided by Apple: https://github.com/gem/oq-engine/blob/engine-2.1/doc/installing/macos.md#installing-the-openquake-engine-on-macos
We'll add a check to abort the installation if the wrong python
is used (another user just reported the same issue).
You can either:
conda install Cython mock h5py nose numpy scipy psutil shapely decorator futures django==1.8 requests
but there's one more dependency that is not available in anaconda an must be installed via pip
pip install pyshp
Then you can install oq-hazardlib and oq-engine
pip install
https://github.com/gem/oq-hazardlib/archive/master.zip
pip install
https://github.com/gem/oq-engine/archive/master.zip
Please note that this installation is not officially supported nor tested by our Continuous Integration system: it should work, but some calculations may fail and numbers may be slight different.
Best regards,
Daniele
--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dear Hyeuk,
it seems to me that you have installed oq-hazardlib (using pip I guess) but you are using oq-engine from sources. This is is causing troubles with the imports. If you need to work with sources you should do this instead:
Remove the installed oq-hazardlib first
- pip uninstall openquake.hazardlib
Make a development installation of both oq-hazardlib and oq-engine
- cd ~/openquake/src
- pip install -e ~/openquake/src/oq-hazardlib
- pip install -e ~/openquake/src/oq-engine
Do not forget '-e' in the pip command, is what makes the
difference. '-e' does not make a real installation, but it links
the sources to the python path.
Cheers,
Daniele
(openquake) ~/anaconda2/envs/openquake/lib/python2.7/site-packages/openquake$ conda list
# packages in environment at /Users/hyeuk/anaconda2/envs/openquake:
#
cython 0.25.1 py27_0
decorator 4.0.10 py27_0
django 1.8.4 py27_0
docutils 0.12 py27_2
funcsigs 1.0.2 py27_0
futures 3.0.5 py27_0
geos 3.3.3 0
h5py 2.5.0 np110py27_3
hdf5 1.8.15.1 2
mkl 11.3.1 0
mock 2.0.0 py27_0
nose 1.3.7 py27_1
numpy 1.10.2 py27_0
openquake.engine 2.2.0 <pip>
openquake.hazardlib 0.11.0 <pip>
openquake.hazardlib 0.22.0 <pip>
openssl 1.0.2h 1
pbr 1.10.0 py27_0
pip 8.1.2 py27_0
psutil 4.4.2 py27_0
pyshp 1.2.3 <pip>
python 2.7.12 1
readline 6.2 2
requests 2.11.1 py27_0
scipy 0.16.1 np110py27_1
setuptools 25.1.6 py27_0
shapely 1.5.11 py27_0
six 1.10.0 py27_0
sqlite 3.13.0 0
tk 8.5.18 0
wheel 0.29.0 py27_0
zlib 1.2.8 3
Dear Hyeuk,
on Mac, with Engine 2.1, you could expect a bunch of failed tests (less than 5, which are platform-specific), but not as many as 32.
Could you please send us the output from the nose command?
nosetests -v -a '!slow' openquake 2>&1 | tee nose-out.txt
This command will print the log on screen and save it to nose-out.txt
Current master should pass all the tests since the
platform-specific ones have been fixed/skipped in a pull requested
that entered master just this morning.
Best regards,
Daniele
Here is the output of the test.
Dear Hyeuk,
many thanks for your contribution! I see you've been also able to install rtree.
We'll add your work to our community contributed documentation on GitHub.
Maybe in the future Anaconda will be part of the official supported way of installing the OpenQuake Engine: for now we are not going do that because we need to make sure that numbers are ok across all the releases/platforms where Anaconda is supported and unfortunately today we do not have enough resources to add new officially supported platforms.
Best,
Daniele
--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.