Bug 1974326

Summary: python-pandas is not working
Product: [Fedora] Fedora Reporter: Vitaly Dolgov <tho0g0e4k>
Component: python-pandasAssignee: Sergio Pascual <sergio.pasra>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: brett.lentz, mail, orion, sergio.pasra, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-21 20:50:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vitaly Dolgov 2021-06-21 11:39:57 UTC
Description of problem:

Pandas is not working with stock Python.

How reproducible:


Steps to Reproduce:
1. install python3-pandas
2. launch python (currently 3.9.5)
3. >>> import pandas as pd

Actual results:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.9/site-packages/pandas/__init__.py", line 29, in <module>
    from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
  File "/usr/lib64/python3.9/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

Expected results:

No error.

Comment 1 Vitaly Dolgov 2021-07-10 21:24:32 UTC
package version: 1.2.1-2

Comment 2 Vitaly Dolgov 2021-07-21 07:23:08 UTC
Hi! Any updates on this?

Comment 3 Sergio Pascual 2021-07-21 10:49:32 UTC
I will trigger a rebuild of the package. I think it will be enough

Comment 4 Sergio Pascual 2021-07-21 11:05:39 UTC
Well, I think I can upgrade to 1.3 instead

Comment 5 Sergio Pascual 2021-07-21 13:54:09 UTC
I have tested in a F34 machine and it works for me.

Could you update and post the result of

rpm -q python3-numpy
rpm -q python3-pandas

python -VV
python -c "import numpy;print(numpy.__version__)"

Thanks

Comment 6 Vitaly Dolgov 2021-07-21 20:41:47 UTC
~ $ rpm -q python3-numpy
python3-numpy-1.20.1-1.fc34.x86_64

~ $ rpm -q python3-pandas
python3-pandas-1.2.1-2.fc34.x86_64

~ $ python -VV
Python 3.9.6 (default, Jul 16 2021, 00:00:00) 
[GCC 11.1.1 20210531 (Red Hat 11.1.1-3)]

~ $ python -c "import numpy;print(numpy.__version__)"
1.19.5

Comment 7 Vitaly Dolgov 2021-07-21 20:50:36 UTC
Thanks to Sergio (comment on bug #1980608), now I realized that so far I used local cache instead of system package. There is no problem now, I'm sorry for messing things.