3b1b / videos

Code for the manim-generated scenes used in 3blue1brown videos
5.79k stars 1.55k forks source link

Array size in wordle solver. #27

Closed o-mcelhin closed 2 years ago

o-mcelhin commented 2 years ago

When attempting to run the wordle code, I get the following error:

ValueError: array is too big; arr.size * arr.dtype.itemsize is larger than the maximum possible size.

I think this may be an internal setting, but it crashes at the line:

equality_grid = np.zeros((len(w1), len(w2), n, n), dtype=bool)

when trying to make a 12972 x 12972 array of zeros. Is there a way to overwrite this max size?

Jonah-B-Kehillah commented 2 years ago

Make sure that you are using a 64-bit version of python. I had the same error, but when I upgraded my version of python to a 64-bit one, the error went away.