Open
Description
CI recently started failing with the following traceback:
Traceback (most recent call last):
File "/home/runner/work/orca-action-workflow/orca-action-workflow/ooi_processing.py", line 7, in <module>
from ooipy.request import hydrophone_request
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/ooipy/__init__.py", line 3, in <module>
import ooipy.tools.workflow
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/ooipy/tools/workflow.py", line 12, in <module>
from ooipy.hydrophone.basic import Psd, Spectrogram
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/ooipy/hydrophone/basic.py", line 21, in <module>
from obspy import Trace
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/obspy/__init__.py", line 39, in <module>
from obspy.core.utcdatetime import UTCDateTime # NOQA
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/obspy/core/__init__.py", line 124, in <module>
from obspy.core.utcdatetime import UTCDateTime # NOQA
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/obspy/core/utcdatetime.py", line 27, in <module>
from obspy.core.util.deprecation_helpers import ObsPyDeprecationWarning
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/obspy/core/util/__init__.py", line 27, in <module>
from obspy.core.util.base import (ALL_MODULES, DEFAULT_MODULES,
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/obspy/core/util/base.py", line 36, in <module>
from obspy.core.util.misc import to_int_or_zero, buffered_load_entry_point
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/obspy/core/util/misc.py", line 214, in <module>
loadtxt(np.array([0]), ndmin=1)
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/numpy/lib/npyio.py", line 1086, in loadtxt
ncols = len(usecols or split_line(first_line))
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/numpy/lib/npyio.py", line 977, in split_line
line = line.split(comment, 1)[0]
AttributeError: 'numpy.int64' object has no attribute 'split'
Error: Process completed with exit code 1.
This is due to the NumPy releasing version 1.22, which in turn causes obspy to fail (issue upstream).
A quick fix would be to only allow numpy<1.22 in CI but a proper fix would be to at least add requirements.txt
or create a package and specify dependencies in setup.cfg
.