Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumPy 1.22 failures #70

Open
Molkree opened this issue Jan 1, 2022 · 0 comments
Open

NumPy 1.22 failures #70

Molkree opened this issue Jan 1, 2022 · 0 comments
Labels
bug Something isn't working ci Changes to Continuous Integration

Comments

@Molkree
Copy link
Member

Molkree commented Jan 1, 2022

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.

@Molkree Molkree added bug Something isn't working ci Changes to Continuous Integration labels Jan 1, 2022
Molkree added a commit to Molkree/orca-action-workflow that referenced this issue Jan 1, 2022
Molkree added a commit to Molkree/orca-action-workflow that referenced this issue Jan 1, 2022
@Molkree Molkree pinned this issue Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci Changes to Continuous Integration
Projects
None yet
Development

No branches or pull requests

1 participant