{
  "id": 300658,
  "title": "Importing gresearch_crypto on Mac-- Impossible?",
  "url": "/competitions/g-research-crypto-forecasting/discussion/300658",
  "author_name": "",
  "post_date": "2022-01-13T15:01:22.202181600Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Hello,</p>\n<p>I am getting this error message:  </p>\n<p>ModuleNotFoundError: No module named 'gresearch_crypto.competition'</p>\n<p>I have searched the discussion for similar posts, and the solutions offered were for Linux or Windows.  How do I submit predictions with a MacOS?  </p>\n<p>Thanks! </p>",
  "messages": [
    {
      "id": "1648633",
      "postDate": "01/13/2022 15:01:22",
      "content": "<p>Hello,</p>\n<p>I am getting this error message:  </p>\n<p>ModuleNotFoundError: No module named 'gresearch_crypto.competition'</p>\n<p>I have searched the discussion for similar posts, and the solutions offered were for Linux or Windows.  How do I submit predictions with a MacOS?  </p>\n<p>Thanks! </p>",
      "rawMarkdown": "Hello,\n\nI am getting this error message:  \n\nModuleNotFoundError: No module named 'gresearch_crypto.competition'\n\nI have searched the discussion for similar posts, and the solutions offered were for Linux or Windows.  How do I submit predictions with a MacOS?  \n\nThanks!",
      "votes": null
    },
    {
      "id": "1648734",
      "postDate": "01/13/2022 16:37:29",
      "content": "<p>It should work on Mac OS. You just need to make sure Python can find the package.</p>\n<p>First figure out where the folder is for the package. Then put this code before your import</p>\n<pre><code>import sys\nsys.path.insert(0, \"/tmp/working/kaggle/g-research/input/g-research-crypto-forecasting\")\n</code></pre>\n<p>Obviously on my system, the path to the folder is <code>/tmp/working/kaggle/g-research/input/g-research-crypto-forecasting</code>.</p>",
      "rawMarkdown": "It should work on Mac OS. You just need to make sure Python can find the package.\n\nFirst figure out where the folder is for the package. Then put this code before your import\n\n```\nimport sys\nsys.path.insert(0, \"/tmp/working/kaggle/g-research/input/g-research-crypto-forecasting\")\n```\n\nObviously on my system, the path to the folder is `/tmp/working/kaggle/g-research/input/g-research-crypto-forecasting`.",
      "votes": null
    },
    {
      "id": "1649029",
      "postDate": "01/13/2022 22:35:27",
      "content": "<p><a href=\"https://www.kaggle.com/marketneutral\" target=\"_blank\">@marketneutral</a>  still doesn't work even after I ran this:  sys.path.insert(0, os.getcwd())</p>",
      "rawMarkdown": "marketneutral  still doesn't work even after I ran this:  sys.path.insert(0, os.getcwd())",
      "votes": null
    },
    {
      "id": "1649876",
      "postDate": "01/14/2022 16:37:56",
      "content": "<p>it's probably because the folder is not in the current working directory</p>",
      "rawMarkdown": "it's probably because the folder is not in the current working directory",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1648734,
      "author_name": "marketneutral",
      "author_url": "",
      "post_date": "01/13/2022 16:37:29",
      "content": "<p>It should work on Mac OS. You just need to make sure Python can find the package.</p>\n<p>First figure out where the folder is for the package. Then put this code before your import</p>\n<pre><code>import sys\nsys.path.insert(0, \"/tmp/working/kaggle/g-research/input/g-research-crypto-forecasting\")\n</code></pre>\n<p>Obviously on my system, the path to the folder is <code>/tmp/working/kaggle/g-research/input/g-research-crypto-forecasting</code>.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1649029,
      "author_name": "jonathansilverman",
      "author_url": "",
      "post_date": "01/13/2022 22:35:27",
      "content": "<p><a href=\"https://www.kaggle.com/marketneutral\" target=\"_blank\">@marketneutral</a>  still doesn't work even after I ran this:  sys.path.insert(0, os.getcwd())</p>",
      "votes": null,
      "replies": [
        {
          "id": 1649876,
          "author_name": "marketneutral",
          "author_url": "",
          "post_date": "01/14/2022 16:37:56",
          "content": "<p>it's probably because the folder is not in the current working directory</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1648633": "Hello,\n\nI am getting this error message:  \n\nModuleNotFoundError: No module named 'gresearch_crypto.competition'\n\nI have searched the discussion for similar posts, and the solutions offered were for Linux or Windows.  How do I submit predictions with a MacOS?  \n\nThanks!",
    "1648734": "It should work on Mac OS. You just need to make sure Python can find the package.\n\nFirst figure out where the folder is for the package. Then put this code before your import\n\n```\nimport sys\nsys.path.insert(0, \"/tmp/working/kaggle/g-research/input/g-research-crypto-forecasting\")\n```\n\nObviously on my system, the path to the folder is `/tmp/working/kaggle/g-research/input/g-research-crypto-forecasting`.",
    "1649029": "marketneutral  still doesn't work even after I ran this:  sys.path.insert(0, os.getcwd())",
    "1649876": "it's probably because the folder is not in the current working directory"
  },
  "source": "meta"
}