#156140 Report by node cursor covering 1919 tests from 60 modules resulted into 164 errors
Report
- ObsPy version
- 166e92c489.post0+dirty
- GitHub Pull Request
- -
- Report file
- JSON document
- Total runtime
- 61.7 sec
- Report date/time
- April 8, 2026, 4:29 a.m.
System / Python
- Architecture
- 64bit
- Machine
- x86_64
- Node
- cursor
- Processor
- x86_64
- Python Compiler
- GCC 13.3.0
- Python Implementation
- CPython
- Python Version
- 3.13.7
- Release
- 6.12.58+
- System
- Linux
- Version
- #1 SMP PREEMPT_DYNAMIC Sat Jan 17 06:53:48 UTC 2026
Dependencies
- cartopy
- 0.25.0
- decorator
- 5.2.1
- flake8
- 7.3.0
- geographiclib
- 2.1
- lxml
- 6.0.2
- matplotlib
- 3.9.4
- numpy
- 2.4.4
- obspy
- 166e92c489.post0+dirty
- pyproj
- 3.7.2
- pytest
- 9.0.3
- pytest-json-report
- 1.5.0
- requests
- 2.33.1
- scipy
- 1.17.1
- setuptools
- 81.0.0
- shapefile
- ---
- sqlalchemy
- 2.0.49
Modules (60)
| Module | Errors / Failures | Tracebacks | ||||
|---|---|---|---|---|---|---|
| obspy.clients.earthworm | Not tested | - | - | - | - | - |
| obspy.clients.fdsn | - | 13 | 13 | - | 0.02s | - |
| obspy.clients.filesystem | 9 | 24 | 24 | - | 0.10s | 1 2 3 4 5 6 7 8 9 |
| obspy.clients.iris | Not tested | - | - | - | - | - |
| obspy.clients.neic | Not tested | - | - | - | - | - |
| obspy.clients.nrl | Not tested | - | - | - | - | - |
| obspy.clients.seedlink | Not tested | - | - | - | - | - |
| obspy.clients.seishub | Not tested | - | - | - | - | - |
| obspy.clients.syngine | Not tested | - | - | - | - | - |
| obspy.core | 32 | 596 | 595 | 1 | 22.98s | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
| obspy.core.event | - | 18 | 18 | - | 0.13s | - |
| obspy.core.inventory | - | 23 | 23 | - | 0.79s | - |
| obspy.core.util | 1 | 23 | 20 | 3 | 0.09s | 42 |
| obspy.db | Not tested | - | - | - | - | - |
| obspy.geodetics | - | 21 | 20 | 1 | 0.07s | - |
| obspy.imaging | 17 | 89 | 88 | 1 | 10.50s | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
| obspy.io.ah | Not tested | - | - | - | - | - |
| obspy.io.arclink | - | 5 | 5 | - | 0.89s | - |
| obspy.io.ascii | 6 | 28 | 26 | 2 | 0.06s | 60 61 62 63 64 65 |
| obspy.io.cmtsolution | - | 10 | 10 | - | 0.03s | - |
| obspy.io.cnv | - | 1 | 1 | - | 0.01s | - |
| obspy.io.css | - | 10 | 10 | - | 0.09s | - |
| obspy.io.dmx | 4 | 5 | 5 | - | 0.01s | 66 67 68 69 |
| obspy.io.focmec | - | 8 | 8 | - | 0.04s | - |
| obspy.io.gcf | 6 | 9 | 9 | - | 0.02s | 70 71 72 73 74 75 |
| obspy.io.gse2 | - | 55 | 55 | - | 0.23s | - |
| obspy.io.hypodd | - | 9 | 9 | - | 0.08s | - |
| obspy.io.iaspei | - | 7 | 7 | - | 0.30s | - |
| obspy.io.json | - | 4 | 4 | - | 0.02s | - |
| obspy.io.kinemetrics | 3 | 8 | 8 | - | 0.13s | 76 77 78 |
| obspy.io.kml | - | 3 | 3 | - | 0.07s | - |
| obspy.io.mseed | 4 | 127 | 127 | - | 0.88s | 79 80 81 82 |
| obspy.io.ndk | - | 20 | 20 | - | 0.16s | - |
| obspy.io.nied | 5 | 11 | 11 | - | 0.03s | 83 84 85 86 87 |
| obspy.io.nlloc | - | 13 | 13 | - | 0.11s | - |
| obspy.io.nordic | - | 60 | 58 | 2 | 0.76s | - |
| obspy.io.pdas | 1 | 3 | 3 | - | 0.01s | 88 |
| obspy.io.pde | - | 13 | 12 | 1 | 0.13s | - |
| obspy.io.quakeml | - | 38 | 37 | 1 | 0.25s | - |
| obspy.io.reftek | 19 | 21 | 21 | - | 0.03s | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
| obspy.io.rg16 | 2 | 38 | 38 | - | 0.05s | 108 109 |
| obspy.io.sac | 11 | 96 | 96 | - | 0.29s | 110 111 112 113 114 115 116 117 118 119 120 |
| obspy.io.scardec | 3 | 5 | 5 | - | 0.02s | 121 122 123 |
| obspy.io.seg2 | - | 2 | 2 | - | 0.01s | - |
| obspy.io.segy | - | 56 | 56 | - | 0.24s | - |
| obspy.io.seisan | - | 8 | 7 | 1 | 0.04s | - |
| obspy.io.seiscomp | - | 49 | 49 | - | 0.87s | - |
| obspy.io.sh | - | 26 | 24 | 2 | 0.20s | - |
| obspy.io.shapefile | 6 | 7 | 7 | - | 0.21s | 124 125 126 127 128 129 |
| obspy.io.stationtxt | - | 11 | 11 | - | 0.05s | - |
| obspy.io.stationxml | - | 23 | 23 | - | 0.29s | - |
| obspy.io.wav | - | 8 | 7 | 1 | 0.04s | - |
| obspy.io.win | - | 2 | 2 | - | 0.07s | - |
| obspy.io.xseed | - | 82 | 82 | - | 3.57s | - |
| obspy.io.y | - | 5 | 4 | 1 | 0.01s | - |
| obspy.io.zmap | - | 14 | 14 | - | 0.11s | - |
| obspy.realtime | 13 | 22 | 22 | - | 0.05s | 130 131 132 133 134 135 136 137 138 139 140 141 142 |
| obspy.scripts | - | 2 | 2 | - | 0.01s | - |
| obspy.signal | 22 | 188 | 186 | 2 | 9.67s | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
| obspy.taup | Not tested | - | - | - | - | - |
| Summary | 164 | 1919 | 1900 | 19 | 61.74s | 164 |
Tracebacks (164)
Traceback (most recent call last): File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1547, in _fetch_index_rows sa.select([ ~~~~~~~~~^^ sa.literal(a).label("network"), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<8 lines>... sa.literal('5000-00-00T00:00:00').label("endtime") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ]) ^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/_selectable_constructors.py", line 538, in select return Select(*entities) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/selectable.py", line 5404, in __init__ coercions.expect( ~~~~~~~~~~~~~~~~^ roles.ColumnsClauseRole, ent, apply_propagate_attrs=self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 396, in expect resolved = impl._literal_coercion( element, argname=argname, **kw ) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 635, in _literal_coercion self._raise_for_expected(element, argname) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 1133, in _raise_for_expected return super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, argname=argname, resolved=resolved, advice=advice, **kw ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 696, in _raise_for_expected super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, ^^^^^^^^ ...<5 lines>... **kw, ^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 519, in _raise_for_expected raise exc.ArgumentError(msg, code=code) from err sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015fef2660; network>, <sqlalchemy.sql.elements.Label at 0x7f015fe625d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015fe61bd0; location>, <sqlalchemy.sql.elements.Label at 0x7f015fbd16e0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015fbd1940; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ff43770; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015fef2660; network>, <sqlalchemy.sql.elements.Label at 0x7f015fe625d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015fe61bd0; location>, <sqlalchemy.sql.elements.Label at 0x7f015fbd16e0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015fbd1940; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ff43770; endtime>)? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/clients/filesystem/tests/test_tsindex.py", line 381, in test_get_availability actual_avail = client.get_availability( "IU", ...<3 lines>... "2018-01-01", "2018-12-31") File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 415, in get_availability tsindex_rows = self._get_tsindex_rows(network, station, location, channel, starttime, endtime) File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 679, in _get_tsindex_rows return self.request_handler._fetch_index_rows(query_rows) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1668, in _fetch_index_rows raise ValueError(str(err)) ValueError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015fef2660; network>, <sqlalchemy.sql.elements.Label at 0x7f015fe625d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015fe61bd0; location>, <sqlalchemy.sql.elements.Label at 0x7f015fbd16e0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015fbd1940; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ff43770; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015fef2660; network>, <sqlalchemy.sql.elements.Label at 0x7f015fe625d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015fe61bd0; location>, <sqlalchemy.sql.elements.Label at 0x7f015fbd16e0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015fbd1940; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ff43770; endtime>)?
Traceback (most recent call last): File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1727, in _fetch_summary_rows sa.select([ ~~~~~~~~~^^ sa.literal(a).label("network"), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<8 lines>... sa.literal('5000-00-00T00:00:00').label("endtime") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ]) ^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/_selectable_constructors.py", line 538, in select return Select(*entities) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/selectable.py", line 5404, in __init__ coercions.expect( ~~~~~~~~~~~~~~~~^ roles.ColumnsClauseRole, ent, apply_propagate_attrs=self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 396, in expect resolved = impl._literal_coercion( element, argname=argname, **kw ) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 635, in _literal_coercion self._raise_for_expected(element, argname) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 1133, in _raise_for_expected return super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, argname=argname, resolved=resolved, advice=advice, **kw ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 696, in _raise_for_expected super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, ^^^^^^^^ ...<5 lines>... **kw, ^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 519, in _raise_for_expected raise exc.ArgumentError(msg, code=code) from err sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f940050; network>, <sqlalchemy.sql.elements.Label at 0x7f01608d24e0; station>, <sqlalchemy.sql.elements.Label at 0x7f01608d25d0; location>, <sqlalchemy.sql.elements.Label at 0x7f01608ce6d0; channel>, <sqlalchemy.sql.elements.Label at 0x7f01608cdb70; starttime>, <sqlalchemy.sql.elements.Label at 0x7f0162871e60; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f940050; network>, <sqlalchemy.sql.elements.Label at 0x7f01608d24e0; station>, <sqlalchemy.sql.elements.Label at 0x7f01608d25d0; location>, <sqlalchemy.sql.elements.Label at 0x7f01608ce6d0; channel>, <sqlalchemy.sql.elements.Label at 0x7f01608cdb70; starttime>, <sqlalchemy.sql.elements.Label at 0x7f0162871e60; endtime>)? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/clients/filesystem/tests/test_tsindex.py", line 236, in test_get_availability_extent actual_avail_extents = client.get_availability_extent( "I*", ...<3 lines>... "2018-01-01T00:00:00.000000", "2018-12-31T00:00:00.000000") File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 358, in get_availability_extent summary_rows = self._get_summary_rows(network, station, location, channel, starttime, endtime) File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 597, in _get_summary_rows return self.request_handler._fetch_summary_rows(query_rows) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1744, in _fetch_summary_rows raise ValueError(str(err)) ValueError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f940050; network>, <sqlalchemy.sql.elements.Label at 0x7f01608d24e0; station>, <sqlalchemy.sql.elements.Label at 0x7f01608d25d0; location>, <sqlalchemy.sql.elements.Label at 0x7f01608ce6d0; channel>, <sqlalchemy.sql.elements.Label at 0x7f01608cdb70; starttime>, <sqlalchemy.sql.elements.Label at 0x7f0162871e60; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f940050; network>, <sqlalchemy.sql.elements.Label at 0x7f01608d24e0; station>, <sqlalchemy.sql.elements.Label at 0x7f01608d25d0; location>, <sqlalchemy.sql.elements.Label at 0x7f01608ce6d0; channel>, <sqlalchemy.sql.elements.Label at 0x7f01608cdb70; starttime>, <sqlalchemy.sql.elements.Label at 0x7f0162871e60; endtime>)?
Traceback (most recent call last): File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1727, in _fetch_summary_rows sa.select([ ~~~~~~~~~^^ sa.literal(a).label("network"), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<8 lines>... sa.literal('5000-00-00T00:00:00').label("endtime") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ]) ^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/_selectable_constructors.py", line 538, in select return Select(*entities) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/selectable.py", line 5404, in __init__ coercions.expect( ~~~~~~~~~~~~~~~~^ roles.ColumnsClauseRole, ent, apply_propagate_attrs=self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 396, in expect resolved = impl._literal_coercion( element, argname=argname, **kw ) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 635, in _literal_coercion self._raise_for_expected(element, argname) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 1133, in _raise_for_expected return super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, argname=argname, resolved=resolved, advice=advice, **kw ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 696, in _raise_for_expected super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, ^^^^^^^^ ...<5 lines>... **kw, ^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 519, in _raise_for_expected raise exc.ArgumentError(msg, code=code) from err sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f944730; network>, <sqlalchemy.sql.elements.Label at 0x7f015ffc63f0; station>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6f30; location>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6350; channel>, <sqlalchemy.sql.elements.Label at 0x7f015ffc62b0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6210; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f944730; network>, <sqlalchemy.sql.elements.Label at 0x7f015ffc63f0; station>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6f30; location>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6350; channel>, <sqlalchemy.sql.elements.Label at 0x7f015ffc62b0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6210; endtime>)? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/clients/filesystem/tests/test_tsindex.py", line 175, in test_get_nslc actual_nslc = client.get_nslc("I*,CU", "ANMO,COL?,T*", ...<2 lines>... "2018-01-01T00:00:00.000000", "2018-01-01T00:00:00.019499") File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 317, in get_nslc summary_rows = self._get_summary_rows(network, station, location, channel, starttime, endtime) File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 597, in _get_summary_rows return self.request_handler._fetch_summary_rows(query_rows) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1744, in _fetch_summary_rows raise ValueError(str(err)) ValueError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f944730; network>, <sqlalchemy.sql.elements.Label at 0x7f015ffc63f0; station>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6f30; location>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6350; channel>, <sqlalchemy.sql.elements.Label at 0x7f015ffc62b0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6210; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f944730; network>, <sqlalchemy.sql.elements.Label at 0x7f015ffc63f0; station>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6f30; location>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6350; channel>, <sqlalchemy.sql.elements.Label at 0x7f015ffc62b0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6210; endtime>)?
Traceback (most recent call last): File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1547, in _fetch_index_rows sa.select([ ~~~~~~~~~^^ sa.literal(a).label("network"), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<8 lines>... sa.literal('5000-00-00T00:00:00').label("endtime") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ]) ^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/_selectable_constructors.py", line 538, in select return Select(*entities) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/selectable.py", line 5404, in __init__ coercions.expect( ~~~~~~~~~~~~~~~~^ roles.ColumnsClauseRole, ent, apply_propagate_attrs=self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 396, in expect resolved = impl._literal_coercion( element, argname=argname, **kw ) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 635, in _literal_coercion self._raise_for_expected(element, argname) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 1133, in _raise_for_expected return super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, argname=argname, resolved=resolved, advice=advice, **kw ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 696, in _raise_for_expected super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, ^^^^^^^^ ...<5 lines>... **kw, ^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 519, in _raise_for_expected raise exc.ArgumentError(msg, code=code) from err sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015ffc6d50; network>, <sqlalchemy.sql.elements.Label at 0x7f015f977750; station>, <sqlalchemy.sql.elements.Label at 0x7f015f977930; location>, <sqlalchemy.sql.elements.Label at 0x7f015f9779d0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f977a70; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f977bb0; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015ffc6d50; network>, <sqlalchemy.sql.elements.Label at 0x7f015f977750; station>, <sqlalchemy.sql.elements.Label at 0x7f015f977930; location>, <sqlalchemy.sql.elements.Label at 0x7f015f9779d0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f977a70; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f977bb0; endtime>)? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/clients/filesystem/tests/test_tsindex.py", line 62, in test_get_waveforms returned_stream = client.get_waveforms( "IU", "ANMO", "10", "BHZ", starttime=UTCDateTime(2018, 1, 1, 0, 0, 0), endtime=UTCDateTime(2018, 1, 1, 0, 0, 5)) File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 262, in get_waveforms return self._get_waveforms(query_rows, merge) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 623, in _get_waveforms index_rows = self.request_handler._fetch_index_rows(query_rows) File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1668, in _fetch_index_rows raise ValueError(str(err)) ValueError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015ffc6d50; network>, <sqlalchemy.sql.elements.Label at 0x7f015f977750; station>, <sqlalchemy.sql.elements.Label at 0x7f015f977930; location>, <sqlalchemy.sql.elements.Label at 0x7f015f9779d0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f977a70; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f977bb0; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015ffc6d50; network>, <sqlalchemy.sql.elements.Label at 0x7f015f977750; station>, <sqlalchemy.sql.elements.Label at 0x7f015f977930; location>, <sqlalchemy.sql.elements.Label at 0x7f015f9779d0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f977a70; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f977bb0; endtime>)?
Traceback (most recent call last): File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1547, in _fetch_index_rows sa.select([ ~~~~~~~~~^^ sa.literal(a).label("network"), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<8 lines>... sa.literal('5000-00-00T00:00:00').label("endtime") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ]) ^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/_selectable_constructors.py", line 538, in select return Select(*entities) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/selectable.py", line 5404, in __init__ coercions.expect( ~~~~~~~~~~~~~~~~^ roles.ColumnsClauseRole, ent, apply_propagate_attrs=self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 396, in expect resolved = impl._literal_coercion( element, argname=argname, **kw ) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 635, in _literal_coercion self._raise_for_expected(element, argname) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 1133, in _raise_for_expected return super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, argname=argname, resolved=resolved, advice=advice, **kw ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 696, in _raise_for_expected super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, ^^^^^^^^ ...<5 lines>... **kw, ^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 519, in _raise_for_expected raise exc.ArgumentError(msg, code=code) from err sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f977e30; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0190; station>, <sqlalchemy.sql.elements.Label at 0x7f015f9e00f0; location>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0910; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f9e09b0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0b90; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f977e30; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0190; station>, <sqlalchemy.sql.elements.Label at 0x7f015f9e00f0; location>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0910; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f9e09b0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0b90; endtime>)? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/clients/filesystem/tests/test_tsindex.py", line 142, in test_get_waveforms_bulk returned_stream = client.get_waveforms_bulk(bulk_request) File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 288, in get_waveforms_bulk return self._get_waveforms(query_rows, merge) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 623, in _get_waveforms index_rows = self.request_handler._fetch_index_rows(query_rows) File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1668, in _fetch_index_rows raise ValueError(str(err)) ValueError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f977e30; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0190; station>, <sqlalchemy.sql.elements.Label at 0x7f015f9e00f0; location>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0910; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f9e09b0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0b90; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f977e30; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0190; station>, <sqlalchemy.sql.elements.Label at 0x7f015f9e00f0; location>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0910; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f9e09b0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f9e0b90; endtime>)?
Traceback (most recent call last): File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1547, in _fetch_index_rows sa.select([ ~~~~~~~~~^^ sa.literal(a).label("network"), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<8 lines>... sa.literal('5000-00-00T00:00:00').label("endtime") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ]) ^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/_selectable_constructors.py", line 538, in select return Select(*entities) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/selectable.py", line 5404, in __init__ coercions.expect( ~~~~~~~~~~~~~~~~^ roles.ColumnsClauseRole, ent, apply_propagate_attrs=self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 396, in expect resolved = impl._literal_coercion( element, argname=argname, **kw ) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 635, in _literal_coercion self._raise_for_expected(element, argname) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 1133, in _raise_for_expected return super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, argname=argname, resolved=resolved, advice=advice, **kw ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 696, in _raise_for_expected super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, ^^^^^^^^ ...<5 lines>... **kw, ^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 519, in _raise_for_expected raise exc.ArgumentError(msg, code=code) from err sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f977930; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9779d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015f977a70; location>, <sqlalchemy.sql.elements.Label at 0x7f015f977bb0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f977b10; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f9776b0; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f977930; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9779d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015f977a70; location>, <sqlalchemy.sql.elements.Label at 0x7f015f977bb0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f977b10; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f9776b0; endtime>)? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/clients/filesystem/tests/test_tsindex.py", line 581, in test_has_data self.assertTrue(client.has_data()) ~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 558, in has_data avail_percentage = self.get_availability_percentage(network, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ station, ^^^^^^^^ ...<2 lines>... starttime, ^^^^^^^^^^ endtime)[0] ^^^^^^^^ File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 494, in get_availability_percentage avail = self.get_availability(network, station, location, channel, starttime, endtime, merge_overlap=True) File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 415, in get_availability tsindex_rows = self._get_tsindex_rows(network, station, location, channel, starttime, endtime) File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 679, in _get_tsindex_rows return self.request_handler._fetch_index_rows(query_rows) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1668, in _fetch_index_rows raise ValueError(str(err)) ValueError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f977930; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9779d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015f977a70; location>, <sqlalchemy.sql.elements.Label at 0x7f015f977bb0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f977b10; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f9776b0; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f977930; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9779d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015f977a70; location>, <sqlalchemy.sql.elements.Label at 0x7f015f977bb0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f977b10; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f9776b0; endtime>)?
Traceback (most recent call last): File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1547, in _fetch_index_rows sa.select([ ~~~~~~~~~^^ sa.literal(a).label("network"), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<8 lines>... sa.literal('5000-00-00T00:00:00').label("endtime") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ]) ^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/_selectable_constructors.py", line 538, in select return Select(*entities) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/selectable.py", line 5404, in __init__ coercions.expect( ~~~~~~~~~~~~~~~~^ roles.ColumnsClauseRole, ent, apply_propagate_attrs=self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 396, in expect resolved = impl._literal_coercion( element, argname=argname, **kw ) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 635, in _literal_coercion self._raise_for_expected(element, argname) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 1133, in _raise_for_expected return super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, argname=argname, resolved=resolved, advice=advice, **kw ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 696, in _raise_for_expected super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, ^^^^^^^^ ...<5 lines>... **kw, ^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 519, in _raise_for_expected raise exc.ArgumentError(msg, code=code) from err sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f977070; network>, <sqlalchemy.sql.elements.Label at 0x7f015ffc68f0; station>, <sqlalchemy.sql.elements.Label at 0x7f015ffc7390; location>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6b70; channel>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6c10; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ffc7570; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f977070; network>, <sqlalchemy.sql.elements.Label at 0x7f015ffc68f0; station>, <sqlalchemy.sql.elements.Label at 0x7f015ffc7390; location>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6b70; channel>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6c10; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ffc7570; endtime>)? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/clients/filesystem/tests/test_tsindex.py", line 770, in test_build_file_list self.assertRaisesRegex(OSError, ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ "^No unindexed files matching filename.*$", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ indexer.build_file_list, ^^^^^^^^^^^^^^^^^^^^^^^^ reindex=False, ^^^^^^^^^^^^^^ relative_paths=False) ^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 1338, in assertRaisesRegex return context.handle('assertRaisesRegex', args, kwargs) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 238, in handle callable_obj(*args, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1064, in build_file_list tsindex = self.request_handler._fetch_index_rows() File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1668, in _fetch_index_rows raise ValueError(str(err)) ValueError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f977070; network>, <sqlalchemy.sql.elements.Label at 0x7f015ffc68f0; station>, <sqlalchemy.sql.elements.Label at 0x7f015ffc7390; location>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6b70; channel>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6c10; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ffc7570; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f977070; network>, <sqlalchemy.sql.elements.Label at 0x7f015ffc68f0; station>, <sqlalchemy.sql.elements.Label at 0x7f015ffc7390; location>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6b70; channel>, <sqlalchemy.sql.elements.Label at 0x7f015ffc6c10; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015ffc7570; endtime>)?
Traceback (most recent call last): File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1727, in _fetch_summary_rows sa.select([ ~~~~~~~~~^^ sa.literal(a).label("network"), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<8 lines>... sa.literal('5000-00-00T00:00:00').label("endtime") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ]) ^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/_selectable_constructors.py", line 538, in select return Select(*entities) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/selectable.py", line 5404, in __init__ coercions.expect( ~~~~~~~~~~~~~~~~^ roles.ColumnsClauseRole, ent, apply_propagate_attrs=self ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 396, in expect resolved = impl._literal_coercion( element, argname=argname, **kw ) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 635, in _literal_coercion self._raise_for_expected(element, argname) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 1133, in _raise_for_expected return super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, argname=argname, resolved=resolved, advice=advice, **kw ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 696, in _raise_for_expected super()._raise_for_expected( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ element, ^^^^^^^^ ...<5 lines>... **kw, ^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 519, in _raise_for_expected raise exc.ArgumentError(msg, code=code) from err sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f939e50; network>, <sqlalchemy.sql.elements.Label at 0x7f015f939f90; station>, <sqlalchemy.sql.elements.Label at 0x7f015f93a350; location>, <sqlalchemy.sql.elements.Label at 0x7f015f93a210; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f93a0d0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f93a2b0; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f939e50; network>, <sqlalchemy.sql.elements.Label at 0x7f015f939f90; station>, <sqlalchemy.sql.elements.Label at 0x7f015f93a350; location>, <sqlalchemy.sql.elements.Label at 0x7f015f93a210; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f93a0d0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f93a2b0; endtime>)? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/clients/filesystem/tests/test_tsindex.py", line 916, in test__fetch_summary_rows ts_summary_data = request_handler._fetch_summary_rows( [("I*,CU", ...<3 lines>... "2018-01-01T00:00:00.000000", "2018-12-31T00:00:00.000000")]) File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1744, in _fetch_summary_rows raise ValueError(str(err)) ValueError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f939e50; network>, <sqlalchemy.sql.elements.Label at 0x7f015f939f90; station>, <sqlalchemy.sql.elements.Label at 0x7f015f93a350; location>, <sqlalchemy.sql.elements.Label at 0x7f015f93a210; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f93a0d0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f93a2b0; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f939e50; network>, <sqlalchemy.sql.elements.Label at 0x7f015f939f90; station>, <sqlalchemy.sql.elements.Label at 0x7f015f93a350; location>, <sqlalchemy.sql.elements.Label at 0x7f015f93a210; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f93a0d0; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f93a2b0; endtime>)?
055 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
056
057 * :meth:`~Client.get_availability_extent()`:
058 Returns a list of (network, station, location, channel, earliest, latest)
059 tuples that represent the full extent of available data. This example
060 retrieves from the very small obspy test tsindex database a list of all
061 available ("BHZ") channel extents from the Global Seismograph Network
062 ("IU") for all times.
063
064 >>> extents = client.get_availability_extent(network="IU", channel="BHZ")
UNEXPECTED EXCEPTION: ValueError('Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f9745f0; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9747d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015f975090; location>, <sqlalchemy.sql.elements.Label at 0x7f015f974ff0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f975310; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f975770; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f9745f0; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9747d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015f975090; location>, <sqlalchemy.sql.elements.Label at 0x7f015f974ff0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f975310; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f975770; endtime>)?')
Traceback (most recent call last):
File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1727, in _fetch_summary_rows
sa.select([
~~~~~~~~~^^
sa.literal(a).label("network"),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<8 lines>...
sa.literal('5000-00-00T00:00:00').label("endtime")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
])
^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/_selectable_constructors.py", line 538, in select
return Select(*entities)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/selectable.py", line 5404, in __init__
coercions.expect(
~~~~~~~~~~~~~~~~^
roles.ColumnsClauseRole, ent, apply_propagate_attrs=self
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 396, in expect
resolved = impl._literal_coercion(
element, argname=argname, **kw
)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 635, in _literal_coercion
self._raise_for_expected(element, argname)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 1133, in _raise_for_expected
return super()._raise_for_expected(
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
element, argname=argname, resolved=resolved, advice=advice, **kw
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 696, in _raise_for_expected
super()._raise_for_expected(
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
element,
^^^^^^^^
...<5 lines>...
**kw,
^^^^^
)
^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/sqlalchemy/sql/coercions.py", line 519, in _raise_for_expected
raise exc.ArgumentError(msg, code=code) from err
sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f9745f0; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9747d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015f975090; location>, <sqlalchemy.sql.elements.Label at 0x7f015f974ff0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f975310; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f975770; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f9745f0; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9747d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015f975090; location>, <sqlalchemy.sql.elements.Label at 0x7f015f974ff0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f975310; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f975770; endtime>)?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.clients.filesystem.tsindex[6]>", line 1, in <module>
File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 358, in get_availability_extent
summary_rows = self._get_summary_rows(network, station,
location, channel,
starttime, endtime)
File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 597, in _get_summary_rows
return self.request_handler._fetch_summary_rows(query_rows)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/workspace/obspy/obspy/clients/filesystem/tsindex.py", line 1744, in _fetch_summary_rows
raise ValueError(str(err))
ValueError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.Label at 0x7f015f9745f0; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9747d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015f975090; location>, <sqlalchemy.sql.elements.Label at 0x7f015f974ff0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f975310; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f975770; endtime>]. Did you mean to say select(<sqlalchemy.sql.elements.Label at 0x7f015f9745f0; network>, <sqlalchemy.sql.elements.Label at 0x7f015f9747d0; station>, <sqlalchemy.sql.elements.Label at 0x7f015f975090; location>, <sqlalchemy.sql.elements.Label at 0x7f015f974ff0; channel>, <sqlalchemy.sql.elements.Label at 0x7f015f975310; starttime>, <sqlalchemy.sql.elements.Label at 0x7f015f975770; endtime>)?
/workspace/obspy/obspy/clients/filesystem/tsindex.py:64: UnexpectedException
3290 >>> s = ['', '', '3 Trace(s) in Stream:',
3291 ... 'IU.GRFO..HH2 | 2016-01-07T00:00:00.008300Z - '
3292 ... '2016-01-07T00:00:30.098300Z | 10.0 Hz, 301 samples',
3293 ... 'XX.GRFO..HH1 | 2016-01-07T00:00:02.668393Z - '
3294 ... '2016-01-07T00:00:09.518393Z | 100.0 Hz, 686 samples',
3295 ... 'IU.ABCD..EH2 | 2016-01-07T00:00:09.528393Z - '
3296 ... '2016-01-07T00:00:50.378393Z | 100.0 Hz, 4086 samples',
3297 ... '', '']
3298 >>> s = os.linesep.join(s)
3299 >>> st = Stream._dummy_stream_from_string(s)
UNEXPECTED EXCEPTION: AttributeError('`np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.')
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.core.stream.Stream._dummy_stream_from_string[3]>", line 1, in <module>
File "/workspace/obspy/obspy/core/stream.py", line 3319, in _dummy_stream_from_string
tr.data = np.ones(npts, dtype=np.float_)
^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/__init__.py", line 778, in __getattr__
raise AttributeError(
...<3 lines>...
)
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
/workspace/obspy/obspy/core/stream.py:3299: UnexpectedException
2333
2334 .. rubric:: Example
2335
2336 >>> st = read()
2337 >>> print(st) # doctest: +ELLIPSIS
2338 3 Trace(s) in Stream:
2339 BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples
2340 BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples
2341 BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples
2342 >>> st.resample(10.0) # doctest: +ELLIPSIS
UNEXPECTED EXCEPTION: AttributeError("'numpy.ndarray' object has no attribute 'newbyteorder'")
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.core.stream.Stream.resample[2]>", line 1, in <module>
File "/workspace/obspy/obspy/core/stream.py", line 2351, in resample
tr.resample(sampling_rate, window=window,
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
no_filter=no_filter, strict_length=strict_length)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data
return func(*args, **kwargs)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info
result = func(*args, **kwargs)
File "/workspace/obspy/obspy/core/trace.py", line 1725, in resample
x = rfft(self.data.newbyteorder("="))
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
/workspace/obspy/obspy/core/stream.py:2342: UnexpectedException
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_event.py", line 120, in test_plot_farfield_without_quiver_with_maps ev.plot(kind=[['global'], ['ortho', 'beachball'], ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ['p_sphere', 's_sphere']], outfile=image_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/event/event.py", line 273, in plot plot_radiation_pattern( ~~~~~~~~~~~~~~~~~~~~~~^ mt, kind=kind, coordinate_system='RTP', fig=fig, show=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/source.py", line 194, in plot_radiation_pattern _plot_beachball(ax, rtp_mt) ~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/source.py", line 377, in _plot_beachball bball = beach(rtp_mt, xy=(0, 0), width=50, facecolor=cmap(norm(0.7)), bgcolor=cmap(norm(-0.7))) File "/workspace/obspy/obspy/imaging/mopad_wrapper.py", line 127, in beach mt = mopad_MomentTensor(fm, system=mopad_basis) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_preview.py", line 26, in test_create_preview preview = create_preview(trace, delta=60) File "/workspace/obspy/obspy/core/preview.py", line 69, in create_preview diff = data.ptp(axis=1) ^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'ptp'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_preview.py", line 200, in test_create_preview_with_unrounded_sample_rate create_preview(tr, delta=30) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/preview.py", line 69, in create_preview diff = data.ptp(axis=1) ^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'ptp'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_preview.py", line 213, in test_create_preview_with_very_small_sample_rate create_preview(tr) ~~~~~~~~~~~~~~^^^^ File "/workspace/obspy/obspy/core/preview.py", line 69, in create_preview diff = data.ptp(axis=1) ^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'ptp'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_stream.py", line 1884, in test_integrate_and_differentiate st1.integrate() ~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/core/stream.py", line 2495, in integrate tr.integrate(method=method, **options) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 1967, in integrate self.data = func(data=self.data, dx=self.stats.delta, **options) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/differentiate_and_integrate.py", line 27, in integrate_cumtrapz ret = scipy.integrate.cumtrapz(data, dx=dx) ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'scipy.integrate' has no attribute 'cumtrapz'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_stream.py", line 1930, in test_read read('/path/to/UNKNOWN') ~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 286, in _map_example_filename args[ind] = get_example_file(args[ind][9:]) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 207, in get_example_file mod = __import__("obspy.%s" % module, fromlist=["obspy"]) File "/workspace/obspy/obspy/taup/__init__.py", line 447, in <module> from .tau import TauPyModel # NOQA ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/taup/tau.py", line 14, in <module> from .helper_classes import Arrival File "/workspace/obspy/obspy/taup/helper_classes.py", line 20, in <module> ('top_p', np.float_), ^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/__init__.py", line 778, in __getattr__ raise AttributeError( ...<3 lines>... ) AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_stream.py", line 2247, in test_method_chaining .resample(st[0].stats.sampling_rate / 2)\ ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 2351, in resample tr.resample(sampling_rate, window=window, ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no_filter=no_filter, strict_length=strict_length) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 1725, in resample x = rfft(self.data.newbyteorder("=")) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_stream.py", line 2411, in test_integrate tr.integrate() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 1967, in integrate self.data = func(data=self.data, dx=self.stats.delta, **options) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/differentiate_and_integrate.py", line 27, in integrate_cumtrapz ret = scipy.integrate.cumtrapz(data, dx=dx) ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'scipy.integrate' has no attribute 'cumtrapz'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_stream.py", line 2424, in test_integrate_args tr.integrate(method='cumtrapz') ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 1967, in integrate self.data = func(data=self.data, dx=self.stats.delta, **options) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/differentiate_and_integrate.py", line 27, in integrate_cumtrapz ret = scipy.integrate.cumtrapz(data, dx=dx) ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'scipy.integrate' has no attribute 'cumtrapz'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_trace.py", line 1261, in test_integrate tr.integrate() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 1967, in integrate self.data = func(data=self.data, dx=self.stats.delta, **options) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/differentiate_and_integrate.py", line 27, in integrate_cumtrapz ret = scipy.integrate.cumtrapz(data, dx=dx) ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'scipy.integrate' has no attribute 'cumtrapz'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2787, in resolve return functools.reduce(getattr, self.attrs, module) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hann' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_trace.py", line 1359, in test_taper_onesided tr.taper(max_percentage=None, side="left") ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 2147, in taper func = _get_function_from_entry_point('taper', type) File "/workspace/obspy/obspy/core/util/base.py", line 330, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, 'obspy.plugin.%s' % (group), entry_point.name) File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2789, in resolve raise ImportError(str(exc)) from exc ImportError: module 'scipy.signal' has no attribute 'hann'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2787, in resolve return functools.reduce(getattr, self.attrs, module) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hann' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_trace.py", line 1389, in test_taper_length tr.taper(max_percentage=0.7, max_length=int(npts / 2) + 1) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 2147, in taper func = _get_function_from_entry_point('taper', type) File "/workspace/obspy/obspy/core/util/base.py", line 330, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, 'obspy.plugin.%s' % (group), entry_point.name) File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2789, in resolve raise ImportError(str(exc)) from exc ImportError: module 'scipy.signal' has no attribute 'hann'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_trace.py", line 1430, in test_times assert np.alltrue(tr.data.mask == tm.mask) ^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/__init__.py", line 778, in __getattr__ raise AttributeError( ...<3 lines>... ) AttributeError: `np.alltrue` was removed in the NumPy 2.0 release. Use `np.all` instead.
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_trace.py", line 1640, in test_resample tr_2 = tr.copy().resample(sampling_rate=50.0) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 1725, in resample x = rfft(self.data.newbyteorder("=")) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_trace.py", line 1678, in test_method_chaining .resample(tr.stats.sampling_rate / 2.0)\ ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 1725, in resample x = rfft(self.data.newbyteorder("=")) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_trace.py", line 1845, in test_processing_information tr.resample(tr.stats.sampling_rate / 2.0) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 1725, in resample x = rfft(self.data.newbyteorder("=")) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_trace.py", line 2119, in test_resample_new tr.resample(0.5, window='hann', no_filter=True) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 1725, in resample x = rfft(self.data.newbyteorder("=")) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2787, in resolve return functools.reduce(getattr, self.attrs, module) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hann' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_trace.py", line 2492, in test_dtype_is_not_unnecessarily_changed assert tr_int32.copy().taper(0.05, "hann").data.dtype == np.float64 ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 2147, in taper func = _get_function_from_entry_point('taper', type) File "/workspace/obspy/obspy/core/util/base.py", line 330, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, 'obspy.plugin.%s' % (group), entry_point.name) File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2789, in resolve raise ImportError(str(exc)) from exc ImportError: module 'scipy.signal' has no attribute 'hann'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_trace.py", line 2717, in test_resample_short_traces tr.resample(30) ~~~~~~~~~~~^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/workspace/obspy/obspy/core/trace.py", line 1725, in resample x = rfft(self.data.newbyteorder("=")) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_utcdatetime.py", line 47, in test_from_numpy_string dt = UTC(np.string_("1970-01-01 12:23:34")) ^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/__init__.py", line 778, in __getattr__ raise AttributeError( ...<3 lines>... ) AttributeError: `np.string_` was removed in the NumPy 2.0 release. Use `np.bytes_` instead.
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_util_testing.py", line 72, in test_nan tr1.data[0], tr2.data[0] = np.NaN, np.NaN ^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/__init__.py", line 778, in __getattr__ raise AttributeError( ...<3 lines>... ) AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_waveform_plugins.py", line 46, in test_raise_on_empty_file is_format = buffered_load_entry_point( ep.dist.key, 'obspy.plugin.waveform.' + ep.name, 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/workspace/obspy/obspy/core/stream.py", line 1449, in write write_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.waveform.%s' % (format_ep.name), 'writeFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_waveform_plugins.py", line 87, in test_read_and_write tr.write(outfile, format=format) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/trace.py", line 999, in write Stream([self]).write(filename, format, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 1454, in write raise ValueError(msg % (format, ', '.join(ENTRY_POINTS['waveform_write']))) ValueError: Writing format "AH" is not supported. Supported types: MSEED, SAC, GSE2, SACXY, Q, SH_ASC, SLIST, TSPAIR, PICKLE, SEGY, SU, WAV, AH
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_waveform_plugins.py", line 220, in test_is_format assert len(paths) > 0, msg + '\n '.join(all_paths) AssertionError: Test data directories do not exist: /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/ah/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/css/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/dmx/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/gcf/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/gse2/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/gse2/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/kinemetrics/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/nied/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/mseed/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/css/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/pdas/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/core/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/sh/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/reftek/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/rg16/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/sac/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/sac/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/seg2/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/segy/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/seisan/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/sh/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/ascii/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/segy/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/ascii/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/wav/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/win/tests/data /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/obspy/io/y/tests/data assert 0 > 0 + where 0 = len({})
Traceback (most recent call last): File "/workspace/obspy/obspy/core/stream.py", line 1449, in write write_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.waveform.%s' % (format_ep.name), 'writeFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_waveform_plugins.py", line 281, in test_read_thread_safe tr.write(outfile, format=format) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/trace.py", line 999, in write Stream([self]).write(filename, format, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 1454, in write raise ValueError(msg % (format, ', '.join(ENTRY_POINTS['waveform_write']))) ValueError: Writing format "AH" is not supported. Supported types: MSEED, SAC, GSE2, SACXY, Q, SH_ASC, SLIST, TSPAIR, PICKLE, SEGY, SU, WAV, AH
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_waveform_plugins.py", line 350, in test_issue_193 tr.write(tempfile, format) ~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/trace.py", line 999, in write Stream([self]).write(filename, format, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 1456, in write write_format(self, filename, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/ascii/core.py", line 352, in _write_slist np.savetxt(fh, data, delimiter=b'\t', ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmt=fmt.encode('ascii', 'strict')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1603, in savetxt raise ValueError(f'invalid fmt: {fmt!r}') ValueError: invalid fmt: b'%d'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_waveform_plugins.py", line 426, in test_raise_on_unknown_format read(tmpfile) ~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_waveform_plugins.py", line 459, in test_deepcopy stream.write(format=format, filename=tmpfile) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 1456, in write write_format(self, filename, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/ascii/core.py", line 352, in _write_slist np.savetxt(fh, data, delimiter=b'\t', ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmt=fmt.encode('ascii', 'strict')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1603, in savetxt raise ValueError(f'invalid fmt: {fmt!r}') ValueError: invalid fmt: b'%+.10e'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/core/tests/test_waveform_plugins.py", line 491, in test_auto_file_format_during_writing buffered_load_entry_point(*entry_point_list) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
1687 the signal is assumed to be periodic.
1688
1689 .. rubric:: Example
1690
1691 >>> tr = Trace(data=np.array([0.5, 0, 0.5, 1, 0.5, 0, 0.5, 1]))
1692 >>> len(tr)
1693 8
1694 >>> tr.stats.sampling_rate
1695 1.0
1696 >>> tr.resample(4.0) # doctest: +ELLIPSIS
UNEXPECTED EXCEPTION: AttributeError("'numpy.ndarray' object has no attribute 'newbyteorder'")
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.core.trace.Trace.resample[3]>", line 1, in <module>
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data
return func(*args, **kwargs)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/trace.py", line 282, in _add_processing_info
result = func(*args, **kwargs)
File "/workspace/obspy/obspy/core/trace.py", line 1725, in resample
x = rfft(self.data.newbyteorder("="))
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
/workspace/obspy/obspy/core/trace.py:1696: UnexpectedException
191
192 :param filename: A test file name to which the path should be returned.
193 :return: Full path to file.
194
195 .. rubric:: Example
196
197 >>> get_example_file('slist.ascii') # doctest: +SKIP
198 /custom/path/to/obspy/io/ascii/tests/data/slist.ascii
199
200 >>> get_example_file('does.not.exists') # doctest: +ELLIPSIS
Differences (unified diff with -expected +actual):
@@ -1,3 +1,25 @@
Traceback (most recent call last):
-...
-OSError: Could not find file does.not.exists ...
+ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
+ exec(compile(example.source, filename, "single",
+ ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ compileflags, True), test.globs)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "<doctest obspy.core.util.base.get_example_file[1]>", line 1, in <module>
+ get_example_file('does.not.exists') # doctest: +ELLIPSIS
+ ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
+ File "/workspace/obspy/obspy/core/util/base.py", line 207, in get_example_file
+ mod = __import__("obspy.%s" % module,
+ fromlist=["obspy"])
+ File "/workspace/obspy/obspy/taup/__init__.py", line 447, in <module>
+ from .tau import TauPyModel # NOQA
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/workspace/obspy/obspy/taup/tau.py", line 14, in <module>
+ from .helper_classes import Arrival
+ File "/workspace/obspy/obspy/taup/helper_classes.py", line 20, in <module>
+ ('top_p', np.float_),
+ ^^^^^^^^^
+ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/__init__.py", line 778, in __getattr__
+ raise AttributeError(
+ ...<3 lines>...
+ )
+AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
/workspace/obspy/obspy/core/util/base.py:200: DocTestFailure
Traceback (most recent call last): File "/workspace/obspy/obspy/imaging/beachball.py", line 43, in mopad_fallback result = func(*args, **kwargs) File "/workspace/obspy/obspy/imaging/beachball.py", line 148, in beach colors, p = plot_mt(t, n, p, size, ~~~~~~~^^^^^^^^^^^^^^^ plot_zerotrace=True, xy=xy, width=width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/beachball.py", line 437, in plot_mt azi[n][0] = az ~~~^^^ IndexError: index 3 is out of bounds for axis 0 with size 3 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_beachball.py", line 304, in test_mopad_fallback beachball(mt, outfile=image_path) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/beachball.py", line 255, in beachball collection = beach(fm, linewidth=linewidth, facecolor=facecolor, edgecolor=edgecolor, bgcolor=bgcolor, alpha=alpha, nofill=nofill, xy=xy, width=plot_width, size=size, zorder=zorder) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/imaging/beachball.py", line 64, in mopad_fallback result = _mopad_beach(**final_kwargs) File "/workspace/obspy/obspy/imaging/mopad_wrapper.py", line 127, in beach mt = mopad_MomentTensor(fm, system=mopad_basis) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad.py", line 61, in test_mopad_collection ax.add_collection(beach(t, width=30, xy=(x, y), linewidth=.6)) ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/mopad_wrapper.py", line 127, in beach mt = mopad_MomentTensor(fm, system=mopad_basis) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 25, in test_script_convert_type_sdr obspy_mopad(['convert', '--fancy', '-t', 'sdr', ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ','.join(str(x) for x in self.mt)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 36, in test_script_convert_type_tensor obspy_mopad(['convert', '--fancy', '-t', 't', ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ','.join(str(x) for x in self.mt)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 50, in test_script_convert_type_tensor_large obspy_mopad(['convert', '--fancy', '-t', 't', ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ','.join(str(x * 100) for x in self.mt)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 87, in test_script_convert_basis obspy_mopad(['convert', '-b', insys, outsys, ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ','.join(str(x) for x in self.mt)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 99, in test_script_convert_vector obspy_mopad(['convert', '-v', 'NED', 'NED', ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ','.join(str(x) for x in self.mt)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 110, in test_script_decompose obspy_mopad(['decompose', '-y', ','.join(str(x) for x in self.mt)]) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 158, in test_script_gmt_fill self.compare_gmt('mopad_fill.gmt', ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ '-t', 'fill', ^^^^^^^^^^^^^ '--scaling', '2', '--color1', '3', '--color2', '5') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 132, in compare_gmt obspy_mopad(['gmt'] + list(args) + ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ [','.join(str(x) for x in self.mt)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 163, in test_script_gmt_lines self.compare_gmt('mopad_lines.gmt', ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ '-t', 'lines', ^^^^^^^^^^^^^^ '--scaling', '2', '--color1', '3', '--color2', '5') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 132, in compare_gmt obspy_mopad(['gmt'] + list(args) + ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ [','.join(str(x) for x in self.mt)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 168, in test_script_gmt_lines_stereo self.compare_gmt('mopad_lines_stereo.gmt', ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ '-t', 'lines', ^^^^^^^^^^^^^^ '--scaling', '2', '--color1', '3', '--color2', '5', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ '--projection', 'stereo') ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 132, in compare_gmt obspy_mopad(['gmt'] + list(args) + ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ [','.join(str(x) for x in self.mt)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 174, in test_script_gmt_lines_ortho self.compare_gmt('mopad_lines_ortho.gmt', ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ '-t', 'lines', ^^^^^^^^^^^^^^ '--scaling', '2', '--color1', '3', '--color2', '5', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ '--projection', 'ortho') ^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 132, in compare_gmt obspy_mopad(['gmt'] + list(args) + ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ [','.join(str(x) for x in self.mt)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 180, in test_script_gmt_lines_lambo self.compare_gmt('mopad_lines_lambo.gmt', ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ '-t', 'lines', ^^^^^^^^^^^^^^ '--scaling', '2', '--color1', '3', '--color2', '5', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ '--projection', 'stereo') ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 132, in compare_gmt obspy_mopad(['gmt'] + list(args) + ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ [','.join(str(x) for x in self.mt)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 186, in test_script_gmt_event self.compare_gmt('mopad_ev.gmt', ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ '-t', 'ev', ^^^^^^^^^^^ '-r', '3') ^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/tests/test_mopad_script.py", line 132, in compare_gmt obspy_mopad(['gmt'] + list(args) + ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ [','.join(str(x) for x in self.mt)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 5132, in main aa = _handle_input(M_raw, args) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 3941, in _handle_input mt = MomentTensor(M=M_in, system=in_system) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_scan.py", line 163, in test_scanner_manually_add_streams st = read(file_, headonly=True) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_scan.py", line 197, in test_scan_save_load_npz scanner.load_npz('scanner.npz') ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/scan.py", line 614, in load_npz load_npz(filename, data_dict=self.data, samp_int_dict=self.samp_int) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/scan.py", line 205, in load_npz [int(x) for x in version_string.split(".")[:2]] < [1, 1]: ~~~^^^ ValueError: invalid literal for int() with base 10: '166e92c489'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/imaging/tests/test_source.py", line 23, in test_farfield_with_quiver plot_radiation_pattern( ~~~~~~~~~~~~~~~~~~~~~~^ mt, kind=['beachball', 's_quiver', 'p_quiver'], show=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/source.py", line 194, in plot_radiation_pattern _plot_beachball(ax, rtp_mt) ~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/source.py", line 377, in _plot_beachball bball = beach(rtp_mt, xy=(0, 0), width=50, facecolor=cmap(norm(0.7)), bgcolor=cmap(norm(-0.7))) File "/workspace/obspy/obspy/imaging/mopad_wrapper.py", line 127, in beach mt = mopad_MomentTensor(fm, system=mopad_basis) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 161, in __init__ self._M_to_principal_axis_system() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 732, in _M_to_principal_axis_system self._faultplanes = self._find_faultplanes() ~~~~~~~~~~~~~~~~~~~~~~^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 814, in _find_faultplanes fp1 = self._find_strike_dip_rake(rot_matrix_fp1) File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 824, in _find_strike_dip_rake (alpha, beta, gamma) = self._matrix_to_euler(rotation_matrix) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/imaging/scripts/mopad.py", line 840, in _matrix_to_euler cos_alpha = float((ez.T @ ezs)) TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/ascii/tests/test_ascii.py", line 642, in test_float_sampling_rates_write_and_read tr.write(tempfile, format=format) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/trace.py", line 999, in write Stream([self]).write(filename, format, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 1456, in write write_format(self, filename, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/ascii/core.py", line 352, in _write_slist np.savetxt(fh, data, delimiter=b'\t', ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmt=fmt.encode('ascii', 'strict')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1603, in savetxt raise ValueError(f'invalid fmt: {fmt!r}') ValueError: invalid fmt: b'%d'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/ascii/tests/test_ascii.py", line 449, in test_write_slist _write_slist(stream_orig, tmpfile) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/ascii/core.py", line 352, in _write_slist np.savetxt(fh, data, delimiter=b'\t', ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmt=fmt.encode('ascii', 'strict')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1603, in savetxt raise ValueError(f'invalid fmt: {fmt!r}') ValueError: invalid fmt: b'%+.10e'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/ascii/tests/test_ascii.py", line 544, in test_write_slist_custom_fmt_custom _write_slist(stream_orig, tmpfile, custom_fmt='%+r') ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/ascii/core.py", line 352, in _write_slist np.savetxt(fh, data, delimiter=b'\t', ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmt=fmt.encode('ascii', 'strict')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1603, in savetxt raise ValueError(f'invalid fmt: {fmt!r}') ValueError: invalid fmt: b'%+r'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/ascii/tests/test_ascii.py", line 497, in test_write_slist_custom_fmt_float _write_slist(stream_orig, tmpfile, custom_fmt='%3.14f') ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/ascii/core.py", line 352, in _write_slist np.savetxt(fh, data, delimiter=b'\t', ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmt=fmt.encode('ascii', 'strict')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1603, in savetxt raise ValueError(f'invalid fmt: {fmt!r}') ValueError: invalid fmt: b'%3.14f'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/ascii/tests/test_ascii.py", line 568, in test_write_slist_file_multiple_traces _write_slist(stream_orig, tmpfile) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/ascii/core.py", line 352, in _write_slist np.savetxt(fh, data, delimiter=b'\t', ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmt=fmt.encode('ascii', 'strict')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1603, in savetxt raise ValueError(f'invalid fmt: {fmt!r}') ValueError: invalid fmt: b'%d'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/ascii/tests/test_ascii.py", line 623, in test_write_small_trace tr.write(tempfile, format=format) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/trace.py", line 999, in write Stream([self]).write(filename, format, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 1456, in write write_format(self, filename, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/ascii/core.py", line 352, in _write_slist np.savetxt(fh, data, delimiter=b'\t', ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmt=fmt.encode('ascii', 'strict')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1603, in savetxt raise ValueError(f'invalid fmt: {fmt!r}') ValueError: invalid fmt: b'%d'
019 Reading DMX is handled by using ObsPy's standard
020 :func:`~obspy.core.stream.read` function. The format can be detected
021 automatically, however setting the ``format`` parameter as "DMX" lead to a
022 speed up.
023 One optional keyword argument is available: ``station``. It is automatically
024 passed to the :func:`obspy.io.dmx.core._read_dmx`. Its format
025
026 >>> from obspy import read
027 >>> # these two are equivalent, but the second case should be faster:
028 >>> st = read("/path/to/131114_090600.dmx")
UNEXPECTED EXCEPTION: ModuleNotFoundError("No module named 'xdrlib'")
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.io.dmx[1]>", line 1, in <module>
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename
return func(*args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 208, in read
st = _generic_reader(pathname_or_url, _read, **kwargs)
File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader
generic = callback_func(pathnames[0], **kwargs)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file
result = func(filename, *args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 249, in _read
stream, format = _read_from_plugin('waveform', filename, format=format,
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
headonly=headonly, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin
is_format = buffered_load_entry_point(
format_ep.dist.key,
'obspy.plugin.%s.%s' % (plugin_type, format_ep.name),
'isFormat')
File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point
_ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point
return ep.load()
~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load
return self.resolve()
~~~~~~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module>
import xdrlib
ModuleNotFoundError: No module named 'xdrlib'
/workspace/obspy/obspy/io/dmx/__init__.py:28: UnexpectedException
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/dmx/tests/test_core.py", line 82, in test_check_data_content_sum st = read(filename) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/dmx/tests/test_core.py", line 30, in test_read_via_obspy st = read(filename) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/dmx/tests/test_core.py", line 68, in test_read_with_station st = read(filename, station='EMPL') File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
012 GNU Lesser General Public License, Version 3
013 (https://www.gnu.org/copyleft/lesser.html)
014
015 Reading
016 -------
017 Similar to reading any other waveform data format using :mod:`obspy.core`
018 The format will be determined automatically.
019
020 >>> from obspy import read
021 >>> st = read("/path/to/20160603_1955n.gcf")
UNEXPECTED EXCEPTION: ModuleNotFoundError("No module named 'xdrlib'")
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.io.gcf[1]>", line 1, in <module>
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename
return func(*args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 208, in read
st = _generic_reader(pathname_or_url, _read, **kwargs)
File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader
generic = callback_func(pathnames[0], **kwargs)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file
result = func(filename, *args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 249, in _read
stream, format = _read_from_plugin('waveform', filename, format=format,
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
headonly=headonly, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin
is_format = buffered_load_entry_point(
format_ep.dist.key,
'obspy.plugin.%s.%s' % (plugin_type, format_ep.name),
'isFormat')
File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point
_ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point
return ep.load()
~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load
return self.resolve()
~~~~~~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module>
import xdrlib
ModuleNotFoundError: No module named 'xdrlib'
/workspace/obspy/obspy/io/gcf/__init__.py:21: UnexpectedException
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/gcf/tests/test_core.py", line 125, in test_merge_gcf_stream st1 = read(filename, headonly=True, channel_prefix="HN") File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/gcf/tests/test_core.py", line 108, in test_read_channel_prefix_via_obspy st = read(filename, headonly=True, channel_prefix="HN") File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/gcf/tests/test_core.py", line 55, in test_read_head_via_obspy st = read(filename, headonly=True) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/gcf/tests/test_core.py", line 36, in test_read_via_obspy st = read(filename) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/gcf/tests/test_core.py", line 150, in test_sps_d st = read(filename, headonly=True, channel_prefix="HN") File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
015 :license:
016 GNU Lesser General Public License, Version 3
017 (https://www.gnu.org/copyleft/lesser.html)
018
019 Reading
020 -------
021 Similar to reading any other waveform data format using obspy.core:
022
023 >>> from obspy import read
024 >>> st = read("/path/to/BI008_MEMA-04823.evt", apply_calib=True)
UNEXPECTED EXCEPTION: ModuleNotFoundError("No module named 'xdrlib'")
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.io.kinemetrics[1]>", line 1, in <module>
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename
return func(*args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 208, in read
st = _generic_reader(pathname_or_url, _read, **kwargs)
File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader
generic = callback_func(pathnames[0], **kwargs)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file
result = func(filename, *args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 249, in _read
stream, format = _read_from_plugin('waveform', filename, format=format,
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
headonly=headonly, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin
is_format = buffered_load_entry_point(
format_ep.dist.key,
'obspy.plugin.%s.%s' % (plugin_type, format_ep.name),
'isFormat')
File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point
_ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point
return ep.load()
~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load
return self.resolve()
~~~~~~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module>
import xdrlib
ModuleNotFoundError: No module named 'xdrlib'
/workspace/obspy/obspy/io/kinemetrics/__init__.py:24: UnexpectedException
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/kinemetrics/tests/test_core.py", line 78, in test_read_via_obspy st = read(filename, apply_calib=True) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/workspace/obspy/obspy/core/util/base.py", line 623, in _generic_reader generic = callback_func(pathname_or_url, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 142, in uncompress_file return func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 396, in _read_from_plugin is_format = is_format(filename) File "/workspace/obspy/obspy/io/gse2/core.py", line 120, in _is_gse1 with open(filename, 'rb') as f: ~~~~^^^^^^^^^^^^^^^^ TypeError: expected str, bytes or os.PathLike object, not BytesIO During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/kinemetrics/tests/test_core.py", line 127, in test_reading_via_obspy_and_bytesio st = read(buf, apply_calib=True) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 630, in _generic_reader generic = callback_func(fh.name, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/mseed/tests/test_mseed_util.py", line 309, in test_get_flags _create_mseed_file( ~~~~~~~~~~~~~~~~~~^ tf.name, record_count=112, seed=3412, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<23 lines>... "end_time_series": 4, ^^^^^^^^^^^^^^^^^^^^^ "clock_locked": 32}}) ^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/mseed/tests/test_mseed_util.py", line 75, in _create_mseed_file arr[:flags[key][name]] = 1 << _i ~~~^^^^^^^^^^^^^^^^^^^ OverflowError: Python integer 128 out of bounds for int8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/mseed/tests/test_mseed_util.py", line 433, in test_get_flags_from_files_and_file_like_objects _create_mseed_file( ~~~~~~~~~~~~~~~~~~^ tf.name, record_count=112, seed=3412, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<23 lines>... "end_time_series": 4, ^^^^^^^^^^^^^^^^^^^^^ "clock_locked": 32}}) ^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/mseed/tests/test_mseed_util.py", line 75, in _create_mseed_file arr[:flags[key][name]] = 1 << _i ~~~^^^^^^^^^^^^^^^^^^^ OverflowError: Python integer 128 out of bounds for int8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/mseed/tests/test_mseed_util.py", line 653, in test_time_shifting util.shift_time_of_file(filename, output_filename, 22000) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/mseed/util.py", line 1612, in shift_time_of_file current_record[36] = current_record[36] & (~2) ~~~~~~~~~~~~~~~~~~~^~~~~~ OverflowError: Python integer -3 out of bounds for uint8
TypeError: only 0-dimensional arrays can be converted to Python scalars The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/mseed/tests/test_mseed_util.py", line 685, in test_time_shifting_special_case util.shift_time_of_file(input_file=filename, ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ output_file=output_filename, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ timeshift=123400) ^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/mseed/util.py", line 1662, in shift_time_of_file time[4] = hour[:] ~~~~^^^ ValueError: setting an array element with a sequence.
081
082 Example
083 -------
084
085 Reading K-NET/KiK-net files is handled by using ObsPy's
086 standard :func:`~obspy.core.stream.read` function. The format is detected
087 automatically.
088
089 >>> from obspy import read
090 >>> st = read('/path/to/test.knet')
UNEXPECTED EXCEPTION: ModuleNotFoundError("No module named 'xdrlib'")
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.io.nied[5]>", line 1, in <module>
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename
return func(*args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 208, in read
st = _generic_reader(pathname_or_url, _read, **kwargs)
File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader
generic = callback_func(pathnames[0], **kwargs)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file
result = func(filename, *args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 249, in _read
stream, format = _read_from_plugin('waveform', filename, format=format,
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
headonly=headonly, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin
is_format = buffered_load_entry_point(
format_ep.dist.key,
'obspy.plugin.%s.%s' % (plugin_type, format_ep.name),
'isFormat')
File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point
_ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point
return ep.load()
~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load
return self.resolve()
~~~~~~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module>
import xdrlib
ModuleNotFoundError: No module named 'xdrlib'
/workspace/obspy/obspy/io/nied/__init__.py:90: UnexpectedException
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/nied/tests/test_knet_reading.py", line 22, in test_read_knet_ascii tr = read(testfile)[0] ~~~~^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/workspace/obspy/obspy/core/util/base.py", line 623, in _generic_reader generic = callback_func(pathname_or_url, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 142, in uncompress_file return func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 396, in _read_from_plugin is_format = is_format(filename) File "/workspace/obspy/obspy/io/gse2/core.py", line 120, in _is_gse1 with open(filename, 'rb') as f: ~~~~^^^^^^^^^^^^^^^^ TypeError: expected str, bytes or os.PathLike object, not BytesIO During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/nied/tests/test_knet_reading.py", line 56, in test_read_knet_ascii_from_bytes_io tr = read(buf)[0] ~~~~^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 630, in _generic_reader generic = callback_func(fh.name, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/workspace/obspy/obspy/core/util/base.py", line 623, in _generic_reader generic = callback_func(pathname_or_url, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 142, in uncompress_file return func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 396, in _read_from_plugin is_format = is_format(filename) File "/workspace/obspy/obspy/io/gse2/core.py", line 120, in _is_gse1 with open(filename, 'rb') as f: ~~~~^^^^^^^^^^^^^^^^ TypeError: expected str, bytes or os.PathLike object, not BufferedReader During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/nied/tests/test_knet_reading.py", line 37, in test_read_knet_ascii_from_open_files tr = read(fh)[0] ~~~~^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 630, in _generic_reader generic = callback_func(fh.name, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/nied/tests/test_knet_reading.py", line 72, in test_station_name_hack tr = read(testfile, convert_stnm=True)[0] ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
048
049 :type filename: str
050 :param filename: PDAS file to be read.
051 :rtype: :class:`~obspy.core.stream.Stream`
052 :return: An ObsPy Stream object.
053
054 .. rubric:: Example
055
056 >>> from obspy import read
057 >>> st = read("/path/to/p1246001.108")
UNEXPECTED EXCEPTION: ModuleNotFoundError("No module named 'xdrlib'")
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.io.pdas.core._read_pdas[1]>", line 1, in <module>
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename
return func(*args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 208, in read
st = _generic_reader(pathname_or_url, _read, **kwargs)
File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader
generic = callback_func(pathnames[0], **kwargs)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file
result = func(filename, *args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 249, in _read
stream, format = _read_from_plugin('waveform', filename, format=format,
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
headonly=headonly, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin
is_format = buffered_load_entry_point(
format_ep.dist.key,
'obspy.plugin.%s.%s' % (plugin_type, format_ep.name),
'isFormat')
File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point
_ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point
return ep.load()
~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load
return self.resolve()
~~~~~~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module>
import xdrlib
ModuleNotFoundError: No module named 'xdrlib'
/workspace/obspy/obspy/io/pdas/core.py:57: UnexpectedException
044 .KW1..EH0 | 2015-10-09T22:51:11.675000Z - ... | 200.0 Hz, 2743 samples
045 .KW1..EH1 | 2015-10-09T22:50:51.000000Z - ... | 200.0 Hz, 3107 samples
046 .KW1..EH1 | 2015-10-09T22:51:05.925000Z - ... | 200.0 Hz, 768 samples
047 .KW1..EH1 | 2015-10-09T22:51:10.765000Z - ... | 200.0 Hz, 2925 samples
048 .KW1..EH2 | 2015-10-09T22:50:51.000000Z - ... | 200.0 Hz, 3405 samples
049 .KW1..EH2 | 2015-10-09T22:51:08.415000Z - ... | 200.0 Hz, 3395 samples
050
051 Network, location and component codes can be specified during reading:
052
053 >>> st = read("/path/to/225051000_00008656", network="BW", location="",
UNEXPECTED EXCEPTION: ModuleNotFoundError("No module named 'xdrlib'")
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.io.reftek[4]>", line 1, in <module>
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename
return func(*args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 208, in read
st = _generic_reader(pathname_or_url, _read, **kwargs)
File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader
generic = callback_func(pathnames[0], **kwargs)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file
result = func(filename, *args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 249, in _read
stream, format = _read_from_plugin('waveform', filename, format=format,
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
headonly=headonly, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin
is_format = buffered_load_entry_point(
format_ep.dist.key,
'obspy.plugin.%s.%s' % (plugin_type, format_ep.name),
'isFormat')
File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point
_ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point
return ep.load()
~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load
return self.resolve()
~~~~~~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module>
import xdrlib
ModuleNotFoundError: No module named 'xdrlib'
/workspace/obspy/obspy/io/reftek/__init__.py:53: UnexpectedException
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 419, in test_data_unpacking_steim1 rt = Reftek130.from_file(self.reftek_file) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 432, in test_data_unpacking_steim2 rt = Reftek130.from_file(self.reftek_file_steim2) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 318, in test_drop_not_implemented_packets _read_reftek130( ~~~~~~~~~~~~~~~^ fh.name, network="XX", location="01", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ component_codes=["1", "2", "3"], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ sort_permuted_package_sequence=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 216, in test_integration_with_obspy_core st_reftek = obspy.read( self.reftek_file, network="XX", location="01", component_codes=["1", "2", "3"]) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 350, in test_missing_event_trailer_packet st_reftek = _read_reftek130( fh.name, network="XX", location="01", component_codes=["1", "2", "3"], sort_permuted_package_sequence=True) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 406, in test_no_eh_et_packet _read_reftek130( ~~~~~~~~~~~~~~~^ fh.name, network="XX", location="01", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ component_codes=["1", "2", "3"], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ sort_permuted_package_sequence=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 283, in test_read_file_perturbed_packet_sequence st_reftek = _read_reftek130( fh.name, network="XX", location="01", component_codes=["1", "2", "3"], sort_permuted_package_sequence=True) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 183, in test_read_reftek130_no_component_codes_specified st_reftek = _read_reftek130( self.reftek_file, network="XX", location="01", sort_permuted_package_sequence=True) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 140, in test_read_reftek130_steim1 st_reftek = _read_reftek130( self.reftek_file, network="XX", location="01", component_codes=["1", "2", "3"], sort_permuted_package_sequence=True) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 153, in test_read_reftek130_steim2 st = _read_reftek130( self.reftek_file_steim2, network="XX", location="01", component_codes=["1", "2", "3"], sort_permuted_package_sequence=True) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 610, in test_reading_file_with_encoding_16 st = _read_reftek130(self.reftek_file_16) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 593, in test_reading_file_with_encoding_32 st = _read_reftek130(self.reftek_file_32) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/workspace/obspy/obspy/core/util/base.py", line 623, in _generic_reader generic = callback_func(pathname_or_url, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 142, in uncompress_file return func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 145, in from_file with io.open(filename, "rb") as fh: ~~~~~~~^^^^^^^^^^^^^^^^ TypeError: expected str, bytes or os.PathLike object, not BytesIO During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 552, in test_reading_file_with_multiple_events st = obspy.read(bytes_, format='REFTEK130', sort_permuted_package_sequence=True) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 630, in _generic_reader generic = callback_func(fh.name, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/workspace/obspy/obspy/core/util/base.py", line 623, in _generic_reader generic = callback_func(pathname_or_url, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 142, in uncompress_file return func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 145, in from_file with io.open(filename, "rb") as fh: ~~~~~~~^^^^^^^^^^^^^^^^ TypeError: expected str, bytes or os.PathLike object, not BytesIO During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 577, in test_reading_file_with_no_data_in_channel_zero st = obspy.read(bio, format='REFTEK130') File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 630, in _generic_reader generic = callback_func(fh.name, **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 522, in test_reading_packet_with_vpu_float_string data = _initial_unpack_packets(data) File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 513, in test_string_representations rt130 = Reftek130.from_file(self.reftek_file) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 376, in test_truncated_last_packet st_reftek = _read_reftek130( fh.name, network="XX", location="01", component_codes=["1", "2", "3"], sort_permuted_package_sequence=True) File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/reftek/tests/test_core.py", line 249, in test_warning_disturbed_packet_sequence _read_reftek130(fh.name, network="XX", location="01", ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ component_codes=["1", "2", "3"], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ sort_permuted_package_sequence=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/core.py", line 100, in _read_reftek130 rt130 = Reftek130.from_file(filename) File "/workspace/obspy/obspy/io/reftek/core.py", line 148, in from_file rt._data = _initial_unpack_packets(string) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/reftek/packet.py", line 256, in _initial_unpack_packets result['time'][:] += [_get_nanoseconds_for_start_of_year(y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ File "/workspace/obspy/obspy/io/reftek/util.py", line 44, in _get_nanoseconds_for_start_of_year year += 2000 OverflowError: Python integer 2000 out of bounds for uint8
044 Several key word arguments are available: ``headonly``, ``starttime``,
045 ``endtime``, ``merge``, ``contacts_north``, ``details``. They are passed to the
046 :func:`obspy.io.rg16.core._read_rg16` function so refer to it for details to
047 each parameter.
048
049 >>> import obspy
050 >>> from obspy.core.util import get_example_file
051 >>> filename = get_example_file('three_chans_six_traces.fcnt')
052 >>> # these are all equivalent:
053 >>> st = obspy.read(filename)
UNEXPECTED EXCEPTION: ModuleNotFoundError("No module named 'xdrlib'")
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.io.rg16[3]>", line 1, in <module>
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename
return func(*args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 208, in read
st = _generic_reader(pathname_or_url, _read, **kwargs)
File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader
generic = callback_func(pathnames[0], **kwargs)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file
result = func(filename, *args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 249, in _read
stream, format = _read_from_plugin('waveform', filename, format=format,
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
headonly=headonly, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin
is_format = buffered_load_entry_point(
format_ep.dist.key,
'obspy.plugin.%s.%s' % (plugin_type, format_ep.name),
'isFormat')
File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point
_ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point
return ep.load()
~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load
return self.resolve()
~~~~~~~~~~~~^^
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module>
import xdrlib
ModuleNotFoundError: No module named 'xdrlib'
/workspace/obspy/obspy/io/rg16/__init__.py:53: UnexpectedException
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/rg16/tests/test_read_rg16.py", line 35, in test_reading_rg16_files st_1 = read(fcnt_file) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 384, in _read_from_plugin is_format = buffered_load_entry_point( format_ep.dist.key, 'obspy.plugin.%s.%s' % (plugin_type, format_ep.name), 'isFormat') File "/workspace/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 3209, in load_entry_point return ep.load() ~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2779, in load return self.resolve() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2785, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/workspace/obspy/obspy/io/ah/core.py", line 18, in <module> import xdrlib ModuleNotFoundError: No module named 'xdrlib'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/sac/tests/test_core.py", line 255, in test_iztype11 self.assertAlmostEqual(t1.timestamp, t2.timestamp, 5) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 961, in assertAlmostEqual raise self.failureException(msg) AssertionError: 1073117342.3999912 != 1073117342.4 within 5 places (8.821487426757812e-06 difference)
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/sac/tests/test_core.py", line 113, in test_read_big_endian_via_obspy tr = read(self.filebe, format='SAC')[0] ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/workspace/obspy/obspy/io/sac/arrayio.py", line 416, in write_sac_ascii np.savetxt(f, data[5 * rows:], delimiter=b'\t') ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1595, in savetxt format = delimiter.join(fmt) TypeError: sequence item 0: expected a bytes-like object, str found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/sac/tests/test_core.py", line 97, in test_read_write_xy_via_obspy tr.write(tempfile, format='SACXY') ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/trace.py", line 999, in write Stream([self]).write(filename, format, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 1456, in write write_format(self, filename, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 282, in _write_sac_xy _internal_write_sac_xy(trace, fh, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 302, in _internal_write_sac_xy sac.write(buf, ascii=True, flush_headers=False) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1135, in write _io.write_sac_ascii(dest, self._hf, self._hi, self._hs, data) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 420, in write_sac_ascii raise SacIOError("Cannot write trace values: " + f.name) obspy.io.sac.util.SacIOError: Cannot write trace values: /tmp/obspy-ej3ymtra.tmp
Traceback (most recent call last): File "/workspace/obspy/obspy/io/sac/arrayio.py", line 416, in write_sac_ascii np.savetxt(f, data[5 * rows:], delimiter=b'\t') ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1595, in savetxt format = delimiter.join(fmt) TypeError: sequence item 0: expected a bytes-like object, str found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/sac/tests/test_core.py", line 622, in test_read_xy_write_xy_from_bytes_io _write_sac_xy(st, fh) ~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 272, in _write_sac_xy _internal_write_sac_xy(stream[0], filename, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 302, in _internal_write_sac_xy sac.write(buf, ascii=True, flush_headers=False) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1135, in write _io.write_sac_ascii(dest, self._hf, self._hi, self._hs, data) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 420, in write_sac_ascii raise SacIOError("Cannot write trace values: " + f.name) ^^^^^^ AttributeError: '_io.BytesIO' object has no attribute 'name'
Traceback (most recent call last): File "/workspace/obspy/obspy/io/sac/arrayio.py", line 416, in write_sac_ascii np.savetxt(f, data[5 * rows:], delimiter=b'\t') ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1595, in savetxt format = delimiter.join(fmt) TypeError: sequence item 0: expected a bytes-like object, str found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/sac/tests/test_core.py", line 639, in test_read_xy_write_xy_from_open_file_binary_mode _write_sac_xy(st, tf) ~~~~~~~~~~~~~^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 272, in _write_sac_xy _internal_write_sac_xy(stream[0], filename, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 302, in _internal_write_sac_xy sac.write(buf, ascii=True, flush_headers=False) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1135, in write _io.write_sac_ascii(dest, self._hf, self._hi, self._hs, data) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 420, in write_sac_ascii raise SacIOError("Cannot write trace values: " + f.name) obspy.io.sac.util.SacIOError: Cannot write trace values: /tmp/obspy-cbida4sz.tmp
Traceback (most recent call last): File "/workspace/obspy/obspy/io/sac/arrayio.py", line 416, in write_sac_ascii np.savetxt(f, data[5 * rows:], delimiter=b'\t') ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1595, in savetxt format = delimiter.join(fmt) TypeError: sequence item 0: expected a bytes-like object, str found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/sac/tests/test_core.py", line 82, in test_read_xy_write_xy_via_obspy tr.write(tempfile, format='SACXY') ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/trace.py", line 999, in write Stream([self]).write(filename, format, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 1456, in write write_format(self, filename, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 282, in _write_sac_xy _internal_write_sac_xy(trace, fh, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 302, in _internal_write_sac_xy sac.write(buf, ascii=True, flush_headers=False) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1135, in write _io.write_sac_ascii(dest, self._hf, self._hi, self._hs, data) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 420, in write_sac_ascii raise SacIOError("Cannot write trace values: " + f.name) obspy.io.sac.util.SacIOError: Cannot write trace values: /tmp/obspy-9eaud51g.tmp
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/sac/tests/test_core.py", line 127, in test_swap_bytes_via_obspy trbe = read(self.filebe, format='SAC')[0] ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/workspace/obspy/obspy/io/sac/arrayio.py", line 416, in write_sac_ascii np.savetxt(f, data[5 * rows:], delimiter=b'\t') ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1595, in savetxt format = delimiter.join(fmt) TypeError: sequence item 0: expected a bytes-like object, str found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/sac/tests/test_core.py", line 361, in test_write_sac_xy_with_minimum_stats tr.write(sac_file, 'SACXY') ~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/trace.py", line 999, in write Stream([self]).write(filename, format, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 1456, in write write_format(self, filename, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 282, in _write_sac_xy _internal_write_sac_xy(trace, fh, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 302, in _internal_write_sac_xy sac.write(buf, ascii=True, flush_headers=False) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1135, in write _io.write_sac_ascii(dest, self._hf, self._hi, self._hs, data) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 420, in write_sac_ascii raise SacIOError("Cannot write trace values: " + f.name) obspy.io.sac.util.SacIOError: Cannot write trace values: /tmp/obspy-8k4_qflo.tmp
Traceback (most recent call last): File "/workspace/obspy/obspy/io/sac/arrayio.py", line 416, in write_sac_ascii np.savetxt(f, data[5 * rows:], delimiter=b'\t') ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1595, in savetxt format = delimiter.join(fmt) TypeError: sequence item 0: expected a bytes-like object, str found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/sac/tests/test_core.py", line 423, in test_write_small_trace tr.write(tempfile, format=format) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/trace.py", line 999, in write Stream([self]).write(filename, format, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 1456, in write write_format(self, filename, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 282, in _write_sac_xy _internal_write_sac_xy(trace, fh, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 302, in _internal_write_sac_xy sac.write(buf, ascii=True, flush_headers=False) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1135, in write _io.write_sac_ascii(dest, self._hf, self._hi, self._hs, data) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 420, in write_sac_ascii raise SacIOError("Cannot write trace values: " + f.name) obspy.io.sac.util.SacIOError: Cannot write trace values: /tmp/obspy-tjx_2cs2.tmp
Traceback (most recent call last): File "/workspace/obspy/obspy/io/sac/arrayio.py", line 416, in write_sac_ascii np.savetxt(f, data[5 * rows:], delimiter=b'\t') ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1595, in savetxt format = delimiter.join(fmt) TypeError: sequence item 0: expected a bytes-like object, str found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/sac/tests/test_core.py", line 742, in test_writing_to_file_like_objects_with_obspy st.write(fh, format="sacxy") ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/stream.py", line 1456, in write write_format(self, filename, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 272, in _write_sac_xy _internal_write_sac_xy(stream[0], filename, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/core.py", line 302, in _internal_write_sac_xy sac.write(buf, ascii=True, flush_headers=False) ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1135, in write _io.write_sac_ascii(dest, self._hf, self._hi, self._hs, data) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 420, in write_sac_ascii raise SacIOError("Cannot write trace values: " + f.name) ^^^^^^ AttributeError: '_io.BytesIO' object has no attribute 'name'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/sac/tests/test_sactrace.py", line 80, in test_read_sac_byteorder sac = SACTrace.read(self.filebe) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/scardec/tests/test_core.py", line 143, in test_read_and_write_scardec_from_bytes_io cat.write(buf2, format="SCARDEC") ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/event/catalog.py", line 506, in write return write_format(self, filename, **kwargs) File "/workspace/obspy/obspy/io/scardec/core.py", line 327, in _write_scardec return _buffer_proxy(filename_or_buf, _internal_write_scardec, file_mode="wb", catalog=catalog, **kwargs) File "/workspace/obspy/obspy/io/scardec/core.py", line 64, in _buffer_proxy ret_val = function(filename_or_buf, *args, **kwargs) File "/workspace/obspy/obspy/io/scardec/core.py", line 344, in _internal_write_scardec _internal_write_single_scardec(buf, event) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/scardec/core.py", line 453, in _internal_write_single_scardec np.savetxt(buf, np.asarray([times, samples]).T, ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmt=' %16.9E %16.9E'.encode('ascii', 'strict')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1603, in savetxt raise ValueError(f'invalid fmt: {fmt!r}') ValueError: invalid fmt: b' %16.9E %16.9E'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/scardec/tests/test_core.py", line 50, in test_read_and_write_scardec_from_files cat.write(temp_filename, format="SCARDEC") ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/event/catalog.py", line 506, in write return write_format(self, filename, **kwargs) File "/workspace/obspy/obspy/io/scardec/core.py", line 327, in _write_scardec return _buffer_proxy(filename_or_buf, _internal_write_scardec, file_mode="wb", catalog=catalog, **kwargs) File "/workspace/obspy/obspy/io/scardec/core.py", line 70, in _buffer_proxy return function(fh, *args, **kwargs) File "/workspace/obspy/obspy/io/scardec/core.py", line 344, in _internal_write_scardec _internal_write_single_scardec(buf, event) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/scardec/core.py", line 453, in _internal_write_single_scardec np.savetxt(buf, np.asarray([times, samples]).T, ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmt=' %16.9E %16.9E'.encode('ascii', 'strict')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1603, in savetxt raise ValueError(f'invalid fmt: {fmt!r}') ValueError: invalid fmt: b' %16.9E %16.9E'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/scardec/tests/test_core.py", line 97, in test_read_and_write_scardec_from_open_files cat.write(tf, format="SCARDEC") ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/event/catalog.py", line 506, in write return write_format(self, filename, **kwargs) File "/workspace/obspy/obspy/io/scardec/core.py", line 327, in _write_scardec return _buffer_proxy(filename_or_buf, _internal_write_scardec, file_mode="wb", catalog=catalog, **kwargs) File "/workspace/obspy/obspy/io/scardec/core.py", line 64, in _buffer_proxy ret_val = function(filename_or_buf, *args, **kwargs) File "/workspace/obspy/obspy/io/scardec/core.py", line 344, in _internal_write_scardec _internal_write_single_scardec(buf, event) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/scardec/core.py", line 453, in _internal_write_single_scardec np.savetxt(buf, np.asarray([times, samples]).T, ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmt=' %16.9E %16.9E'.encode('ascii', 'strict')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1603, in savetxt raise ValueError(f'invalid fmt: {fmt!r}') ValueError: invalid fmt: b' %16.9E %16.9E'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/shapefile/tests/test_core.py", line 191, in test_write_catalog_shapefile _write_shapefile(cat, "catalog.shp") ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 76, in _write_shapefile _add_catalog_layer(writer, obj, extra_fields=extra_fields) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 126, in _add_catalog_layer _create_layer(writer, field_definitions, extra_fields) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 339, in _create_layer _add_field(writer, name, type_, width, precision) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 333, in _add_field writer.field(name, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^ TypeError: Writer.field() got an unexpected keyword argument 'fieldType'. Did you mean 'field_type'?
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/shapefile/tests/test_core.py", line 341, in test_write_catalog_shapefile_via_plugin cat.write("catalog.shp", "SHAPEFILE") ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/event/catalog.py", line 506, in write return write_format(self, filename, **kwargs) File "/workspace/obspy/obspy/io/shapefile/core.py", line 76, in _write_shapefile _add_catalog_layer(writer, obj, extra_fields=extra_fields) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 126, in _add_catalog_layer _create_layer(writer, field_definitions, extra_fields) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 339, in _create_layer _add_field(writer, name, type_, width, precision) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 333, in _add_field writer.field(name, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^ TypeError: Writer.field() got an unexpected keyword argument 'fieldType'. Did you mean 'field_type'?
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/shapefile/tests/test_core.py", line 236, in test_write_catalog_shapefile_with_extra_field _write_shapefile( ~~~~~~~~~~~~~~~~^ cat, "catalog.shp", ^^^^^^^^^^^^^^^^^^^ extra_fields=bad_extra_fields_wrong_length) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 76, in _write_shapefile _add_catalog_layer(writer, obj, extra_fields=extra_fields) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 126, in _add_catalog_layer _create_layer(writer, field_definitions, extra_fields) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 339, in _create_layer _add_field(writer, name, type_, width, precision) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 333, in _add_field writer.field(name, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^ TypeError: Writer.field() got an unexpected keyword argument 'fieldType'. Did you mean 'field_type'?
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/shapefile/tests/test_core.py", line 375, in test_write_inventory_shapefile _write_shapefile(inv, "inventory.shp") ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 78, in _write_shapefile _add_inventory_layer(writer, obj, extra_fields=extra_fields) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 238, in _add_inventory_layer _create_layer(writer, field_definitions, extra_fields) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 339, in _create_layer _add_field(writer, name, type_, width, precision) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 333, in _add_field writer.field(name, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^ TypeError: Writer.field() got an unexpected keyword argument 'fieldType'. Did you mean 'field_type'?
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/shapefile/tests/test_core.py", line 405, in test_write_inventory_shapefile_via_plugin inv.write("inventory.shp", "SHAPEFILE") ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/inventory/inventory.py", line 372, in write return write_format(self, path_or_file_object, **kwargs) File "/workspace/obspy/obspy/io/shapefile/core.py", line 78, in _write_shapefile _add_inventory_layer(writer, obj, extra_fields=extra_fields) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 238, in _add_inventory_layer _create_layer(writer, field_definitions, extra_fields) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 339, in _create_layer _add_field(writer, name, type_, width, precision) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 333, in _add_field writer.field(name, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^ TypeError: Writer.field() got an unexpected keyword argument 'fieldType'. Did you mean 'field_type'?
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/io/shapefile/tests/test_core.py", line 297, in test_write_inventory_shapefile_with_extra_field _write_shapefile( ~~~~~~~~~~~~~~~~^ inv, "inventory.shp", ^^^^^^^^^^^^^^^^^^^^^ extra_fields=bad_extra_fields_wrong_length) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 78, in _write_shapefile _add_inventory_layer(writer, obj, extra_fields=extra_fields) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 238, in _add_inventory_layer _create_layer(writer, field_definitions, extra_fields) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 339, in _create_layer _add_field(writer, name, type_, width, precision) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 333, in _add_field writer.field(name, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^ TypeError: Writer.field() got an unexpected keyword argument 'fieldType'. Did you mean 'field_type'?
058 RtTrace object (step 3) which will automatically process any appended data
059 chunks.
060
061 1. Read first trace of example SAC data file and extract contained time
062 offset and epicentral distance of an earthquake::
063
064 >>> from obspy.realtime import RtTrace
065 >>> from obspy import read
066 >>> from obspy.realtime.signal import calculate_mwp_mag
067 >>> data_trace = read('/path/to/II.TLY.BHZ.SAC')[0]
UNEXPECTED EXCEPTION: AttributeError("'numpy.ndarray' object has no attribute 'newbyteorder'")
Traceback (most recent call last):
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/doctest.py", line 1398, in __run
exec(compile(example.source, filename, "single",
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compileflags, True), test.globs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<doctest obspy.realtime.rttrace.RtTrace[3]>", line 1, in <module>
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename
return func(*args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 208, in read
st = _generic_reader(pathname_or_url, _read, **kwargs)
File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader
generic = callback_func(pathnames[0], **kwargs)
File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file
result = func(filename, *args, **kwargs)
File "/workspace/obspy/obspy/core/stream.py", line 249, in _read
stream, format = _read_from_plugin('waveform', filename, format=format,
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
headonly=headonly, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac
return _internal_read_sac(buf=fh, headonly=headonly,
debug_headers=debug_headers, fsize=fsize,
**kwargs)
File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac
sac = SACTrace.read(buf, headonly=headonly, ascii=False,
byteorder=byteorder, checksize=fsize,
encoding=encoding_str)
File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read
hf, hi, hs, data = _io.read_sac(source, headonly=headonly,
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
byteorder=byteorder,
^^^^^^^^^^^^^^^^^^^^
checksize=checksize)
^^^^^^^^^^^^^^^^^^^^
File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac
hf = hf.newbyteorder('S')
^^^^^^^^^^^^^^^
AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
/workspace/obspy/obspy/realtime/rttrace.py:67: UnexpectedException
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1110, in execute result: FixtureValue = ihook.pytest_fixture_setup( ~~~~~~~~~~~~~~~~~~~~~~~~~~^ fixturedef=self, request=request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/setuponly.py", line 36, in pytest_fixture_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1091, in execute raise exc.with_traceback(exc_tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1091, in execute raise exc.with_traceback(exc_tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1091, in execute raise exc.with_traceback(exc_tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1091, in execute raise exc.with_traceback(exc_tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1091, in execute raise exc.with_traceback(exc_tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1091, in execute raise exc.with_traceback(exc_tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1091, in execute raise exc.with_traceback(exc_tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1091, in execute raise exc.with_traceback(exc_tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1091, in execute raise exc.with_traceback(exc_tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1091, in execute raise exc.with_traceback(exc_tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 165, in pytest_runtest_setup item.session._setupstate.setup(item) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 523, in setup col.setup() ~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 227, in setup super().setup() ~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1723, in setup self._request._fillfixtures() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 707, in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 539, in getfixturevalue fixturedef = self._get_active_fixturedef(argname) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 627, in _get_active_fixturedef fixturedef.execute(request=subrequest) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1091, in execute raise exc.with_traceback(exc_tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 1202, in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/fixtures.py", line 908, in call_fixture_func fixture_result = next(generator) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unittest.py", line 154, in unittest_setup_class_fixture setup() ~~~~~^^ File "/workspace/obspy/obspy/realtime/tests/test_signal.py", line 27, in setUpClass cls.orig_trace = read(os.path.join(os.path.dirname(__file__), 'data', ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'II.TLY.BHZ.SAC'), ^^^^^^^^^^^^^^^^^^ dtype=np.float64)[0] ^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/workspace/obspy/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/workspace/obspy/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/workspace/obspy/obspy/core/stream.py", line 249, in _read stream, format = _read_from_plugin('waveform', filename, format=format, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ headonly=headonly, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 344, in _read_sac return _internal_read_sac(buf=fh, headonly=headonly, debug_headers=debug_headers, fsize=fsize, **kwargs) File "/workspace/obspy/obspy/io/sac/core.py", line 389, in _internal_read_sac sac = SACTrace.read(buf, headonly=headonly, ascii=False, byteorder=byteorder, checksize=fsize, encoding=encoding_str) File "/workspace/obspy/obspy/io/sac/sactrace.py", line 1086, in read hf, hi, hs, data = _io.read_sac(source, headonly=headonly, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ byteorder=byteorder, ^^^^^^^^^^^^^^^^^^^^ checksize=checksize) ^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/sac/arrayio.py", line 144, in read_sac hf = hf.newbyteorder('S') ^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'newbyteorder'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_calibration.py", line 103, in test_relcal_different_overlaps freq, amp, phase = rel_calib_stack( ~~~~~~~~~~~~~~~^ st1, st2, calfile, 20, smooth=10, overlap_frac=0.5, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ save_data=False) ^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/calibration.py", line 88, in rel_calib_stack spectral_helper(tr1, tr1, NFFT=nfft, Fs=sampfreq, noverlap=noverlap) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/calibration.py", line 222, in spectral_helper p_xy = np.zeros((num_freqs, n), np.complex_) ^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/__init__.py", line 778, in __getattr__ raise AttributeError( ...<3 lines>... ) AttributeError: `np.complex_` was removed in the NumPy 2.0 release. Use `np.complex128` instead.
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_calibration.py", line 35, in test_relcal_sts2_vs_unknown freq, amp, phase = rel_calib_stack(st1, st2, calfile, 20, ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ smooth=10, save_data=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/calibration.py", line 88, in rel_calib_stack spectral_helper(tr1, tr1, NFFT=nfft, Fs=sampfreq, noverlap=noverlap) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/calibration.py", line 222, in spectral_helper p_xy = np.zeros((num_freqs, n), np.complex_) ^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/__init__.py", line 778, in __getattr__ raise AttributeError( ...<3 lines>... ) AttributeError: `np.complex_` was removed in the NumPy 2.0 release. Use `np.complex128` instead.
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_calibration.py", line 130, in test_relcal_using_dict freq, amp, phase = rel_calib_stack(st1, st2, calfile, 20, smooth=10, ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ save_data=False) ^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/calibration.py", line 88, in rel_calib_stack spectral_helper(tr1, tr1, NFFT=nfft, Fs=sampfreq, noverlap=noverlap) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/calibration.py", line 222, in spectral_helper p_xy = np.zeros((num_freqs, n), np.complex_) ^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/__init__.py", line 778, in __getattr__ raise AttributeError( ...<3 lines>... ) AttributeError: `np.complex_` was removed in the NumPy 2.0 release. Use `np.complex128` instead.
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_calibration.py", line 79, in test_relcal_using_traces freq, amp, phase = rel_calib_stack(st1, st2, calfile, 20, smooth=10, ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ save_data=False) ^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/calibration.py", line 88, in rel_calib_stack spectral_helper(tr1, tr1, NFFT=nfft, Fs=sampfreq, noverlap=noverlap) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/calibration.py", line 222, in spectral_helper p_xy = np.zeros((num_freqs, n), np.complex_) ^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/__init__.py", line 778, in __getattr__ raise AttributeError( ...<3 lines>... ) AttributeError: `np.complex_` was removed in the NumPy 2.0 release. Use `np.complex128` instead.
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_differentiate_and_integrate.py", line 24, in test_cumtrapz_integration integrate_cumtrapz(np.ones(10), dx=1.0), ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/differentiate_and_integrate.py", line 27, in integrate_cumtrapz ret = scipy.integrate.cumtrapz(data, dx=dx) ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'scipy.integrate' has no attribute 'cumtrapz'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_hoctavbands.py", line 87, in setUp util.enframe(data, signal.hamming(self.n), self.inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_invsim.py", line 466, in test_evalresp_seed_identifiers_work rel_diff = np.abs(response_2 - response_1).ptp() / \ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'ptp'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_polarization.py", line 60, in setUp util.enframe(data_z, signal.hamming(n), inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_polarization.py", line 60, in setUp util.enframe(data_z, signal.hamming(n), inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_polarization.py", line 60, in setUp util.enframe(data_z, signal.hamming(n), inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_polarization.py", line 60, in setUp util.enframe(data_z, signal.hamming(n), inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 647, in run self._callSetUp() ~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 603, in _callSetUp self.setUp() ~~~~~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_polarization.py", line 60, in setUp util.enframe(data_z, signal.hamming(n), inc) ^^^^^^^^^^^^^^ AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_quality_control.py", line 693, in test_clock_locked_percentage self.assertTrue(abs(sum(record_lengths) - (total_time)) < 1e-6) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 744, in assertTrue raise self.failureException(msg) AssertionError: False is not true
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 58, in testPartExecutor yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 651, in run self._callTestMethod(testMethod) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/unittest/case.py", line 606, in _callTestMethod if method() is not None: ~~~~~~^^ File "/workspace/obspy/obspy/signal/tests/test_quality_control.py", line 272, in test_extraction_fixed_header_flags _create_mseed_file(tf1.name, record_count=35, ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ starttime=obspy.UTCDateTime(0), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<23 lines>... "end_time_series": 24, ^^^^^^^^^^^^^^^^^^^^^^ "clock_locked": 32}}) ^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/mseed/tests/test_mseed_util.py", line 75, in _create_mseed_file arr[:flags[key][name]] = 1 << _i ~~~^^^^^^^^^^^^^^^^^^^ OverflowError: Python integer 128 out of bounds for int8
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/signal/tests/test_tf_misfit.py", line 296, in test_plot_tf_misfits plot_tf_misfits(state.st1p, state.st2, dt=state.dt, ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmin=state.fmin, fmax=state.fmax, show=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/tf_misfit.py", line 1084, in plot_tf_misfits textstr = 'EM = %.2f\nPM = %.2f' % (_em[itr], _pm[itr]) ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ TypeError: only 0-dimensional arrays can be converted to Python scalars
Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 353, in from_call result: TResult | None = func() ~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 245, in <lambda> lambda: runtest_hook(item=item, **kwds), ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() ~~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) ~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/skipping.py", line 268, in pytest_runtest_call return (yield) ^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/runner.py", line 179, in pytest_runtest_call item.runtest() ~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 1720, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/python.py", line 166, in pytest_pyfunc_call result = testfunction(**testargs) File "/workspace/obspy/obspy/signal/tests/test_tf_misfit.py", line 301, in test_plot_tf_gofs plot_tf_gofs(state.st1p, state.st2, dt=state.dt, fmin=state.fmin, ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ fmax=state.fmax, show=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/signal/tf_misfit.py", line 1344, in plot_tf_gofs textstr = 'EG = %2.2f\nPG = %2.2f' % (_eg[itr], _pg[itr]) ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ TypeError: only 0-dimensional arrays can be converted to Python scalars
Skipped tests (19)
| Submodule | Test | Skip message |
|---|---|---|
| core | core/stream.py::obspy.core.stream._is_pickle | Skipped: all tests skipped by +SKIP option |
| core.util | core/util/misc.py::obspy.core.util.misc.CatchOutput | Skipped: all tests skipped by +SKIP option |
| core.util | core/util/misc.py::obspy.core.util.misc.SuppressOutput | Skipped: all tests skipped by +SKIP option |
| core.util | core/util/misc.py::obspy.core.util.misc.TemporaryWorkingDirectory | Skipped: all tests skipped by +SKIP option |
| geodetics | geodetics/tests/test_util_geodetics.py::TestUtilGeodetics::test_gps_2_dist_azimuth_bug150 | Skipped: Geographiclib installed, not using calc_vincenty_inverse |
| imaging | imaging/tests/test_mopad_script.py::TestMopad::test_script_plot | Skipped: Currently broken until further review. |
| io.ascii | io/ascii/core.py::obspy.io.ascii.core._is_slist | Skipped: all tests skipped by +SKIP option |
| io.ascii | io/ascii/core.py::obspy.io.ascii.core._is_tspair | Skipped: all tests skipped by +SKIP option |
| io.nordic | io/nordic/utils.py::obspy.io.nordic.utils._evmagtonor | Skipped: all tests skipped by +SKIP option |
| io.nordic | io/nordic/utils.py::obspy.io.nordic.utils._nortoevmag | Skipped: all tests skipped by +SKIP option |
| io.pde | io/pde/mchedr.py::obspy.io.pde.mchedr._is_mchedr | Skipped: all tests skipped by +SKIP option |
| io.quakeml | io/quakeml/core.py::obspy.io.quakeml.core._is_quakeml | Skipped: all tests skipped by +SKIP option |
| io.seisan | io/seisan/core.py::obspy.io.seisan.core._is_seisan | Skipped: all tests skipped by +SKIP option |
| io.sh | io/sh/core.py::obspy.io.sh.core._is_asc | Skipped: all tests skipped by +SKIP option |
| io.sh | io/sh/core.py::obspy.io.sh.core._is_q | Skipped: all tests skipped by +SKIP option |
| io.wav | io/wav/core.py::obspy.io.wav.core._is_wav | Skipped: all tests skipped by +SKIP option |
| io.y | io/y/core.py::obspy.io.y.core._is_y | Skipped: all tests skipped by +SKIP option |
| signal | signal/quality_control.py::obspy.signal.quality_control.MSEEDMetadata | Skipped: all tests skipped by +SKIP option |
| signal | signal/tests/test_quality_control.py::QualityControlTestCase::test_schema_validation | Skipped: Test requires the jsonschema module |
Slowest tests (20)
Warnings (20)
| Stage | Filename | Category | Message |
|---|---|---|---|
| runtest | /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unraisableexception.py:67 | PytestUnraisableExceptionWarning | Exception ignored in: <function Writer.__del__ at 0x7f016397b740> Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/shapefile.py", line 3312, in __del__ self.close() ~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/shapefile.py", line 3341, in close self.__dbfHeader() ~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/shapefile.py", line 3545, in __dbfHeader raise ShapefileException( "Shapefile dbf file must contain at least one field." ) shapefile.ShapefileException: Shapefile dbf file must contain at least one field. Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. |
| runtest | /workspace/obspy/obspy/core/inventory/inventory.py:982 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| runtest | /workspace/obspy/obspy/io/nordic/ellipse.py:377 | DeprecationWarning | Arrays of 2-dimensional vectors are deprecated. Use arrays of 3-dimensional vectors instead. (deprecated in NumPy 2.0) |
| runtest | /workspace/obspy/obspy/io/nlloc/tests/test_core.py:116 | DeprecationWarning | 'count' is passed as positional argument |
| runtest | /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/numpy/lib/_format_impl.py:838 | VisibleDeprecationWarning | dtype(): align should be passed as Python or NumPy boolean but got `align=0`. Did you mean to pass a tuple to create a subarray type? (Deprecated NumPy 2.4) |
| collect | /workspace/obspy/obspy/imaging/cm.py:299 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| collect | /workspace/obspy/obspy/imaging/cm.py:300 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| runtest | /workspace/obspy/obspy/imaging/waveform.py:1292 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| runtest | /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/matplotlib/_mathtext.py:2197 | PyparsingDeprecationWarning | 'parseString' deprecated - use 'parse_string' |
| collect | /workspace/obspy/obspy/clients/filesystem/db.py:18 | MovedIn20Warning | The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) |
| collect | /workspace/obspy/obspy/signal/polarization.py:15 | DeprecationWarning | `scipy.odr` is deprecated as of version 1.17.0 and will be removed in SciPy 1.19.0. Please use `https://pypi.org/project/odrpack/` instead. |
| runtest | /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/matplotlib/_mathtext.py:2170 | PyparsingDeprecationWarning | 'parseString' deprecated - use 'parse_string' |
| runtest | /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pyparsing/util.py:466 | PyparsingDeprecationWarning | 'parseAll' argument is deprecated, use 'parse_all' |
| runtest | /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unraisableexception.py:67 | PytestUnraisableExceptionWarning | Exception ignored in: <function Writer.__del__ at 0x7f016397b740> Traceback (most recent call last): File "/workspace/obspy/obspy/io/shapefile/tests/test_core.py", line 236, in test_write_catalog_shapefile_with_extra_field _write_shapefile( ~~~~~~~~~~~~~~~~^ cat, "catalog.shp", ^^^^^^^^^^^^^^^^^^^ extra_fields=bad_extra_fields_wrong_length) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 76, in _write_shapefile _add_catalog_layer(writer, obj, extra_fields=extra_fields) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 126, in _add_catalog_layer _create_layer(writer, field_definitions, extra_fields) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 339, in _create_layer _add_field(writer, name, type_, width, precision) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 333, in _add_field writer.field(name, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^ TypeError: Writer.field() got an unexpected keyword argument 'fieldType'. Did you mean 'field_type'? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/shapefile.py", line 3312, in __del__ self.close() ~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/shapefile.py", line 3341, in close self.__dbfHeader() ~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/shapefile.py", line 3545, in __dbfHeader raise ShapefileException( "Shapefile dbf file must contain at least one field." ) shapefile.ShapefileException: Shapefile dbf file must contain at least one field. Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. |
| runtest | /workspace/obspy/obspy/io/nlloc/tests/test_core.py:117 | DeprecationWarning | 'count' is passed as positional argument |
| runtest | /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/_pytest/unraisableexception.py:67 | PytestUnraisableExceptionWarning | Exception ignored in: <function Writer.__del__ at 0x7f016397b740> Traceback (most recent call last): File "/workspace/obspy/obspy/io/shapefile/tests/test_core.py", line 297, in test_write_inventory_shapefile_with_extra_field _write_shapefile( ~~~~~~~~~~~~~~~~^ inv, "inventory.shp", ^^^^^^^^^^^^^^^^^^^^^ extra_fields=bad_extra_fields_wrong_length) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 78, in _write_shapefile _add_inventory_layer(writer, obj, extra_fields=extra_fields) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 238, in _add_inventory_layer _create_layer(writer, field_definitions, extra_fields) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 339, in _create_layer _add_field(writer, name, type_, width, precision) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/obspy/obspy/io/shapefile/core.py", line 333, in _add_field writer.field(name, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^ TypeError: Writer.field() got an unexpected keyword argument 'fieldType'. Did you mean 'field_type'? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/shapefile.py", line 3312, in __del__ self.close() ~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/shapefile.py", line 3341, in close self.__dbfHeader() ~~~~~~~~~~~~~~~~^^ File "/home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/shapefile.py", line 3545, in __dbfHeader raise ShapefileException( "Shapefile dbf file must contain at least one field." ) shapefile.ShapefileException: Shapefile dbf file must contain at least one field. Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. |
| runtest | /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/matplotlib/_mathtext.py:2178 | PyparsingDeprecationWarning | 'resetCache' deprecated - use 'reset_cache' |
| collect | /home/ubuntu/.pyenv/versions/3.13.7/lib/python3.13/site-packages/matplotlib/_mathtext.py:45 | PyparsingDeprecationWarning | 'enablePackrat' deprecated - use 'enable_packrat' |
| runtest | /workspace/obspy/obspy/imaging/source.py:376 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| runtest | /workspace/obspy/obspy/io/kml/core.py:65 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |