Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-47677

Pandas circular import error in Python 3.10

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.0
    • None
    • PySpark, Tests
    • None

    Description

      AttributeError: partially initialized module 'pandas' has no attribute '_pandas_datetime_CAPI' (most likely due to a circular import)

       

      The above error appears in multiple tests with Python 3.10.

      Python 3.11, 3.12 and pypy3 don't have the issue.

       

      See https://github.com/apache/spark/actions/runs/8469356110/job/23208894575 for details.

      Attachments

        Activity

          People

            Unassigned Unassigned
            XinrongM Xinrong Meng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: