Skip to content

back to SWE-Agent summary

SWE-Agent: statsmodels

Failed to run pytests for test statsmodels

ERROR: while parsing the following warning configuration:

  error::statsmodels.tools.sm_exceptions.HypothesisTestWarning

This error occurred:

Traceback (most recent call last):
  File "/testbed/.venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1917, in parse_warning_filter
    category: type[Warning] = _resolve_warning_category(category_)
  File "/testbed/.venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1955, in _resolve_warning_category
    m = __import__(module, None, None, [klass])
  File "/testbed/statsmodels/__init__.py", line 1, in <module>
    from statsmodels.compat.patsy import monkey_patch_cat_dtype
  File "/testbed/statsmodels/compat/__init__.py", line 1, in <module>
    from statsmodels.tools._testing import PytestTester
  File "/testbed/statsmodels/tools/__init__.py", line 1, in <module>
    from .tools import add_constant, categorical
  File "/testbed/statsmodels/tools/tools.py", line 7, in <module>
    from statsmodels.tools.data import _is_using_pandas
ImportError: cannot import name '_is_using_pandas' from 'statsmodels.tools.data' (/testbed/statsmodels/tools/data.py)

Patch diff