Skip to content

pandas==1.4.0rc0 FilePathOrBuffer deprecation breaks modin import #3947

@jeffreykennethli

Description

@jeffreykennethli

System information

  • OS Platform and Distribution: Mac 12.0.1
  • Modin version (modin.__version__): 0.12.0 - pandas==1.4.0rc0 pre-release
  • Python version: 3.8.8
  • Code we can use to reproduce:
python -m pip install --upgrade --pre pandas==1.4.0rc0
ipython

# (in ipython)
import modin.pandas as pd

# throws error:
# cannot import name 'FilePathOrBuffer' from 'pandas._typing' (/Users/jeffreyli/opt/anaconda3/lib/python3.8/site-packages/pandas/_typing.py)

Describe the problem

The Class FilePathOrBuffer no longer exists in pandas typing, after this PR pandas-dev/pandas#43951.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Highest priority tasks requiring immediate fixbug 🦗Something isn't workingdependencies 🔗Issues related to dependenciespandas 🤔Weird Behaviors of Pandas

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions