{
  "id": 133152,
  "title": "GDAL Installation error",
  "url": "/competitions/ds4g-environmental-insights-explorer/discussion/133152",
  "author_name": "Naga Bilwanth",
  "post_date": "2020-03-01T01:03:01.280000",
  "votes": 0,
  "comment_count": 8,
  "views": 0,
  "content": "<p>Hi Kaggle Team,\n I am getting below error while installing GDAL in Kaggle kernel. Any suggestions to fix this issue and get GDAL installed.</p>\n\n<p>Thanks in advance\n-Bilwanth</p>\n\n<p>Collecting GDAL\n  Using cached GDAL-3.0.4.tar.gz (577 kB)\n\u001b[31m    ERROR: Command errored out with exit status 1:\n     command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-oqmlleb9/GDAL/setup.py'\"'\"'; <strong>file</strong>='\"'\"'/tmp/pip-install-oqmlleb9/GDAL/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(<strong>file</strong>);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, <strong>file</strong>, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info\n         cwd: /tmp/pip-install-oqmlleb9/GDAL/\n    Complete output (72 lines):\n    running egg_info\n    creating /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info\n    writing /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/PKG-INFO\n    writing dependency_links to /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/dependency_links.txt\n    writing top-level names to /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/top_level.txt\n    writing manifest file '/tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/SOURCES.txt'\n    Traceback (most recent call last):\n      File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 151, in fetch_config\n        p = subprocess.Popen([command, args], stdout=subprocess.PIPE)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 709, in <strong>init</strong>\n        restore_signals, start_new_session)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 1344, in _execute_child\n        raise child_exception_type(errno_num, err_msg, err_filename)\n    FileNotFoundError: [Errno 2] No such file or directory: '../../apps/gdal-config': '../../apps/gdal-config'</p>\n\n<pre><code>During handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 249, in get_gdal_config\n    return fetch_config(option, gdal_config=self.gdal_config)\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 154, in fetch_config\n    raise gdal_config_error(e)\n__main__.gdal_config_error: [Errno 2] No such file or directory: '../../apps/gdal-config': '../../apps/gdal-config'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 151, in fetch_config\n    p = subprocess.Popen([command, args], stdout=subprocess.PIPE)\n  File \"/opt/conda/lib/python3.6/subprocess.py\", line 709, in __init__\n    restore_signals, start_new_session)\n  File \"/opt/conda/lib/python3.6/subprocess.py\", line 1344, in _execute_child\n    raise child_exception_type(errno_num, err_msg, err_filename)\nFileNotFoundError: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"&lt;string&gt;\", line 1, in &lt;module&gt;\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 450, in &lt;module&gt;\n    setup(**setup_kwargs)\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/__init__.py\", line 144, in setup\n    return distutils.core.setup(**attrs)\n  File \"/opt/conda/lib/python3.6/distutils/core.py\", line 148, in setup\n    dist.run_commands()\n  File \"/opt/conda/lib/python3.6/distutils/dist.py\", line 955, in run_commands\n    self.run_command(cmd)\n  File \"/opt/conda/lib/python3.6/distutils/dist.py\", line 974, in run_command\n    cmd_obj.run()\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/egg_info.py\", line 297, in run\n    self.find_sources()\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/egg_info.py\", line 304, in find_sources\n    mm.run()\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/egg_info.py\", line 535, in run\n    self.add_defaults()\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/egg_info.py\", line 571, in add_defaults\n    sdist.add_defaults(self)\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/py36compat.py\", line 36, in add_defaults\n    self._add_defaults_ext()\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/py36compat.py\", line 119, in _add_defaults_ext\n    build_ext = self.get_finalized_command('build_ext')\n  File \"/opt/conda/lib/python3.6/distutils/cmd.py\", line 299, in get_finalized_command\n    cmd_obj.ensure_finalized()\n  File \"/opt/conda/lib/python3.6/distutils/cmd.py\", line 107, in ensure_finalized\n    self.finalize_options()\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 311, in finalize_options\n    self.gdaldir = self.get_gdal_config('prefix')\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 255, in get_gdal_config\n    return fetch_config(option)\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 154, in fetch_config\n    raise gdal_config_error(e)\n__main__.gdal_config_error: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'\n----------------------------------------\u001b[0m\n</code></pre>\n\n<p>\u001b[31mERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\u001b[0m</p>",
  "messages": [
    {
      "id": 761984,
      "postDate": "2020-03-03T05:20:06.587Z",
      "content": "<p><a href=\"/paultimothymooney\">@paultimothymooney</a> - Is there any possibility  to look into above issue?</p>",
      "rawMarkdown": "@paultimothymooney - Is there any possibility  to look into above issue?",
      "replies": [
        {
          "id": 762001,
          "postDate": "2020-03-03T05:30:56.313Z",
          "content": "<p>If pip installing the package in an internet enabled notebook does not work then you can get the package installed on the default Kaggle docker image by following the instructions here: <a href=\"https://github.com/Kaggle/docker-python#opening-a-pull-request\">https://github.com/Kaggle/docker-python#opening-a-pull-request</a>.  </p>",
          "rawMarkdown": "If pip installing the package in an internet enabled notebook does not work then you can get the package installed on the default Kaggle docker image by following the instructions here: https://github.com/Kaggle/docker-python#opening-a-pull-request.  "
        },
        {
          "id": 762035,
          "postDate": "2020-03-03T06:24:56.110Z",
          "content": "<p>Thanks <a href=\"/paultimothymooney\">@paultimothymooney</a> !! I am new to Kaggle, just want to clear my understanding</p>\n\n<p>I see you want me download docker image, setup the environment locally and test it. Does my understanding is correct.</p>\n\n<p>If it's correct, after submitting, Do I need to make sure the script submitted is running on cloud or I no need to worry about execution. If I just specify the steps is enough?</p>\n\n<p>Thanks\nBilwanth</p>",
          "rawMarkdown": "Thanks @paultimothymooney !! I am new to Kaggle, just want to clear my understanding\n\nI see you want me download docker image, setup the environment locally and test it. Does my understanding is correct.\n\nIf it's correct, after submitting, Do I need to make sure the script submitted is running on cloud or I no need to worry about execution. If I just specify the steps is enough?\n\nThanks\nBilwanth"
        },
        {
          "id": 762425,
          "postDate": "2020-03-03T13:55:58.243Z",
          "content": "<ol>\n<li>git clone <a href=\"https://github.com/Kaggle/docker-python\">https://github.com/Kaggle/docker-python</a></li>\n<li>add your package to <a href=\"https://github.com/Kaggle/docker-python/blob/master/Dockerfile\">https://github.com/Kaggle/docker-python/blob/master/Dockerfile</a>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1314380%2F193488ee4824e9b1ae7bc95f09fae77a%2FScreen%20Shot%202020-03-03%20at%206.53.39%20AM.png?generation=1583243645473320&amp;alt=media\" alt=\"\"></li>\n<li>add a test to <a href=\"https://github.com/Kaggle/docker-python/tree/master/tests\">https://github.com/Kaggle/docker-python/tree/master/tests</a></li>\n<li>build the image (./build)</li>\n<li>run the tests (./test)</li>\n<li>open a pull request</li>\n</ol>\n\n<p>See <a href=\"https://github.com/Kaggle/docker-python#opening-a-pull-request\">https://github.com/Kaggle/docker-python#opening-a-pull-request</a> for more detail</p>",
          "rawMarkdown": "1. git clone https://github.com/Kaggle/docker-python\n2. add your package to https://github.com/Kaggle/docker-python/blob/master/Dockerfile\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1314380%2F193488ee4824e9b1ae7bc95f09fae77a%2FScreen%20Shot%202020-03-03%20at%206.53.39%20AM.png?generation=1583243645473320&amp;alt=media)\n3. add a test to https://github.com/Kaggle/docker-python/tree/master/tests\n4. build the image (./build)\n5. run the tests (./test)\n6. open a pull request\n\nSee https://github.com/Kaggle/docker-python#opening-a-pull-request for more detail",
          "votes": 1
        },
        {
          "id": 763044,
          "postDate": "2020-03-04T04:27:53.430Z",
          "content": "<p><a href=\"/paultimothymooney\">@paultimothymooney</a>  - How much time does the build will take?</p>",
          "rawMarkdown": "@paultimothymooney  - How much time does the build will take?"
        },
        {
          "id": 763503,
          "postDate": "2020-03-04T15:02:06.903Z",
          "content": "<p>It depends on what type of machine you are using.  On my VM the build takes less than one hour.</p>",
          "rawMarkdown": "It depends on what type of machine you are using.  On my VM the build takes less than one hour."
        },
        {
          "id": 766123,
          "postDate": "2020-03-07T17:28:51.897Z",
          "content": "<p>This is my experience with installation of GDAL in Kaggle docker. This may helpful for anyone who's trying this in f future.</p>\n\n<p>I tried getting GDAL library install in Kaggle docker, it has given several set of errors like gdal_config folder missing. I was able to fix all these issues by following gdal installation instructions. Installation was not successful. Tried with pygdal also, it got installed successfully but while importing it was giving error module not found. Hence I stepped back using GDAL in Kaggle docker.</p>\n\n<p>Functionality provided by GDAL, I was able to get through Rasterio library as well, to use functionality like Geo-Transform, which is readily available in Kaggle kernel.</p>\n\n<p>Hope this information help you.</p>",
          "rawMarkdown": "This is my experience with installation of GDAL in Kaggle docker. This may helpful for anyone who's trying this in f future.\n\nI tried getting GDAL library install in Kaggle docker, it has given several set of errors like gdal_config folder missing. I was able to fix all these issues by following gdal installation instructions. Installation was not successful. Tried with pygdal also, it got installed successfully but while importing it was giving error module not found. Hence I stepped back using GDAL in Kaggle docker.\n\nFunctionality provided by GDAL, I was able to get through Rasterio library as well, to use functionality like Geo-Transform, which is readily available in Kaggle kernel.\n\nHope this information help you.",
          "votes": 1
        }
      ]
    },
    {
      "id": 760206,
      "postDate": "2020-03-01T01:03:01.280Z",
      "content": "<p>Hi Kaggle Team,\n I am getting below error while installing GDAL in Kaggle kernel. Any suggestions to fix this issue and get GDAL installed.</p>\n\n<p>Thanks in advance\n-Bilwanth</p>\n\n<p>Collecting GDAL\n  Using cached GDAL-3.0.4.tar.gz (577 kB)\n\u001b[31m    ERROR: Command errored out with exit status 1:\n     command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-oqmlleb9/GDAL/setup.py'\"'\"'; <strong>file</strong>='\"'\"'/tmp/pip-install-oqmlleb9/GDAL/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(<strong>file</strong>);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, <strong>file</strong>, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info\n         cwd: /tmp/pip-install-oqmlleb9/GDAL/\n    Complete output (72 lines):\n    running egg_info\n    creating /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info\n    writing /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/PKG-INFO\n    writing dependency_links to /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/dependency_links.txt\n    writing top-level names to /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/top_level.txt\n    writing manifest file '/tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/SOURCES.txt'\n    Traceback (most recent call last):\n      File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 151, in fetch_config\n        p = subprocess.Popen([command, args], stdout=subprocess.PIPE)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 709, in <strong>init</strong>\n        restore_signals, start_new_session)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 1344, in _execute_child\n        raise child_exception_type(errno_num, err_msg, err_filename)\n    FileNotFoundError: [Errno 2] No such file or directory: '../../apps/gdal-config': '../../apps/gdal-config'</p>\n\n<pre><code>During handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 249, in get_gdal_config\n    return fetch_config(option, gdal_config=self.gdal_config)\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 154, in fetch_config\n    raise gdal_config_error(e)\n__main__.gdal_config_error: [Errno 2] No such file or directory: '../../apps/gdal-config': '../../apps/gdal-config'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 151, in fetch_config\n    p = subprocess.Popen([command, args], stdout=subprocess.PIPE)\n  File \"/opt/conda/lib/python3.6/subprocess.py\", line 709, in __init__\n    restore_signals, start_new_session)\n  File \"/opt/conda/lib/python3.6/subprocess.py\", line 1344, in _execute_child\n    raise child_exception_type(errno_num, err_msg, err_filename)\nFileNotFoundError: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"&lt;string&gt;\", line 1, in &lt;module&gt;\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 450, in &lt;module&gt;\n    setup(**setup_kwargs)\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/__init__.py\", line 144, in setup\n    return distutils.core.setup(**attrs)\n  File \"/opt/conda/lib/python3.6/distutils/core.py\", line 148, in setup\n    dist.run_commands()\n  File \"/opt/conda/lib/python3.6/distutils/dist.py\", line 955, in run_commands\n    self.run_command(cmd)\n  File \"/opt/conda/lib/python3.6/distutils/dist.py\", line 974, in run_command\n    cmd_obj.run()\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/egg_info.py\", line 297, in run\n    self.find_sources()\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/egg_info.py\", line 304, in find_sources\n    mm.run()\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/egg_info.py\", line 535, in run\n    self.add_defaults()\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/egg_info.py\", line 571, in add_defaults\n    sdist.add_defaults(self)\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/py36compat.py\", line 36, in add_defaults\n    self._add_defaults_ext()\n  File \"/opt/conda/lib/python3.6/site-packages/setuptools/command/py36compat.py\", line 119, in _add_defaults_ext\n    build_ext = self.get_finalized_command('build_ext')\n  File \"/opt/conda/lib/python3.6/distutils/cmd.py\", line 299, in get_finalized_command\n    cmd_obj.ensure_finalized()\n  File \"/opt/conda/lib/python3.6/distutils/cmd.py\", line 107, in ensure_finalized\n    self.finalize_options()\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 311, in finalize_options\n    self.gdaldir = self.get_gdal_config('prefix')\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 255, in get_gdal_config\n    return fetch_config(option)\n  File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 154, in fetch_config\n    raise gdal_config_error(e)\n__main__.gdal_config_error: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'\n----------------------------------------\u001b[0m\n</code></pre>\n\n<p>\u001b[31mERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\u001b[0m</p>",
      "rawMarkdown": "Hi Kaggle Team,\n I am getting below error while installing GDAL in Kaggle kernel. Any suggestions to fix this issue and get GDAL installed.\n\nThanks in advance\n-Bilwanth\n\n\nCollecting GDAL\n  Using cached GDAL-3.0.4.tar.gz (577 kB)\n\u001b[31m    ERROR: Command errored out with exit status 1:\n     command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-oqmlleb9/GDAL/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-oqmlleb9/GDAL/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info\n         cwd: /tmp/pip-install-oqmlleb9/GDAL/\n    Complete output (72 lines):\n    running egg_info\n    creating /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info\n    writing /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/PKG-INFO\n    writing dependency_links to /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/dependency_links.txt\n    writing top-level names to /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/top_level.txt\n    writing manifest file '/tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/SOURCES.txt'\n    Traceback (most recent call last):\n      File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 151, in fetch_config\n        p = subprocess.Popen([command, args], stdout=subprocess.PIPE)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 709, in __init__\n        restore_signals, start_new_session)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 1344, in _execute_child\n        raise child_exception_type(errno_num, err_msg, err_filename)\n    FileNotFoundError: [Errno 2] No such file or directory: '../../apps/gdal-config': '../../apps/gdal-config'\n    \n    During handling of the above exception, another exception occurred:\n    \n    Traceback (most recent call last):\n      File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 249, in get_gdal_config\n        return fetch_config(option, gdal_config=self.gdal_config)\n      File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 154, in fetch_config\n        raise gdal_config_error(e)\n    __main__.gdal_config_error: [Errno 2] No such file or directory: '../../apps/gdal-config': '../../apps/gdal-config'\n    \n    During handling of the above exception, another exception occurred:\n    \n    Traceback (most recent call last):\n      File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 151, in fetch_config\n        p = subprocess.Popen([command, args], stdout=subprocess.PIPE)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 709, in __init__\n        restore_signals, start_new_session)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 1344, in _execute_child\n        raise child_exception_type(errno_num, err_msg, err_filename)\n    FileNotFoundError: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'\n    \n    During handling of the above exception, another exception occurred:\n    \n    Traceback (most recent call last):\n      File \""
    },
    {
      "id": 766120,
      "postDate": "2020-03-07T17:27:52.367Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 761984,
      "author_name": "Naga Bilwanth",
      "author_url": "",
      "post_date": "2020-03-03T05:20:06.587000",
      "content": "<p><a href=\"/paultimothymooney\">@paultimothymooney</a> - Is there any possibility  to look into above issue?</p>",
      "votes": 0,
      "replies": [
        {
          "id": 762001,
          "author_name": "Paul Mooney",
          "author_url": "",
          "post_date": "2020-03-03T05:30:56.313000",
          "content": "<p>If pip installing the package in an internet enabled notebook does not work then you can get the package installed on the default Kaggle docker image by following the instructions here: <a href=\"https://github.com/Kaggle/docker-python#opening-a-pull-request\">https://github.com/Kaggle/docker-python#opening-a-pull-request</a>.  </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 762035,
          "author_name": "Naga Bilwanth",
          "author_url": "",
          "post_date": "2020-03-03T06:24:56.110000",
          "content": "<p>Thanks <a href=\"/paultimothymooney\">@paultimothymooney</a> !! I am new to Kaggle, just want to clear my understanding</p>\n\n<p>I see you want me download docker image, setup the environment locally and test it. Does my understanding is correct.</p>\n\n<p>If it's correct, after submitting, Do I need to make sure the script submitted is running on cloud or I no need to worry about execution. If I just specify the steps is enough?</p>\n\n<p>Thanks\nBilwanth</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 762425,
          "author_name": "Paul Mooney",
          "author_url": "",
          "post_date": "2020-03-03T13:55:58.243000",
          "content": "<ol>\n<li>git clone <a href=\"https://github.com/Kaggle/docker-python\">https://github.com/Kaggle/docker-python</a></li>\n<li>add your package to <a href=\"https://github.com/Kaggle/docker-python/blob/master/Dockerfile\">https://github.com/Kaggle/docker-python/blob/master/Dockerfile</a>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1314380%2F193488ee4824e9b1ae7bc95f09fae77a%2FScreen%20Shot%202020-03-03%20at%206.53.39%20AM.png?generation=1583243645473320&amp;alt=media\" alt=\"\"></li>\n<li>add a test to <a href=\"https://github.com/Kaggle/docker-python/tree/master/tests\">https://github.com/Kaggle/docker-python/tree/master/tests</a></li>\n<li>build the image (./build)</li>\n<li>run the tests (./test)</li>\n<li>open a pull request</li>\n</ol>\n\n<p>See <a href=\"https://github.com/Kaggle/docker-python#opening-a-pull-request\">https://github.com/Kaggle/docker-python#opening-a-pull-request</a> for more detail</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 763044,
          "author_name": "Naga Bilwanth",
          "author_url": "",
          "post_date": "2020-03-04T04:27:53.430000",
          "content": "<p><a href=\"/paultimothymooney\">@paultimothymooney</a>  - How much time does the build will take?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 763503,
          "author_name": "Paul Mooney",
          "author_url": "",
          "post_date": "2020-03-04T15:02:06.903000",
          "content": "<p>It depends on what type of machine you are using.  On my VM the build takes less than one hour.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 766123,
          "author_name": "Naga Bilwanth",
          "author_url": "",
          "post_date": "2020-03-07T17:28:51.897000",
          "content": "<p>This is my experience with installation of GDAL in Kaggle docker. This may helpful for anyone who's trying this in f future.</p>\n\n<p>I tried getting GDAL library install in Kaggle docker, it has given several set of errors like gdal_config folder missing. I was able to fix all these issues by following gdal installation instructions. Installation was not successful. Tried with pygdal also, it got installed successfully but while importing it was giving error module not found. Hence I stepped back using GDAL in Kaggle docker.</p>\n\n<p>Functionality provided by GDAL, I was able to get through Rasterio library as well, to use functionality like Geo-Transform, which is readily available in Kaggle kernel.</p>\n\n<p>Hope this information help you.</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 766120,
      "author_name": "",
      "author_url": "",
      "post_date": "2020-03-07T17:27:52.367000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "761984": "@paultimothymooney - Is there any possibility  to look into above issue?",
    "760206": "Hi Kaggle Team,\n I am getting below error while installing GDAL in Kaggle kernel. Any suggestions to fix this issue and get GDAL installed.\n\nThanks in advance\n-Bilwanth\n\n\nCollecting GDAL\n  Using cached GDAL-3.0.4.tar.gz (577 kB)\n\u001b[31m    ERROR: Command errored out with exit status 1:\n     command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-oqmlleb9/GDAL/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-oqmlleb9/GDAL/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info\n         cwd: /tmp/pip-install-oqmlleb9/GDAL/\n    Complete output (72 lines):\n    running egg_info\n    creating /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info\n    writing /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/PKG-INFO\n    writing dependency_links to /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/dependency_links.txt\n    writing top-level names to /tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/top_level.txt\n    writing manifest file '/tmp/pip-install-oqmlleb9/GDAL/pip-egg-info/GDAL.egg-info/SOURCES.txt'\n    Traceback (most recent call last):\n      File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 151, in fetch_config\n        p = subprocess.Popen([command, args], stdout=subprocess.PIPE)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 709, in __init__\n        restore_signals, start_new_session)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 1344, in _execute_child\n        raise child_exception_type(errno_num, err_msg, err_filename)\n    FileNotFoundError: [Errno 2] No such file or directory: '../../apps/gdal-config': '../../apps/gdal-config'\n    \n    During handling of the above exception, another exception occurred:\n    \n    Traceback (most recent call last):\n      File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 249, in get_gdal_config\n        return fetch_config(option, gdal_config=self.gdal_config)\n      File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 154, in fetch_config\n        raise gdal_config_error(e)\n    __main__.gdal_config_error: [Errno 2] No such file or directory: '../../apps/gdal-config': '../../apps/gdal-config'\n    \n    During handling of the above exception, another exception occurred:\n    \n    Traceback (most recent call last):\n      File \"/tmp/pip-install-oqmlleb9/GDAL/setup.py\", line 151, in fetch_config\n        p = subprocess.Popen([command, args], stdout=subprocess.PIPE)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 709, in __init__\n        restore_signals, start_new_session)\n      File \"/opt/conda/lib/python3.6/subprocess.py\", line 1344, in _execute_child\n        raise child_exception_type(errno_num, err_msg, err_filename)\n    FileNotFoundError: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'\n    \n    During handling of the above exception, another exception occurred:\n    \n    Traceback (most recent call last):\n      File \"",
    "766120": ""
  }
}