{
  "id": 406677,
  "title": "How to avoid  API module error?",
  "url": "/competitions/predict-student-performance-from-game-play/discussion/406677",
  "author_name": "",
  "post_date": "2023-05-03T11:23:39.439733300Z",
  "votes": 5,
  "comment_count": 8,
  "views": 0,
  "content": "<p>Hi, kagglers!</p>\n<p>I'm facing Module \"NotFoundError\" now. How can I solve this problem?<br>\nI'll paste my code and error messages. <br>\nI'm looking foward to your reply, thanks.</p>\n<pre><code>\n jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()\n\n\n gc\n targets, df, oof, true\n_ = gc.collect()\n</code></pre>\n<hr>\n<p>ModuleNotFoundError                       Traceback (most recent call last)<br>\nCell In[19], line 2<br>\n      1 # IMPORT KAGGLE API<br>\n----&gt; 2 import jo_wilder<br>\n      3 env = jo_wilder.make_env()<br>\n      4 iter_test = env.iter_test()</p>\n<p>File /kaggle/input/predict-student-performance-from-game-play/jo_wilder/<strong>init</strong>.py:2<br>\n----&gt; 2 from .competition import make_env<br>\n      4 <strong>all</strong> = ['make_env']</p>\n<p>ModuleNotFoundError: No module named 'jo_wilder.competition'</p>",
  "messages": [
    {
      "id": "2244005",
      "postDate": "05/03/2023 11:23:39",
      "content": "<p>Hi, kagglers!</p>\n<p>I'm facing Module \"NotFoundError\" now. How can I solve this problem?<br>\nI'll paste my code and error messages. <br>\nI'm looking foward to your reply, thanks.</p>\n<pre><code>\n jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()\n\n\n gc\n targets, df, oof, true\n_ = gc.collect()\n</code></pre>\n<hr>\n<p>ModuleNotFoundError                       Traceback (most recent call last)<br>\nCell In[19], line 2<br>\n      1 # IMPORT KAGGLE API<br>\n----&gt; 2 import jo_wilder<br>\n      3 env = jo_wilder.make_env()<br>\n      4 iter_test = env.iter_test()</p>\n<p>File /kaggle/input/predict-student-performance-from-game-play/jo_wilder/<strong>init</strong>.py:2<br>\n----&gt; 2 from .competition import make_env<br>\n      4 <strong>all</strong> = ['make_env']</p>\n<p>ModuleNotFoundError: No module named 'jo_wilder.competition'</p>",
      "rawMarkdown": "Hi, kagglers!\n\nI'm facing Module \"NotFoundError\" now. How can I solve this problem?\nI'll paste my code and error messages. \nI'm looking foward to your reply, thanks.\n\n\n\n```python\n# IMPORT KAGGLE API\nimport jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()\n\n# CLEAR MEMORY\nimport gc\ndel targets, df, oof, true\n_ = gc.collect()\n\n```\n\n\n\n\n\n---------------------------------------------------------------------------\nModuleNotFoundError                       Traceback (most recent call last)\nCell In[19], line 2\n      1 # IMPORT KAGGLE API\n----> 2 import jo_wilder\n      3 env = jo_wilder.make_env()\n      4 iter_test = env.iter_test()\n\nFile /kaggle/input/predict-student-performance-from-game-play/jo_wilder/__init__.py:2\n----> 2 from .competition import make_env\n      4 __all__ = ['make_env']\n\nModuleNotFoundError: No module named 'jo_wilder.competition'",
      "votes": null
    },
    {
      "id": "2244015",
      "postDate": "05/03/2023 11:31:52",
      "content": "<p><a href=\"https://www.kaggle.com/takichan\" target=\"_blank\">@takichan</a> Same here… <a href=\"https://www.kaggle.com/philculliton\" target=\"_blank\">@philculliton</a> Is Kaggle aware of this error? Or is this a user error since we missed some updates we are supposed to be doing?</p>\n<p>! Update. For my notebooks this error only seems to occur when using the latest version. Version of 29th of March works fine.</p>",
      "rawMarkdown": "takichan Same here... @philculliton Is Kaggle aware of this error? Or is this a user error since we missed some updates we are supposed to be doing?\n\n! Update. For my notebooks this error only seems to occur when using the latest version. Version of 29th of March works fine.",
      "votes": null
    },
    {
      "id": "2244135",
      "postDate": "05/03/2023 13:13:57",
      "content": "<p>Oh, thank you for repling me !<br>\nI though It's a just problem with my notebook, but it seems to be a system issue.</p>",
      "rawMarkdown": "Oh, thank you for repling me !\nI though It's a just problem with my notebook, but it seems to be a system issue.",
      "votes": null
    },
    {
      "id": "2244937",
      "postDate": "05/04/2023 03:09:54",
      "content": "<p>I could avoid module error to run on nonlatest enviroment, but I faced to TypeError at 'iter_test'. <br>\nIs this also module problem?</p>\n<pre><code> jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()\n\nlimits = {:(,), :(,), :(,)}\n\n (test, sample_submission)  iter_test:\n...\n</code></pre>\n<hr>\n<p>TypeError                                 Traceback (most recent call last)<br>\n/tmp/ipykernel_25/350086147.py in <br>\n      1 limits = {'0-4':(1,4), '5-12':(4,14), '13-22':(14,19)}<br>\n      2 <br>\n----&gt; 3 for (test, sample_submission) in iter_test:<br>\n      4 <br>\n      5     # FEATURE ENGINEER TEST DATA</p>\n<p>TypeError: cannot unpack non-iterable NoneType object </p>",
      "rawMarkdown": "I could avoid module error to run on nonlatest enviroment, but I faced to TypeError at 'iter_test'. \nIs this also module problem?\n\n\n```python\nimport jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()\n\nlimits = {'0-4':(1,4), '5-12':(4,14), '13-22':(14,19)}\n\nfor (test, sample_submission) in iter_test:\n...\n```\n \n\n\n---------------------------------------------------------------------------\nTypeError                                 Traceback (most recent call last)\n/tmp/ipykernel_25/350086147.py in <module>\n      1 limits = {'0-4':(1,4), '5-12':(4,14), '13-22':(14,19)}\n      2 \n----> 3 for (test, sample_submission) in iter_test:\n      4 \n      5     # FEATURE ENGINEER TEST DATA\n\nTypeError: cannot unpack non-iterable NoneType object",
      "votes": null
    },
    {
      "id": "2247030",
      "postDate": "05/05/2023 16:25:07",
      "content": "<p>I'm having the same problem. Seems like an issue with the API's latest update.</p>\n<p><a href=\"https://www.kaggle.com/philculliton\" target=\"_blank\">@philculliton</a> would you mind taking a look please? Thanks!</p>",
      "rawMarkdown": "I'm having the same problem. Seems like an issue with the API's latest update.\n\n@philculliton would you mind taking a look please? Thanks!",
      "votes": null
    },
    {
      "id": "2263890",
      "postDate": "05/18/2023 02:23:25",
      "content": "<p>I had the same error. Have you solved the problem now?</p>",
      "rawMarkdown": "I had the same error. Have you solved the problem now?",
      "votes": null
    },
    {
      "id": "2265115",
      "postDate": "05/19/2023 01:56:44",
      "content": "<p>This error can occur when executing recently created code.<br>\nSome people have reported that changing the old environment solves the problem. However, I could not resolve this error …… So I found a similar executable code from \"code\" and edited it.<br>\n But I am not sure if that is the right solution…</p>",
      "rawMarkdown": "This error can occur when executing recently created code.\nSome people have reported that changing the old environment solves the problem. However, I could not resolve this error ...... So I found a similar executable code from \"code\" and edited it.\n But I am not sure if that is the right solution...",
      "votes": null
    },
    {
      "id": "2266582",
      "postDate": "05/20/2023 07:42:00",
      "content": "<p>ok I see. Thank you for your reply</p>",
      "rawMarkdown": "ok I see. Thank you for your reply",
      "votes": null
    },
    {
      "id": "2302865",
      "postDate": "06/14/2023 22:58:52",
      "content": "<p>I also had the same issue, using jo_wilder_310 instead of jo_wilder helped me:<br>\nimport jo_wilder_310<br>\nenv = jo_wilder_310.make_env()</p>\n<p>iter_test = env.iter_test()</p>",
      "rawMarkdown": "I also had the same issue, using jo_wilder_310 instead of jo_wilder helped me:\nimport jo_wilder_310\nenv = jo_wilder_310.make_env()\n\niter_test = env.iter_test()",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2244015,
      "author_name": "rsmits",
      "author_url": "",
      "post_date": "05/03/2023 11:31:52",
      "content": "<p><a href=\"https://www.kaggle.com/takichan\" target=\"_blank\">@takichan</a> Same here… <a href=\"https://www.kaggle.com/philculliton\" target=\"_blank\">@philculliton</a> Is Kaggle aware of this error? Or is this a user error since we missed some updates we are supposed to be doing?</p>\n<p>! Update. For my notebooks this error only seems to occur when using the latest version. Version of 29th of March works fine.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2244135,
          "author_name": "takichan",
          "author_url": "",
          "post_date": "05/03/2023 13:13:57",
          "content": "<p>Oh, thank you for repling me !<br>\nI though It's a just problem with my notebook, but it seems to be a system issue.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2244937,
      "author_name": "takichan",
      "author_url": "",
      "post_date": "05/04/2023 03:09:54",
      "content": "<p>I could avoid module error to run on nonlatest enviroment, but I faced to TypeError at 'iter_test'. <br>\nIs this also module problem?</p>\n<pre><code> jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()\n\nlimits = {:(,), :(,), :(,)}\n\n (test, sample_submission)  iter_test:\n...\n</code></pre>\n<hr>\n<p>TypeError                                 Traceback (most recent call last)<br>\n/tmp/ipykernel_25/350086147.py in <br>\n      1 limits = {'0-4':(1,4), '5-12':(4,14), '13-22':(14,19)}<br>\n      2 <br>\n----&gt; 3 for (test, sample_submission) in iter_test:<br>\n      4 <br>\n      5     # FEATURE ENGINEER TEST DATA</p>\n<p>TypeError: cannot unpack non-iterable NoneType object </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2247030,
      "author_name": "hoangnguyen719",
      "author_url": "",
      "post_date": "05/05/2023 16:25:07",
      "content": "<p>I'm having the same problem. Seems like an issue with the API's latest update.</p>\n<p><a href=\"https://www.kaggle.com/philculliton\" target=\"_blank\">@philculliton</a> would you mind taking a look please? Thanks!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2263890,
      "author_name": "bigzuck",
      "author_url": "",
      "post_date": "05/18/2023 02:23:25",
      "content": "<p>I had the same error. Have you solved the problem now?</p>",
      "votes": null,
      "replies": [
        {
          "id": 2265115,
          "author_name": "takichan",
          "author_url": "",
          "post_date": "05/19/2023 01:56:44",
          "content": "<p>This error can occur when executing recently created code.<br>\nSome people have reported that changing the old environment solves the problem. However, I could not resolve this error …… So I found a similar executable code from \"code\" and edited it.<br>\n But I am not sure if that is the right solution…</p>",
          "votes": null,
          "replies": [
            {
              "id": 2266582,
              "author_name": "bigzuck",
              "author_url": "",
              "post_date": "05/20/2023 07:42:00",
              "content": "<p>ok I see. Thank you for your reply</p>",
              "votes": null,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2302865,
      "author_name": "tanyabelyukina",
      "author_url": "",
      "post_date": "06/14/2023 22:58:52",
      "content": "<p>I also had the same issue, using jo_wilder_310 instead of jo_wilder helped me:<br>\nimport jo_wilder_310<br>\nenv = jo_wilder_310.make_env()</p>\n<p>iter_test = env.iter_test()</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2244005": "Hi, kagglers!\n\nI'm facing Module \"NotFoundError\" now. How can I solve this problem?\nI'll paste my code and error messages. \nI'm looking foward to your reply, thanks.\n\n\n\n```python\n# IMPORT KAGGLE API\nimport jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()\n\n# CLEAR MEMORY\nimport gc\ndel targets, df, oof, true\n_ = gc.collect()\n\n```\n\n\n\n\n\n---------------------------------------------------------------------------\nModuleNotFoundError                       Traceback (most recent call last)\nCell In[19], line 2\n      1 # IMPORT KAGGLE API\n----> 2 import jo_wilder\n      3 env = jo_wilder.make_env()\n      4 iter_test = env.iter_test()\n\nFile /kaggle/input/predict-student-performance-from-game-play/jo_wilder/__init__.py:2\n----> 2 from .competition import make_env\n      4 __all__ = ['make_env']\n\nModuleNotFoundError: No module named 'jo_wilder.competition'",
    "2244015": "takichan Same here... @philculliton Is Kaggle aware of this error? Or is this a user error since we missed some updates we are supposed to be doing?\n\n! Update. For my notebooks this error only seems to occur when using the latest version. Version of 29th of March works fine.",
    "2244135": "Oh, thank you for repling me !\nI though It's a just problem with my notebook, but it seems to be a system issue.",
    "2244937": "I could avoid module error to run on nonlatest enviroment, but I faced to TypeError at 'iter_test'. \nIs this also module problem?\n\n\n```python\nimport jo_wilder\nenv = jo_wilder.make_env()\niter_test = env.iter_test()\n\nlimits = {'0-4':(1,4), '5-12':(4,14), '13-22':(14,19)}\n\nfor (test, sample_submission) in iter_test:\n...\n```\n \n\n\n---------------------------------------------------------------------------\nTypeError                                 Traceback (most recent call last)\n/tmp/ipykernel_25/350086147.py in <module>\n      1 limits = {'0-4':(1,4), '5-12':(4,14), '13-22':(14,19)}\n      2 \n----> 3 for (test, sample_submission) in iter_test:\n      4 \n      5     # FEATURE ENGINEER TEST DATA\n\nTypeError: cannot unpack non-iterable NoneType object",
    "2247030": "I'm having the same problem. Seems like an issue with the API's latest update.\n\n@philculliton would you mind taking a look please? Thanks!",
    "2263890": "I had the same error. Have you solved the problem now?",
    "2265115": "This error can occur when executing recently created code.\nSome people have reported that changing the old environment solves the problem. However, I could not resolve this error ...... So I found a similar executable code from \"code\" and edited it.\n But I am not sure if that is the right solution...",
    "2266582": "ok I see. Thank you for your reply",
    "2302865": "I also had the same issue, using jo_wilder_310 instead of jo_wilder helped me:\nimport jo_wilder_310\nenv = jo_wilder_310.make_env()\n\niter_test = env.iter_test()"
  },
  "source": "meta"
}