Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#62387 closed defect (fixed)

py38-pandas @1.2.3: numpy binary incompatibility

Reported by: jsalort (Julien Salort) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: stromnov (Andrey Stromnov)
Port: py-pandas

Description

I am running macOS 10.15.7 on an Intel Mac with macPorts 2.6.4, and using MacPorts python38.

After upgrading pandas from 1.2.1 (which worked) to 1.2.2 or 1.2.3, importing pandas no longer works:

% port version
Version: 2.6.4
% sudo port activate py38-pandas @1.2.2_0
Password:
--->  Computing dependencies for py38-pandas
--->  Deactivating py38-pandas @1.2.1_0
--->  Cleaning py38-pandas
--->  Activating py38-pandas @1.2.2_0
--->  Cleaning py38-pandas
% python -c "import pandas"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pandas/__init__.py", line 29, in <module>
    from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pandas/_libs/__init__.py", line 13, in <module>
    from pandas._libs.interval import Interval
  File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
% sudo port activate py38-pandas @1.2.1_0
--->  Computing dependencies for py38-pandas
--->  Deactivating py38-pandas @1.2.2_0
--->  Cleaning py38-pandas
--->  Activating py38-pandas @1.2.1_0
--->  Cleaning py38-pandas
% python -c "import pandas"
%

Change History (2)

comment:1 Changed 3 years ago by stromnov (Andrey Stromnov)

Owner: set to stromnov
Resolution: fixed
Status: newclosed

In cd63eca9b70994840feda4cf70a636a54c717351/macports-ports (master):

py-pandas: revbump to rebuild against latest py-numpy

Closes: #62387

comment:2 Changed 3 years ago by mf2k (Frank Schima)

Port: py-pandas added; py38-pandas removed
Note: See TracTickets for help on using tickets.