<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15781</bug_id>
          
          <creation_ts>2025-03-05 05:08:59 +0000</creation_ts>
          <short_desc>recipes python3-pandas not getting built properly for arm</short_desc>
          <delta_ts>2025-03-06 15:43:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>5.0.10</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Prasad Mulay">prasad.mulay</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>prasad.mulay</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101280</commentid>
    <comment_count>0</comment_count>
    <who name="Prasad Mulay">prasad.mulay</who>
    <bug_when>2025-03-05 05:08:59 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101281</commentid>
    <comment_count>1</comment_count>
    <who name="Prasad Mulay">prasad.mulay</who>
    <bug_when>2025-03-05 05:14:46 +0000</bug_when>
    <thetext>https://github.com/pandas-dev/pandas/issues/55305
this is reported on pandas repo. looking at the comments looks to be bug from build system. I have tried the solution specified there. but still problem is persisting.
 I am using custom IMX6 board. 

Copy paste of details from pandas issue.
Reproducible Example
import pandas as pd

# Create a list of data
data = [[&quot;Alice&quot;, 25], [&quot;Bob&quot;, 30], [&quot;Carol&quot;, 35]]

# Create a Pandas DataFrame from the list of data
df = pd.DataFrame(data, columns=[&quot;Name&quot;, &quot;Age&quot;])

# Print the DataFrame
print(df)
Issue Description
The simplest test on a dataframe object is failing on an embedded 32bit device with ARMv7 CPU. No matter how the dataframe is created, from an array or read from a csv file using read_csv, access on the object fails the same:

File &quot;pandas/_libs/internals.pyx&quot;, line 711, in pandas._libs.internals.BlockManager._rebuild_blknos_and_blklocs
ValueError: Buffer dtype mismatch, expected &apos;intp_t&apos; but got &apos;long long&apos;

Unfortunately, on that platform I cannot compile a newer version of pandas, so I cannot verify if the issue is present in the latest version or main branch.

Expected Behavior
The expected output is:
Name Age
0 Alice 25
1 Bob 30
2 Carol 35

but running the script is giving:
File &quot;/home/root/test.py&quot;, line 10, in
print(df)
File &quot;/usr/lib/python3.10/site-packages/pandas/core/frame.py&quot;, line 1011, in repr
return self.to_string(**repr_params)
File &quot;/usr/lib/python3.10/site-packages/pandas/core/frame.py&quot;, line 1192, in to_string
return fmt.DataFrameRenderer(formatter).to_string(
File &quot;/usr/lib/python3.10/site-packages/pandas/io/formats/format.py&quot;, line 1128, in to_string
string = string_formatter.to_string()
File &quot;/usr/lib/python3.10/site-packages/pandas/io/formats/string.py&quot;, line 25, in to_string
text = self._get_string_representation()
File &quot;/usr/lib/python3.10/site-packages/pandas/io/formats/string.py&quot;, line 40, in _get_string_representation
strcols = self._get_strcols()
File &quot;/usr/lib/python3.10/site-packages/pandas/io/formats/string.py&quot;, line 31, in _get_strcols
strcols = self.fmt.get_strcols()
File &quot;/usr/lib/python3.10/site-packages/pandas/io/formats/format.py&quot;, line 611, in get_strcols
strcols = self._get_strcols_without_index()
File &quot;/usr/lib/python3.10/site-packages/pandas/io/formats/format.py&quot;, line 864, in _get_strcols_without_index
str_columns = self._get_formatted_column_labels(self.tr_frame)
File &quot;/usr/lib/python3.10/site-packages/pandas/io/formats/format.py&quot;, line 943, in _get_formatted_column_labels
dtypes = self.frame.dtypes
File &quot;/usr/lib/python3.10/site-packages/pandas/core/generic.py&quot;, line 5746, in dtypes
data = self._mgr.get_dtypes()
File &quot;/usr/lib/python3.10/site-packages/pandas/core/internals/managers.py&quot;, line 228, in get_dtypes
return dtypes.take(self.blknos)
File &quot;/usr/lib/python3.10/site-packages/pandas/core/internals/managers.py&quot;, line 168, in blknos
self._rebuild_blknos_and_blklocs()
File &quot;pandas/_libs/internals.pyx&quot;, line 711, in pandas._libs.internals.BlockManager._rebuild_blknos_and_blklocs
ValueError: Buffer dtype mismatch, expected &apos;intp_t&apos; but got &apos;long long&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101282</commentid>
    <comment_count>2</comment_count>
    <who name="Prasad Mulay">prasad.mulay</who>
    <bug_when>2025-03-05 05:35:48 +0000</bug_when>
    <thetext>Below is rspose from my board.
root@imx6dldau:~# python
Python 3.12.6 (main, Sep  6 2024, 19:03:47) [GCC 13.3.0] on linux
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import pandas as pd
&gt;&gt;&gt; # Create a list of data
&gt;&gt;&gt; data = [[&quot;Alice&quot;, 25], [&quot;Bob&quot;, 30], [&quot;Carol&quot;, 35]]
&gt;&gt;&gt; # Create a Pandas DataFrame from the list of data
&gt;&gt;&gt; df = pd.DataFrame(data, columns=[&quot;Name&quot;, &quot;Age&quot;])
&gt;&gt;&gt; # Print the DataFrame
&gt;&gt;&gt; print(df)
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/usr/lib/python3.12/site-packages/pandas/core/frame.py&quot;, line 1094, in __repr__
    return self.to_string(**repr_params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/site-packages/pandas/core/frame.py&quot;, line 1271, in to_string
    return fmt.DataFrameRenderer(formatter).to_string(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/site-packages/pandas/io/formats/format.py&quot;, line 1134, in to_string
    string = string_formatter.to_string()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/site-packages/pandas/io/formats/string.py&quot;, line 30, in to_string
    text = self._get_string_representation()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/site-packages/pandas/io/formats/string.py&quot;, line 45, in _get_string_representation
    strcols = self._get_strcols()
              ^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/site-packages/pandas/io/formats/string.py&quot;, line 36, in _get_strcols
    strcols = self.fmt.get_strcols()
              ^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/site-packages/pandas/io/formats/format.py&quot;, line 615, in get_strcols
    strcols = self._get_strcols_without_index()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/site-packages/pandas/io/formats/format.py&quot;, line 870, in _get_strcols_without_index
    str_columns = self._get_formatted_column_labels(self.tr_frame)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/site-packages/pandas/io/formats/format.py&quot;, line 949, in _get_formatted_column_labels
    dtypes = self.frame.dtypes
             ^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/site-packages/pandas/core/generic.py&quot;, line 6158, in dtypes
    data = self._mgr.get_dtypes()
           ^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/site-packages/pandas/core/internals/managers.py&quot;, line 278, in get_dtypes
    return dtypes.take(self.blknos)
                       ^^^^^^^^^^^
  File &quot;/usr/lib/python3.12/site-packages/pandas/core/internals/managers.py&quot;, line 179, in blknos
    self._rebuild_blknos_and_blklocs()
  File &quot;pandas/_libs/internals.pyx&quot;, line 755, in pandas._libs.internals.BlockManager._rebuild_blknos_and_blklocs
ValueError: Buffer dtype mismatch, expected &apos;intp_t&apos; but got &apos;long long&apos;
&gt;&gt;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101303</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-03-06 15:43:55 +0000</bug_when>
    <thetext>pandas is in meta-openembedded which doesn&apos;t use the bug tracker.
Please send a fix or an report to the meta-oe list.

https://layers.openembedded.org/layerindex/recipe/72554/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>