# Problems installing ObsPy

**URL:** <https://discourse.obspy.org/t/problems-installing-obspy/807>\
**Category:** Users Mailing List Archive\
**Tags:** archive\
**Created:** [October 29, 2018, 11:53am UTC](https://discourse.obspy.org/t/problems-installing-obspy/807 "2018-10-29T11:53:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joao\_Fontiela](https://discourse.obspy.org/user_avatar/discourse.obspy.org/joao_fontiela/32/306_2.png) [@Joao\_Fontiela](https://discourse.obspy.org/u/Joao_Fontiela)\
**Post date:** [October 29, 2018, 11:53am UTC](https://discourse.obspy.org/t/problems-installing-obspy/807/1 "2018-10-29T11:53:25Z")

</div>

At some time I’m struggling to install ObsPy for python 2.7 using Anaconda on OsX. The install seems ok, the problem is when I run obspy-runtests, I obtain a bunch of errors and at the end report is frustrating: FAILED (failures=49, errors=18). After I tried several things, in desperate I uninstall ObsPy and install with pip and ran the tests. The failures and errors number decrease (failures=16, errors=2) but it is not enough to pass. Bellow are the test results.

I wondering if someone can give some tips to make ObsPy work.

Yours,  
João Fontiela

Running /Users/joaofontiela/anaconda2/lib/python2.7/site-packages/obspy/scripts/runtests.pyc, ObsPy version ‘1.1.0’

---

<div class="post-metadata">

**Author:** ![LionKrischer](https://discourse.obspy.org/user_avatar/discourse.obspy.org/lionkrischer/32/219_2.png) [@LionKrischer](https://discourse.obspy.org/u/LionKrischer)\
**Post date:** [October 30, 2018, 11:28am UTC](https://discourse.obspy.org/t/problems-installing-obspy/807/2 "2018-10-30T11:28:29Z")

</div>

Hi Joao,

most of the issue you have reported have already been fixed in the development version on github. We’re just a bit slow in releasing a new ObsPy version…

They are mainly related to changes in how numpy prints arrays.

The `from obspy.core.compatibility import mock` problem might be caused by the `mock` package not being installed on your system. It is built into Python with versions \>= 3.3 but it should also be installed with the ObsPy conda package. Running `pip install mock` might fix it for you - otherwise we might have to dig a bit deeper. Please hop into our chatroom () in case you need help.

Last but not least: If you don’t have a very specific reason to use Python 2, please go to Python 3. Python 2 will be end of life very soon.

All the best,

Lion
