{
  "id": 551130,
  "title": "[solved] If you meet this problem when submit the code: TypeError: '>' not supported between instances of 'NoneType' and 'int'",
  "url": "/competitions/jane-street-real-time-market-data-forecasting/discussion/551130",
  "author_name": "",
  "post_date": "2024-12-11T12:56:54.568568200Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>If you encounter the following error in a Kaggle Notebook after uploading your model:<br>\n<code>TypeError: '&gt;' not supported between instances of 'NoneType' and 'int'</code><br>\nThis issue is often caused by an outdated version of LightGBM. To resolve it, upgrade LightGBM to the latest version. You can do so by running the following command in your notebook:</p>\n<pre><code>!pip install --upgrade lightgbm\n</code></pre>\n<p>Once the upgrade is complete, rerun your code, and the error should be resolved.</p>",
  "messages": [
    {
      "id": "3069402",
      "postDate": "12/11/2024 12:56:54",
      "content": "<p>If you encounter the following error in a Kaggle Notebook after uploading your model:<br>\n<code>TypeError: '&gt;' not supported between instances of 'NoneType' and 'int'</code><br>\nThis issue is often caused by an outdated version of LightGBM. To resolve it, upgrade LightGBM to the latest version. You can do so by running the following command in your notebook:</p>\n<pre><code>!pip install --upgrade lightgbm\n</code></pre>\n<p>Once the upgrade is complete, rerun your code, and the error should be resolved.</p>",
      "rawMarkdown": "If you encounter the following error in a Kaggle Notebook after uploading your model:\n\n`TypeError: '>' not supported between instances of 'NoneType' and 'int'`\nThis issue is often caused by an outdated version of LightGBM. To resolve it, upgrade LightGBM to the latest version. You can do so by running the following command in your notebook:\n```python\n!pip install --upgrade lightgbm\n```\nOnce the upgrade is complete, rerun your code, and the error should be resolved.",
      "votes": null
    },
    {
      "id": "3069408",
      "postDate": "12/11/2024 13:01:04",
      "content": "<p>you can not use <code>pip install</code> in the submission. The internet connection is off in the submitted notebook. </p>",
      "rawMarkdown": "you can not use `pip install` in the submission. The internet connection is off in the submitted notebook.",
      "votes": null
    },
    {
      "id": "3069418",
      "postDate": "12/11/2024 13:20:40",
      "content": "<p>As a matter of fact, you can install online packages on an offline notebook.<br>\n<a href=\"https://www.kaggle.com/docs/notebooks#modifying-a-notebook-specific-environment\" target=\"_blank\">Link</a></p>\n<p><a href=\"https://www.kaggle.com/discussions/product-announcements/532336\" target=\"_blank\">Tutorial</a></p>",
      "rawMarkdown": "As a matter of fact, you can install online packages on an offline notebook.\n[Link](https://www.kaggle.com/docs/notebooks#modifying-a-notebook-specific-environment)\n\n[Tutorial](https://www.kaggle.com/discussions/product-announcements/532336)",
      "votes": null
    },
    {
      "id": "3069455",
      "postDate": "12/11/2024 13:59:21",
      "content": "<p>Sorry, I forgot to mention that this is for offline training on your computer</p>",
      "rawMarkdown": "Sorry, I forgot to mention that this is for offline training on your computer",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3069408,
      "author_name": "shiyili",
      "author_url": "",
      "post_date": "12/11/2024 13:01:04",
      "content": "<p>you can not use <code>pip install</code> in the submission. The internet connection is off in the submitted notebook. </p>",
      "votes": null,
      "replies": [
        {
          "id": 3069418,
          "author_name": "nandodmelo",
          "author_url": "",
          "post_date": "12/11/2024 13:20:40",
          "content": "<p>As a matter of fact, you can install online packages on an offline notebook.<br>\n<a href=\"https://www.kaggle.com/docs/notebooks#modifying-a-notebook-specific-environment\" target=\"_blank\">Link</a></p>\n<p><a href=\"https://www.kaggle.com/discussions/product-announcements/532336\" target=\"_blank\">Tutorial</a></p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 3069455,
          "author_name": "yangzshi68",
          "author_url": "",
          "post_date": "12/11/2024 13:59:21",
          "content": "<p>Sorry, I forgot to mention that this is for offline training on your computer</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3069402": "If you encounter the following error in a Kaggle Notebook after uploading your model:\n\n`TypeError: '>' not supported between instances of 'NoneType' and 'int'`\nThis issue is often caused by an outdated version of LightGBM. To resolve it, upgrade LightGBM to the latest version. You can do so by running the following command in your notebook:\n```python\n!pip install --upgrade lightgbm\n```\nOnce the upgrade is complete, rerun your code, and the error should be resolved.",
    "3069408": "you can not use `pip install` in the submission. The internet connection is off in the submitted notebook.",
    "3069418": "As a matter of fact, you can install online packages on an offline notebook.\n[Link](https://www.kaggle.com/docs/notebooks#modifying-a-notebook-specific-environment)\n\n[Tutorial](https://www.kaggle.com/discussions/product-announcements/532336)",
    "3069455": "Sorry, I forgot to mention that this is for offline training on your computer"
  },
  "source": "meta"
}