Skip to content

scipy 1.8.0 compatibility #8682

Closed
Closed

Description

@jrbourbeau

scipy == 1.8.0 made updates to more clearly indicate what are intended to be public vs. private APIs https://docs.scipy.org/doc/scipy-1.8.0/html-scipyorg/release.1.8.0.html#clear-split-between-public-and-private-api. As a result of these changes, deprecation warning that are now raised from our existing scipy imports are being elevated to errors (like the one below) and causing CI to fail

 _________________________________ test_moment __________________________________
[gw0] linux -- Python 3.8.12 /usr/share/miniconda3/envs/test-environment/bin/python

    @pytest.mark.skipif("not scipy")
    def test_moment():
>       from dask.array import stats

dask/dataframe/tests/test_arithmetics_reduction.py:1443: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
dask/array/stats.py:45: in <module>
    from scipy.stats.stats import (
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'F_onewayResult'

    def __getattr__(name):
        if name not in __all__:
            raise AttributeError(
                "scipy.stats.stats is deprecated and has no attribute "
                f"{name}. Try looking in scipy.stats instead.")
    
>       warnings.warn(f"Please use `{name}` from the `scipy.stats` namespace, "
                      "the `scipy.stats.stats` namespace is deprecated.",
                      category=DeprecationWarning, stacklevel=2)
E       DeprecationWarning: Please use `F_onewayResult` from the `scipy.stats` namespace, the `scipy.stats.stats` namespace is deprecated.

/usr/share/miniconda3/envs/test-environment/lib/python3.8/site-packages/scipy/stats/stats.py:58: DeprecationWarning

Activity

  1. added
    tests
    p1
    on Feb 7, 2022
  2. ParticularMiner commented on Feb 8, 2022

    @ParticularMiner
    Contributor

    @jrbourbeau

    I think the problem originates in scipy itself not dask. I've reported the issue there. You may follow this link to see.

  3. jsignell commented on Feb 9, 2022

    @jsignell
    Member

    I'm looking into what it will take to unpin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrayp1tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions