[MSNoise] New install failing mnsoise test
Thomas Lecocq
Thomas.Lecocq at seismology.be
Tue Oct 13 05:27:03 UTC 2020
Dear,
It is a known issue and I'm preparing a fix this week. Until then you
have to downgrade your pandas package to a previous version where such
indexing was accepted, I think version 0.15 or sismilar should be OK.
Thomas
Le 12/10/2020 à 16:56, Kevin Davidson a écrit :
> Hello, I am getting the following error when running 'msnoise test' after
> following the installation documentation.
>
> This is on Windows 10, using Python 3.7 via Anaconda.
>
> Any suggestions as to how to fix welcome, thanks!
>
>
> ======================================================================
> ERROR: test_025_dtt (msnoise.test.tests.MSNoiseTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "d:\applications\anaconda\envs\msnoise\lib\site-packages\pandas\core\series.py",
> line 1000, in __setitem__
> self._set_with_engine(key, value)
> File
> "d:\applications\anaconda\envs\msnoise\lib\site-packages\pandas\core\series.py",
> line 1033, in _set_with_engine
> loc = self.index._engine.get_loc(key)
> File "pandas\_libs\index.pyx", line 70, in
> pandas._libs.index.IndexEngine.get_loc
> File "pandas\_libs\index.pyx", line 75, in
> pandas._libs.index.IndexEngine.get_loc
> TypeError: '[ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 23 31 32 33 34
> 35 36 37 38
> 39 40 41 42 43 44 45 46]' is an invalid key
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File
> "d:\applications\anaconda\envs\msnoise\lib\site-packages\msnoise\test\tests.py",
> line 312, in test_025_dtt
> main()
> File
> "d:\applications\anaconda\envs\msnoise\lib\site-packages\msnoise\s06compute_dtt.py",
> line 231, in main
> df['err'][tmp] = 1.0
> File
> "d:\applications\anaconda\envs\msnoise\lib\site-packages\pandas\core\series.py",
> line 1026, in __setitem__
> self._set_with(key, value)
> File
> "d:\applications\anaconda\envs\msnoise\lib\site-packages\pandas\core\series.py",
> line 1061, in _set_with
> self.loc[key] = value
> File
> "d:\applications\anaconda\envs\msnoise\lib\site-packages\pandas\core\indexing.py",
> line 666, in __setitem__
> indexer = self._get_setitem_indexer(key)
> File
> "d:\applications\anaconda\envs\msnoise\lib\site-packages\pandas\core\indexing.py",
> line 617, in _get_setitem_indexer
> return self._convert_to_indexer(key, axis=0, is_setter=True)
> File
> "d:\applications\anaconda\envs\msnoise\lib\site-packages\pandas\core\indexing.py",
> line 1198, in _convert_to_indexer
> return self._get_listlike_indexer(key, axis, raise_missing=True)[1]
> File
> "d:\applications\anaconda\envs\msnoise\lib\site-packages\pandas\core\indexing.py",
> line 1254, in _get_listlike_indexer
> self._validate_read_indexer(keyarr, indexer, axis,
> raise_missing=raise_missing)
> File
> "d:\applications\anaconda\envs\msnoise\lib\site-packages\pandas\core\indexing.py",
> line 1304, in _validate_read_indexer
> raise KeyError(f"{not_found} not in index")
> KeyError: '[1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 23, 31, 32, 33, 34, 36,
> 37, 38, 39, 41, 42, 43, 44, 46] not in index'
>
> ----------------------------------------------------------------------
> Ran 52 tests in 128.839s
>
> FAILED (errors=1)
>
> Bugreport:
>
> ************* Computer Report *************
> ----------------+PYTHON+-------------------
> Python:3.7.8 | packaged by conda-forge | (default, Jul 31 2020, 01:53:57)
> [MSC v.1916 64 bit (AMD64)]
>
> This script is at
> d:\applications\anaconda\envs\msnoise\lib\site-packages\msnoise\bugreport.py
>
> ---------------+MODULES+-------------------
>
> Required:
> [X] setuptools: 49.6.0.post20201009
> [X] numpy: 1.19.2
> [X] scipy: 1.2.1
> [X] pandas: 1.1.3
> [X] matplotlib: 3.3.2
> [X] sqlalchemy: 1.3.19
> [X] obspy: 1.2.2
> [X] click: 7.1.2
> [X] pymysql: 0.10.1
> [X] flask: 1.1.2
> [X] flask_admin: 1.5.6
> [X] markdown: 3.3
> [X] wtforms: 2.3.2
> [X] folium: 0.11.0
> [X] jinja2: 2.11.2
>
> Only necessary if you plan to build the doc locally:
> [ ] sphinx: not found
> [ ] sphinx_bootstrap_theme: not found
>
> Graphical Backends: (at least one is required)
> [ ] wx: not found
> [ ] pyqt: not found
> [ ] PyQt4: not found
> [X] PyQt5: present (no version)
> [ ] PySide: not found
>
> Not required, just checking:
> [X] json: 2.0.9
> [ ] psutil: not found
> [ ] reportlab: not found
> [ ] configobj: not found
> [X] pkg_resources: present (no version)
> [ ] paramiko: not found
> [X] ctypes: 1.1.0
> [X] pyparsing: 2.4.7
> [X] distutils: 3.7.8
> [ ] IPython: not found
> [ ] vtk: not found
> [ ] enable: not found
> [ ] traitsui: not found
> [ ] traits: not found
> [ ] scikits.samplerate: not found
>
>
More information about the MSNoise
mailing list