np.fromfile()
raises non-helpful error when reading non-numerical text
#12426
Labels
np.fromfile()
raises non-helpful error when reading non-numerical text
#12426
When I try to read strings from file to numpy array Python crashes.
Reproducing code example:
The file contains:
Error message:
There is no error message just the Python has stopped working window:
Summary by @seberg:
As noted below, this is now working, but gives a strange
ValueError
(for 'S' dtype without a size).The text was updated successfully, but these errors were encountered: