Skip to main content
Associate II
May 1, 2024
Question

use Pandas on STM32mp157F-DK2

  • May 1, 2024
  • 1 reply
  • 2539 views

tpy to use Pandas on STM32mp157F-DK2.

very simple example - Python.

df = pd.DataFrame(np.random.randn(6, 4), index=dates, columns=list("ABCD"))
print(df)
 
I get an error

 File "pandas/_libs/internals.pyx", line 717, in pandas._libs.internals.BlockManager._rebuild_blknos_and_blklocs
ValueError: Buffer dtype mismatch, expected 'intp_t' but got 'long long'

 

Problem with panda or build?

I added several packages to the image.

 IMAGE_INSTALL:append = "\ 
 packagegroup-core-buildessential \
 python3-scipy \
 python3-pip \
 python3-matplotlib \
 python3-pandas \
 networkmanager \
 "
This topic has been closed for replies.

1 reply

Jean-Marc B
ST Employee
May 3, 2024

Hi @karu2003 

The package python3-pandas is available by default in the OpenSTLinux distribution. You can install it from your board with the following commands:

root@stm32mp1:~ # apt-get update
root@stm32mp1:~ # apt-get install python3-pandas

Could you make an attempt with this method please and report the result?

Best regards,

--JM 

karu2003Author
Associate II
May 3, 2024

That's exactly what I did. And it doesn't work.

Jean-Marc B
ST Employee
May 6, 2024

Hi @karu2003 

It appears there is a bug in the python3-pandas module. I found your exact error message here:

https://github.com/pandas-dev/pandas/issues/55305 

I recommend you to contact the Pandas community to help you.

Best regards

--JM