AllenNeuralDynamics / AllenNeuralDynamics/aind-data-access-api
Pandas < 2.2.0 doesn't appear to work on Python 3.9
- Vorherrschende Sprache
- Python
- Sterne
- 3
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Receives the following error when running a codeocean capsule in: https://codeocean.allenneuraldynamics-test.org/:
```bash
Traceback (most recent call last):
File "/code/run.py", line 3, in
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
import pandas as pd
File "/opt/conda/lib/python3.9/site-packages/pandas/__init__.py", line 46, in
from pandas.core.api import (
File "/opt/conda/lib/python3.9/site-packages/pandas/core/api.py", line 1, in
from pandas._libs import (
File "/opt/conda/lib/python3.9/site-packages/pandas/_libs/__init__.py", line 18, in
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: https://github.com/AllenNeuralDynamics/aind-data-access-api/blob/8e4e547b6effcaf8acb1c97cb2c1fded06399759/pyproject.toml#L47
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.