{
  "id": 189895,
  "title": "riiideducation module import error @local machine",
  "url": "/competitions/riiid-test-answer-prediction/discussion/189895",
  "author_name": "",
  "post_date": "2020-10-09T08:36:15.921234Z",
  "votes": 3,
  "comment_count": 6,
  "views": 0,
  "content": "<p>I'm facing below import error with riiideducation in my local jupyter notebook.</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 &gt; &gt; in<br>\n  1<br>\n  ----&gt; 2 from .competition import make_env<br>\n  3<br>\n  4 all = ['make_env']<br>\n  ModuleNotFoundError: No module named 'riiideducation.competition'</p>\n</blockquote>\n<p>I'm guessing it could find the module directory and <strong>init</strong>.py file but failed to load the .so file (competition.cpython-37m-x86_64-linux-gnu.so). Does anyone know how to solve this..?</p>",
  "messages": [
    {
      "id": "1043778",
      "postDate": "10/09/2020 08:36:15",
      "content": "<p>I'm facing below import error with riiideducation in my local jupyter notebook.</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 &gt; &gt; in<br>\n  1<br>\n  ----&gt; 2 from .competition import make_env<br>\n  3<br>\n  4 all = ['make_env']<br>\n  ModuleNotFoundError: No module named 'riiideducation.competition'</p>\n</blockquote>\n<p>I'm guessing it could find the module directory and <strong>init</strong>.py file but failed to load the .so file (competition.cpython-37m-x86_64-linux-gnu.so). Does anyone know how to solve this..?</p>",
      "rawMarkdown": "I'm facing below import error with riiideducation in my local jupyter notebook.\n\n> ModuleNotFoundError Traceback (most recent call last)\n> in\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\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 and __init__.py file but failed to load the .so file (competition.cpython-37m-x86_64-linux-gnu.so). Does anyone know how to solve this..?",
      "votes": null
    },
    {
      "id": "1043795",
      "postDate": "10/09/2020 08:49:15",
      "content": "<p>You should run your code on Linux environment with python3.7.<br>\nIf you are using Mac or Windows, then you can make Ubuntu environment using Docker. </p>",
      "rawMarkdown": "You should run your code on Linux environment with python3.7.\nIf you are using Mac or Windows, then you can make Ubuntu environment using Docker.",
      "votes": null
    },
    {
      "id": "1043892",
      "postDate": "10/09/2020 10:09:50",
      "content": "<p>It doesn't work on any other machines<br>\nbecause that module is only available in kaggle kernels only<br>\nI guess</p>",
      "rawMarkdown": "It doesn't work on any other machines\nbecause that module is only available in kaggle kernels only\nI guess",
      "votes": null
    },
    {
      "id": "1046772",
      "postDate": "10/12/2020 02:04:47",
      "content": "<p><a href=\"https://www.kaggle.com/msharuk589\" target=\"_blank\">@msharuk589</a> <a href=\"https://www.kaggle.com/eunholee\" target=\"_blank\">@eunholee</a> I understood that it doesn't work on top of the windows.  Thank you for your advises!</p>",
      "rawMarkdown": "msharuk589 @eunholee I understood that it doesn't work on top of the windows.  Thank you for your advises!",
      "votes": null
    },
    {
      "id": "1066680",
      "postDate": "11/01/2020 23:42:31",
      "content": "<p>Why this restriction though? </p>",
      "rawMarkdown": "Why this restriction though?",
      "votes": null
    },
    {
      "id": "1099228",
      "postDate": "12/02/2020 07:35:27",
      "content": "<p>This may help for the above error if you dont want to use docker and want to run locally. <br>\n<a href=\"https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/200868\" target=\"_blank\">https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/200868</a></p>",
      "rawMarkdown": "This may help for the above error if you dont want to use docker and want to run locally. \nhttps://www.kaggle.com/c/riiid-test-answer-prediction/discussion/200868",
      "votes": null
    },
    {
      "id": "1099229",
      "postDate": "12/02/2020 07:35:43",
      "content": "<p>I think this is because the .so library is compatible with only 3.7 version.</p>",
      "rawMarkdown": "I think this is because the .so library is compatible with only 3.7 version.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1043795,
      "author_name": "eunholee",
      "author_url": "",
      "post_date": "10/09/2020 08:49:15",
      "content": "<p>You should run your code on Linux environment with python3.7.<br>\nIf you are using Mac or Windows, then you can make Ubuntu environment using Docker. </p>",
      "votes": null,
      "replies": [
        {
          "id": 1066680,
          "author_name": "thirupathi",
          "author_url": "",
          "post_date": "11/01/2020 23:42:31",
          "content": "<p>Why this restriction though? </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1099229,
          "author_name": "gamerdsinghvi",
          "author_url": "",
          "post_date": "12/02/2020 07:35:43",
          "content": "<p>I think this is because the .so library is compatible with only 3.7 version.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1043892,
      "author_name": "msharuk589",
      "author_url": "",
      "post_date": "10/09/2020 10:09:50",
      "content": "<p>It doesn't work on any other machines<br>\nbecause that module is only available in kaggle kernels only<br>\nI guess</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1046772,
      "author_name": "kenta731",
      "author_url": "",
      "post_date": "10/12/2020 02:04:47",
      "content": "<p><a href=\"https://www.kaggle.com/msharuk589\" target=\"_blank\">@msharuk589</a> <a href=\"https://www.kaggle.com/eunholee\" target=\"_blank\">@eunholee</a> I understood that it doesn't work on top of the windows.  Thank you for your advises!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1099228,
      "author_name": "gamerdsinghvi",
      "author_url": "",
      "post_date": "12/02/2020 07:35:27",
      "content": "<p>This may help for the above error if you dont want to use docker and want to run locally. <br>\n<a href=\"https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/200868\" target=\"_blank\">https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/200868</a></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1043778": "I'm facing below import error with riiideducation in my local jupyter notebook.\n\n> ModuleNotFoundError Traceback (most recent call last)\n> in\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\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 and __init__.py file but failed to load the .so file (competition.cpython-37m-x86_64-linux-gnu.so). Does anyone know how to solve this..?",
    "1043795": "You should run your code on Linux environment with python3.7.\nIf you are using Mac or Windows, then you can make Ubuntu environment using Docker.",
    "1043892": "It doesn't work on any other machines\nbecause that module is only available in kaggle kernels only\nI guess",
    "1046772": "msharuk589 @eunholee I understood that it doesn't work on top of the windows.  Thank you for your advises!",
    "1066680": "Why this restriction though?",
    "1099228": "This may help for the above error if you dont want to use docker and want to run locally. \nhttps://www.kaggle.com/c/riiid-test-answer-prediction/discussion/200868",
    "1099229": "I think this is because the .so library is compatible with only 3.7 version."
  },
  "source": "meta"
}