cancel
Showing results for 
Search instead for 
Did you mean: 

use Pandas on STM32mp157F-DK2

karu2003
Associate II

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 \
                            "
6 REPLIES 6
Jean-Marc B
ST Employee

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 

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

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

Thank you. I will watch the development.   Why is panda in the st repository? it doesn't work! 

Hi @karu2003 

The OpenSTLinux distribution is based on the Yocto project. The Yocto layers we use contain several thousand of packages we build to deliver them into our distribution. Some of them may be broken independently of the target as it appears for the python3-pandas package.

Best regards,

--JM

Thank you. I satisfied my interest in STM32mp1. It is too early to consider ST32mp1 as an alternative to RPI.