Skip to content

BUG: Segmentation Fault when importing Pandas in python 3.10.14  #58809

@bhawmik

Description

@bhawmik

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

sudiptabhawmik@Sudiptas-iPro gippss % python3
Python 3.10.14 (main, May  6 2024, 14:47:20) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
zsh: segmentation fault  python3

Issue Description

In MacOS (10.15.7) in a conda created virtual env with Python 3.10.14 installed,
when I open a python3 shell and try importing pandas, I get this segmentation fault.
When I try to import Pandas in Python 3.10.14 in MacOS zsh, python3 crashes with segmentation fault.

sudiptabhawmik@Sudiptas-iPro gippss % python3
Python 3.10.14 (main, May 6 2024, 14:47:20) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import pandas
zsh: segmentation fault python3

I tried Pandas from version 2.2.2 down to 1.5.n
I tried changing zsh to bash and csh, didn't work. I tried multiple versions of Pandas from 2.2.2 to 1.5.n but failed.
Works fine with Python 3.7.n and Pandas pandas==1.1.5

Expected Behavior

Expected behavior should be no segmentation fault in MacOS when Pandas. is imported.

Installed Versions

MacOS (10.15.7) Python 3.10.14 Pandas 2.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    BuildLibrary building on various platformsNeeds InfoClarification about behavior needed to assess issueSegfaultNon-Recoverable Error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions