2024-05-01 12:31 AM
tpy to use Pandas on STM32mp157F-DK2.
very simple example - Python.
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 \ "
2024-05-03 07:02 AM
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
2024-05-03 08:29 AM
That's exactly what I did. And it doesn't work.
2024-05-05 11:46 PM
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
2024-05-06 08:06 PM - edited 2024-05-06 09:03 PM
Thank you. I will watch the development. Why is panda in the st repository? it doesn't work!
2024-05-13 04:51 AM
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
2024-05-13 11:13 PM
Thank you. I satisfied my interest in STM32mp1. It is too early to consider ST32mp1 as an alternative to RPI.