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

オープン
#118 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@jtyoung84 がすでに取り組んでいます。

2025年3月3日 から。

  • #198 @dougollerenshaw による — マージされずにクローズ

評価

この issue はまだ評価されていません。

説明

bug

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: 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

主要言語
Python
スター
3
フォーク
0
平均マージ
2日 14時間
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AllenNeuralDynamics/aind-data-access-api のほかの issue

AllenNeuralDynamics/aind-data-access-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。