Bug 1974326 - python-pandas is not working
Summary: python-pandas is not working
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pandas
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Sergio Pascual
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-21 11:39 UTC by Vitaly Dolgov
Modified: 2021-07-21 20:50 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-07-21 20:50:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.