{
  "id": 394243,
  "title": "[Resolved] TypeError: cannot unpack non-iterable NoneType object",
  "url": "/competitions/predict-student-performance-from-game-play/discussion/394243",
  "author_name": "",
  "post_date": "2023-03-12T18:11:56.262032700Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>When I run the test part, I meet this error, which I did not have yesterday. Is it something related with the kaggle api?</p>\n<h2>You must call <code>predict()</code> successfully before you can continue with <code>iter_test()</code></h2>\n<p>import jo_wilder<br>\nenv = jo_wilder.make_env()<br>\niter_test = env.iter_test()<br>\n…<br>\n----&gt; 3 for (sample_submission, test) in iter_test:<br>\n…</p>\n<h2>TypeError: cannot unpack non-iterable NoneType object</h2>\n<p>Thank you if you may help.🙏</p>",
  "messages": [
    {
      "id": "2178806",
      "postDate": "03/12/2023 18:11:56",
      "content": "<p>When I run the test part, I meet this error, which I did not have yesterday. Is it something related with the kaggle api?</p>\n<h2>You must call <code>predict()</code> successfully before you can continue with <code>iter_test()</code></h2>\n<p>import jo_wilder<br>\nenv = jo_wilder.make_env()<br>\niter_test = env.iter_test()<br>\n…<br>\n----&gt; 3 for (sample_submission, test) in iter_test:<br>\n…</p>\n<h2>TypeError: cannot unpack non-iterable NoneType object</h2>\n<p>Thank you if you may help.🙏</p>",
      "rawMarkdown": "When I run the test part, I meet this error, which I did not have yesterday. Is it something related with the kaggle api?\n\nYou must call `predict()` successfully before you can continue with `iter_test()`\n---------------------------------------------------------------------------\nimport jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()\n...\n----> 3 for (sample_submission, test) in iter_test:\n...\nTypeError: cannot unpack non-iterable NoneType object\n---------------------------------------------------------------------------\nThank you if you may help.🙏",
      "votes": null
    },
    {
      "id": "2178817",
      "postDate": "03/12/2023 18:19:15",
      "content": "<p>The calls you've written seem correct. So I'm guessing there is something else with the rest of the code.</p>\n<p>I've written a small emulator for this API : <a href=\"https://www.kaggle.com/code/svaningelgem/local-timeseriesapi-emulator\" target=\"_blank\">https://www.kaggle.com/code/svaningelgem/local-timeseriesapi-emulator</a><br>\nThis way you can disable the asserts etc (I do it to more quickly iterate -- don't forget to re-enable them before final tests).</p>",
      "rawMarkdown": "The calls you've written seem correct. So I'm guessing there is something else with the rest of the code.\n\nI've written a small emulator for this API : https://www.kaggle.com/code/svaningelgem/local-timeseriesapi-emulator\nThis way you can disable the asserts etc (I do it to more quickly iterate -- don't forget to re-enable them before final tests).",
      "votes": null
    },
    {
      "id": "2178868",
      "postDate": "03/12/2023 18:49:15",
      "content": "<p>Thank you. This problem is solved, just by restarting the kernel.</p>",
      "rawMarkdown": "Thank you. This problem is solved, just by restarting the kernel.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2178817,
      "author_name": "svaningelgem",
      "author_url": "",
      "post_date": "03/12/2023 18:19:15",
      "content": "<p>The calls you've written seem correct. So I'm guessing there is something else with the rest of the code.</p>\n<p>I've written a small emulator for this API : <a href=\"https://www.kaggle.com/code/svaningelgem/local-timeseriesapi-emulator\" target=\"_blank\">https://www.kaggle.com/code/svaningelgem/local-timeseriesapi-emulator</a><br>\nThis way you can disable the asserts etc (I do it to more quickly iterate -- don't forget to re-enable them before final tests).</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2178868,
      "author_name": "yuhengjia",
      "author_url": "",
      "post_date": "03/12/2023 18:49:15",
      "content": "<p>Thank you. This problem is solved, just by restarting the kernel.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2178806": "When I run the test part, I meet this error, which I did not have yesterday. Is it something related with the kaggle api?\n\nYou must call `predict()` successfully before you can continue with `iter_test()`\n---------------------------------------------------------------------------\nimport jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()\n...\n----> 3 for (sample_submission, test) in iter_test:\n...\nTypeError: cannot unpack non-iterable NoneType object\n---------------------------------------------------------------------------\nThank you if you may help.🙏",
    "2178817": "The calls you've written seem correct. So I'm guessing there is something else with the rest of the code.\n\nI've written a small emulator for this API : https://www.kaggle.com/code/svaningelgem/local-timeseriesapi-emulator\nThis way you can disable the asserts etc (I do it to more quickly iterate -- don't forget to re-enable them before final tests).",
    "2178868": "Thank you. This problem is solved, just by restarting the kernel."
  },
  "source": "meta"
}