title: How to fix 'Object arrays cannot be loaded when allow_pickle=False' for imdb.load_data() function?
body: <p>I'm trying to implement the binary classification example using the IMDb dataset in <strong>Google Colab</strong>. I have implemented this model before. But when I tried to do it again after a few days, it returned a <code>value error: 'Object arrays cannot be loaded when allow_pickle=False'</code> for the load_data() function.</p>
  <p>I have already tried solving this, referring to an existing answer for a similar problem: <a href="https://stackoverflow.com/questions/55824625/how-to-fix-object-arrays-cannot-be-loaded-when-allow-pickle-false-in-the-sketc?answertab=votes#tab-top">How to fix &#39;Object arrays cannot be loaded when allow_pickle=False&#39; in the sketch_rnn algorithm</a>.
  But it turns out that just adding an allow_pickle argument isn't sufficient.</p>
  <p>My code:</p>
  <pre><code>from keras.datasets import imdb
  (train_data, train_labels), (test_data, test_labels) = imdb.load_data(num_words=10000)
  </code></pre>
  <p>The error:</p>
  <pre><code>ValueError                                Traceback (most recent call last)
  &lt;ipython-input-1-2ab3902db485&gt; in &lt;module&gt;()
        1 from keras.datasets import imdb
  ----&gt; 2 (train_data, train_labels), (test_data, test_labels) = imdb.load_data(num_words=10000)
  
  2 frames
  /usr/local/lib/python3.6/dist-packages/keras/datasets/imdb.py in load_data(path, num_words, skip_top, maxlen, seed, start_char, oov_char, index_from, **kwargs)
       57                     file_hash='599dadb1135973df5b59232a0e9a887c')
       58     with np.load(path) as f:
  ---&gt; 59         x_train, labels_train = f['x_train'], f['y_train']
       60         x_test, labels_test = f['x_test'], f['y_test']
       61 
  
  /usr/local/lib/python3.6/dist-packages/numpy/lib/npyio.py in __getitem__(self, key)
      260                 return format.read_array(bytes,
      261                                          allow_pickle=self.allow_pickle,
  --&gt; 262                                          pickle_kwargs=self.pickle_kwargs)
      263             else:
      264                 return self.zip.read(key)
  
  /usr/local/lib/python3.6/dist-packages/numpy/lib/format.py in read_array(fp, allow_pickle, pickle_kwargs)
      690         # The array contained Python objects. We need to unpickle the data.
      691         if not allow_pickle:
  --&gt; 692             raise ValueError(&quot;Object arrays cannot be loaded when &quot;
      693                              &quot;allow_pickle=False&quot;)
      694         if pickle_kwargs is None:
  
  ValueError: Object arrays cannot be loaded when allow_pickle=False
  </code></pre>