pandas failure in flex app engine deployment

Hello,

We’re getting the below error when trying to import pandas in app engine:

ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Any idea how to fix this?

Thanks

2 Likes

The error seems to be due to an incompatibility between a package you’re using and the version of Numpy. See the following discussion and solution for the specific packages. It might give you pointers on what to do

  1. https://github.com/MaartenGr/BERTopic/issues/392

  2. https://www.geeksforgeeks.org/how-to-fix-valueerror-numpy-ndarray-size-changed-in-pyxdameraulevenshtein-package/

**…**NoCommandLine
https://nocommandline.com
Analytics & GUI for
App Engine & Datastore Emulator

2 Likes

This is an ongoing issue with numpy 2.0

https://stackoverflow.com/questions/78650222/valueerror-numpy-dtype-size-changed-may-indicate-binary-incompatibility-expec