Skip to content

Pandas < 2.2.0 doesn't appear to work on Python 3.9 #118

@mochic

Description

@mochic

Receives the following error when running a codeocean capsule in: https://codeocean.allenneuraldynamics-test.org/:

Traceback (most recent call last):
  File "/code/run.py", line 3, in <module>
    from aind_data_access_api.rds_tables import Client as RdsClient
  File "/opt/conda/lib/python3.9/site-packages/aind_data_access_api/rds_tables.py", line 5, in <module>
    import pandas as pd
  File "/opt/conda/lib/python3.9/site-packages/pandas/__init__.py", line 46, in <module>
    from pandas.core.api import (
  File "/opt/conda/lib/python3.9/site-packages/pandas/core/api.py", line 1, in <module>
    from pandas._libs import (
  File "/opt/conda/lib/python3.9/site-packages/pandas/_libs/__init__.py", line 18, in <module>
    from pandas._libs.interval import Interval
  File "interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

The issue appears to be raised when using this package from python 3.9 with pandas < 2.2.0 (tested 2.0.0, 2.1.0) but appears to succeed when upgrading to pandas 2.2.0+ which is outside of the pin range specified in here:

"pandas>=2.0.0,<2.2.0",

The capsule environment is: Python + R (Python 3.9, R 4.2.2, Ubuntu 20.04)

The capsule that raised this exception is here (it currently has pandas 2.2.0 installed):
https://codeocean.allenneuraldynamics-test.org/capsule/8031734/tree

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions