{
  "id": 189310,
  "title": "How to install riiideducation Python module?",
  "url": "/competitions/riiid-test-answer-prediction/discussion/189310",
  "author_name": "",
  "post_date": "2020-10-07T08:43:06.870097400Z",
  "votes": 3,
  "comment_count": 12,
  "views": 0,
  "content": "<p>I can see  the folder riiideducation, but whenever I am importing riiideducation, error occurs. Can anyone help.</p>",
  "messages": [
    {
      "id": "1040592",
      "postDate": "10/07/2020 08:43:06",
      "content": "<p>I can see  the folder riiideducation, but whenever I am importing riiideducation, error occurs. Can anyone help.</p>",
      "rawMarkdown": "I can see  the folder riiideducation, but whenever I am importing riiideducation, error occurs. Can anyone help.",
      "votes": null
    },
    {
      "id": "1041176",
      "postDate": "10/07/2020 15:37:24",
      "content": "<p>I assume you're running into this issue on your local machine? If so, you probably just need to run <code>sys.path.append()</code> on the directory above the module. </p>",
      "rawMarkdown": "I assume you're running into this issue on your local machine? If so, you probably just need to run `sys.path.append()` on the directory above the module.",
      "votes": null
    },
    {
      "id": "1041390",
      "postDate": "10/07/2020 18:02:27",
      "content": "<p>I am using kaggle notebook but import riiideducation is not working.</p>",
      "rawMarkdown": "I am using kaggle notebook but import riiideducation is not working.",
      "votes": null
    },
    {
      "id": "1043689",
      "postDate": "10/09/2020 06:51:19",
      "content": "<p><a href=\"https://www.kaggle.com/youktinathbhowmick\" target=\"_blank\">@youktinathbhowmick</a> what error message occurs? It might help someone to help you :)<br>\nIn my local machine, it shows below error message..</p>\n<blockquote>\n  <p>ModuleNotFoundError                       Traceback (most recent call last)<br>\n   in <br>\n  ----&gt; 1 import riiideducation<br>\n       2 # You can only call make_env() once, so don't lose it!<br>\n  D:\\02_TRAINING\\01_kaggle\\compete\\Riiid_AnswerCorrectnessPrediction\\riiideducation__init__.py in <br>\n       1 <br>\n  ----&gt; 2 from .competition import make_env<br>\n       3 <br>\n      4 <strong>all</strong> = ['make_env']<br>\n  ModuleNotFoundError: No module named 'riiideducation.competition'</p>\n</blockquote>\n<p>I'm guessing it could find the module directory but failed to load the .so file (competition.cpython-37m-x86_64-linux-gnu.so), I hope someone suggest how to solve this issue and it will work for you also.</p>",
      "rawMarkdown": "youktinathbhowmick what error message occurs? It might help someone to help you :)\nIn my local machine, it shows below error message..\n>ModuleNotFoundError                       Traceback (most recent call last)\n><ipython-input-4-14b1835bb9fb> in <module>\n>----> 1 import riiideducation\n>      2 # You can only call make_env() once, so don't lose it!\n>D:\\02_TRAINING\\01_kaggle\\compete\\Riiid_AnswerCorrectnessPrediction\\riiideducation\\__init__.py in <module>\n>      1 \n>----> 2 from .competition import make_env\n>      3 \n>     4 __all__ = ['make_env']\n>ModuleNotFoundError: No module named 'riiideducation.competition'\n\nI'm guessing it could find the module directory but failed to load the .so file (competition.cpython-37m-x86_64-linux-gnu.so), I hope someone suggest how to solve this issue and it will work for you also.",
      "votes": null
    },
    {
      "id": "1043695",
      "postDate": "10/09/2020 06:59:01",
      "content": "<p>Hi, thanks for replying, the problem is fixed. But I got different problem now. take a look at this notebook: <a href=\"https://www.kaggle.com/youktinathbhowmick/riid-prediction-second-try\" target=\"_blank\">https://www.kaggle.com/youktinathbhowmick/riid-prediction-second-try</a><br>\nI don't know what is wrong but submission is giving error.</p>",
      "rawMarkdown": "Hi, thanks for replying, the problem is fixed. But I got different problem now. take a look at this notebook: https://www.kaggle.com/youktinathbhowmick/riid-prediction-second-try\nI don't know what is wrong but submission is giving error.",
      "votes": null
    },
    {
      "id": "1043768",
      "postDate": "10/09/2020 08:25:13",
      "content": "<p>Hi, that's good to know you had solved the original issue. Then my one should be posted again separately.<br>\nI've just started to work, so yet to reach the submission, good luck!</p>",
      "rawMarkdown": "Hi, that's good to know you had solved the original issue. Then my one should be posted again separately.\nI've just started to work, so yet to reach the submission, good luck!",
      "votes": null
    },
    {
      "id": "1044812",
      "postDate": "10/10/2020 06:25:43",
      "content": "<p>Hi, I have the same error message in my local machine  : ModuleNotFoundError: No module named 'riiideducation.competition'. Could you share just how you fixed it ? Thanks!</p>",
      "rawMarkdown": "Hi, I have the same error message in my local machine  : ModuleNotFoundError: No module named 'riiideducation.competition'. Could you share just how you fixed it ? Thanks!",
      "votes": null
    },
    {
      "id": "1044836",
      "postDate": "10/10/2020 06:43:38",
      "content": "<p>use kaggle notebook with riid! dataset.</p>",
      "rawMarkdown": "use kaggle notebook with riid! dataset.",
      "votes": null
    },
    {
      "id": "1045777",
      "postDate": "10/11/2020 02:55:58",
      "content": "<p>How can I import riiideducation? <br>\nStill No module named 'riiideduction' when I use kaggle notebook </p>",
      "rawMarkdown": "How can I import riiideducation? \nStill No module named 'riiideduction' when I use kaggle notebook",
      "votes": null
    },
    {
      "id": "1046600",
      "postDate": "10/11/2020 20:27:09",
      "content": "<p>I had the same issue on a local docker (linux) image. Make sure you use python 3.7 as someone suggested in another thread.</p>",
      "rawMarkdown": "I had the same issue on a local docker (linux) image. Make sure you use python 3.7 as someone suggested in another thread.",
      "votes": null
    },
    {
      "id": "1062162",
      "postDate": "10/27/2020 16:02:20",
      "content": "<p>Sorry, it didn't work for me on my local machine. Is it possible that, it won't work on Windows machine? What about Windows Subsystem for Linux? Thanks in advance.</p>",
      "rawMarkdown": "Sorry, it didn't work for me on my local machine. Is it possible that, it won't work on Windows machine? What about Windows Subsystem for Linux? Thanks in advance.",
      "votes": null
    },
    {
      "id": "1068092",
      "postDate": "11/03/2020 03:41:06",
      "content": "<p>It is working well on WSL. I am confirmed that.</p>",
      "rawMarkdown": "It is working well on WSL. I am confirmed that.",
      "votes": null
    },
    {
      "id": "1602098",
      "postDate": "12/01/2021 19:08:42",
      "content": "<p>As suggested this is how you would import this library</p>\n<pre><code>import sys\nsys.path.append('/kaggle/input/riiid-test-answer-prediction')\nimport riiideducation\n</code></pre>",
      "rawMarkdown": "As suggested this is how you would import this library\n```\nimport sys\nsys.path.append('/kaggle/input/riiid-test-answer-prediction')\nimport riiideducation\n```",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1041176,
      "author_name": "sohier",
      "author_url": "",
      "post_date": "10/07/2020 15:37:24",
      "content": "<p>I assume you're running into this issue on your local machine? If so, you probably just need to run <code>sys.path.append()</code> on the directory above the module. </p>",
      "votes": null,
      "replies": [
        {
          "id": 1062162,
          "author_name": "sndipn616",
          "author_url": "",
          "post_date": "10/27/2020 16:02:20",
          "content": "<p>Sorry, it didn't work for me on my local machine. Is it possible that, it won't work on Windows machine? What about Windows Subsystem for Linux? Thanks in advance.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1068092,
          "author_name": "diwlco",
          "author_url": "",
          "post_date": "11/03/2020 03:41:06",
          "content": "<p>It is working well on WSL. I am confirmed that.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1041390,
      "author_name": "youktinathbhowmick",
      "author_url": "",
      "post_date": "10/07/2020 18:02:27",
      "content": "<p>I am using kaggle notebook but import riiideducation is not working.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1043689,
      "author_name": "kenta731",
      "author_url": "",
      "post_date": "10/09/2020 06:51:19",
      "content": "<p><a href=\"https://www.kaggle.com/youktinathbhowmick\" target=\"_blank\">@youktinathbhowmick</a> what error message occurs? It might help someone to help you :)<br>\nIn my local machine, it shows below error message..</p>\n<blockquote>\n  <p>ModuleNotFoundError                       Traceback (most recent call last)<br>\n   in <br>\n  ----&gt; 1 import riiideducation<br>\n       2 # You can only call make_env() once, so don't lose it!<br>\n  D:\\02_TRAINING\\01_kaggle\\compete\\Riiid_AnswerCorrectnessPrediction\\riiideducation__init__.py in <br>\n       1 <br>\n  ----&gt; 2 from .competition import make_env<br>\n       3 <br>\n      4 <strong>all</strong> = ['make_env']<br>\n  ModuleNotFoundError: No module named 'riiideducation.competition'</p>\n</blockquote>\n<p>I'm guessing it could find the module directory but failed to load the .so file (competition.cpython-37m-x86_64-linux-gnu.so), I hope someone suggest how to solve this issue and it will work for you also.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1043695,
          "author_name": "youktinathbhowmick",
          "author_url": "",
          "post_date": "10/09/2020 06:59:01",
          "content": "<p>Hi, thanks for replying, the problem is fixed. But I got different problem now. take a look at this notebook: <a href=\"https://www.kaggle.com/youktinathbhowmick/riid-prediction-second-try\" target=\"_blank\">https://www.kaggle.com/youktinathbhowmick/riid-prediction-second-try</a><br>\nI don't know what is wrong but submission is giving error.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1043768,
          "author_name": "kenta731",
          "author_url": "",
          "post_date": "10/09/2020 08:25:13",
          "content": "<p>Hi, that's good to know you had solved the original issue. Then my one should be posted again separately.<br>\nI've just started to work, so yet to reach the submission, good luck!</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1044812,
          "author_name": "sheemaegbert",
          "author_url": "",
          "post_date": "10/10/2020 06:25:43",
          "content": "<p>Hi, I have the same error message in my local machine  : ModuleNotFoundError: No module named 'riiideducation.competition'. Could you share just how you fixed it ? Thanks!</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1044836,
          "author_name": "youktinathbhowmick",
          "author_url": "",
          "post_date": "10/10/2020 06:43:38",
          "content": "<p>use kaggle notebook with riid! dataset.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1045777,
      "author_name": "lingmutian",
      "author_url": "",
      "post_date": "10/11/2020 02:55:58",
      "content": "<p>How can I import riiideducation? <br>\nStill No module named 'riiideduction' when I use kaggle notebook </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1046600,
      "author_name": "roman99",
      "author_url": "",
      "post_date": "10/11/2020 20:27:09",
      "content": "<p>I had the same issue on a local docker (linux) image. Make sure you use python 3.7 as someone suggested in another thread.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1602098,
      "author_name": "georgezoto",
      "author_url": "",
      "post_date": "12/01/2021 19:08:42",
      "content": "<p>As suggested this is how you would import this library</p>\n<pre><code>import sys\nsys.path.append('/kaggle/input/riiid-test-answer-prediction')\nimport riiideducation\n</code></pre>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1040592": "I can see  the folder riiideducation, but whenever I am importing riiideducation, error occurs. Can anyone help.",
    "1041176": "I assume you're running into this issue on your local machine? If so, you probably just need to run `sys.path.append()` on the directory above the module.",
    "1041390": "I am using kaggle notebook but import riiideducation is not working.",
    "1043689": "youktinathbhowmick what error message occurs? It might help someone to help you :)\nIn my local machine, it shows below error message..\n>ModuleNotFoundError                       Traceback (most recent call last)\n><ipython-input-4-14b1835bb9fb> in <module>\n>----> 1 import riiideducation\n>      2 # You can only call make_env() once, so don't lose it!\n>D:\\02_TRAINING\\01_kaggle\\compete\\Riiid_AnswerCorrectnessPrediction\\riiideducation\\__init__.py in <module>\n>      1 \n>----> 2 from .competition import make_env\n>      3 \n>     4 __all__ = ['make_env']\n>ModuleNotFoundError: No module named 'riiideducation.competition'\n\nI'm guessing it could find the module directory but failed to load the .so file (competition.cpython-37m-x86_64-linux-gnu.so), I hope someone suggest how to solve this issue and it will work for you also.",
    "1043695": "Hi, thanks for replying, the problem is fixed. But I got different problem now. take a look at this notebook: https://www.kaggle.com/youktinathbhowmick/riid-prediction-second-try\nI don't know what is wrong but submission is giving error.",
    "1043768": "Hi, that's good to know you had solved the original issue. Then my one should be posted again separately.\nI've just started to work, so yet to reach the submission, good luck!",
    "1044812": "Hi, I have the same error message in my local machine  : ModuleNotFoundError: No module named 'riiideducation.competition'. Could you share just how you fixed it ? Thanks!",
    "1044836": "use kaggle notebook with riid! dataset.",
    "1045777": "How can I import riiideducation? \nStill No module named 'riiideduction' when I use kaggle notebook",
    "1046600": "I had the same issue on a local docker (linux) image. Make sure you use python 3.7 as someone suggested in another thread.",
    "1062162": "Sorry, it didn't work for me on my local machine. Is it possible that, it won't work on Windows machine? What about Windows Subsystem for Linux? Thanks in advance.",
    "1068092": "It is working well on WSL. I am confirmed that.",
    "1602098": "As suggested this is how you would import this library\n```\nimport sys\nsys.path.append('/kaggle/input/riiid-test-answer-prediction')\nimport riiideducation\n```"
  },
  "source": "meta"
}