pd.read_hdf throws 'cannot set WRITABLE flag to True of this array'

前端 未结 3 365
太阳男子
太阳男子 2020-12-15 04:37

When running

pd.read_hdf(\'myfile.h5\')

I get the following traceback error:

[[...some longer traceback]]

~/.

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-15 05:19

    Are you using numpy 1.16? It is incompatible with the latest release of pytables (see https://github.com/PyTables/PyTables/blob/v3.4.4/tables/hdf5extension.pyx#L2155) but the pytables team have not yet released a fixed version: https://github.com/PyTables/PyTables/issues/719

    The only way I found to fix this is to downgrade numpy.

提交回复
热议问题