{
  "id": 181755,
  "title": "pip intall l5kit error in my notebook",
  "url": "/competitions/lyft-motion-prediction-autonomous-vehicles/discussion/181755",
  "author_name": "",
  "post_date": "2020-09-10T04:13:46.804571Z",
  "votes": 1,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Today, my notebook failed to install l5kit because of building numcodecs wheel error, But it never happened before. Following is log information.</p>\n<p>Building wheel for numcodecs (setup.py) … error<br>\n  ERROR: Command errored out with exit status 1:<br>\n   command: /opt/conda/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-2wksv1zt/numcodecs/setup.py'\"'\"'; <strong>file</strong>='\"'\"'/tmp/pip-install-2wksv1zt/numcodecs/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'\"'\"'))' bdist_wheel -d /tmp/pip-wheel-_u5csy5f<br>\n       cwd: /tmp/pip-install-2wksv1zt/numcodecs/</p>\n<p>My installation code is:<br>\n!pip install pymap3d==2.1.0<br>\n!pip install -U l5kit</p>\n<p>Help, please!</p>",
  "messages": [
    {
      "id": "1004826",
      "postDate": "09/10/2020 04:13:46",
      "content": "<p>Today, my notebook failed to install l5kit because of building numcodecs wheel error, But it never happened before. Following is log information.</p>\n<p>Building wheel for numcodecs (setup.py) … error<br>\n  ERROR: Command errored out with exit status 1:<br>\n   command: /opt/conda/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-2wksv1zt/numcodecs/setup.py'\"'\"'; <strong>file</strong>='\"'\"'/tmp/pip-install-2wksv1zt/numcodecs/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'\"'\"'))' bdist_wheel -d /tmp/pip-wheel-_u5csy5f<br>\n       cwd: /tmp/pip-install-2wksv1zt/numcodecs/</p>\n<p>My installation code is:<br>\n!pip install pymap3d==2.1.0<br>\n!pip install -U l5kit</p>\n<p>Help, please!</p>",
      "rawMarkdown": "Today, my notebook failed to install l5kit because of building numcodecs wheel error, But it never happened before. Following is log information.\n\n Building wheel for numcodecs (setup.py) ... error\n  ERROR: Command errored out with exit status 1:\n   command: /opt/conda/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-2wksv1zt/numcodecs/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-2wksv1zt/numcodecs/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' bdist_wheel -d /tmp/pip-wheel-_u5csy5f\n       cwd: /tmp/pip-install-2wksv1zt/numcodecs/\n\nMy installation code is:\n!pip install pymap3d==2.1.0\n!pip install -U l5kit\n\nHelp, please!",
      "votes": null
    },
    {
      "id": "1004920",
      "postDate": "09/10/2020 06:13:30",
      "content": "<p>I had the same issue.<br>\nI fixed it like this.</p>\n<blockquote>\n  <p>python -m pip install torch==1.5.0 torchvision==0.6.0 -f <a href=\"https://download.pytorch.org/whl/torch_stable.html\" target=\"_blank\">https://download.pytorch.org/whl/torch_stable.html</a><br>\n  conda install numcodecs<br>\n  pip install l5kit<br>\n  now key here is installing numcodecs using conda instead of pip! There is some issue with numcodecs compatibility with pip.<br>\n  reference <a href=\"https://github.com/zarr-developers/numcodecs/issues/191\" target=\"_blank\">https://github.com/zarr-developers/numcodecs/issues/191</a></p>\n</blockquote>",
      "rawMarkdown": "I had the same issue.\nI fixed it like this.\n> python -m pip install torch==1.5.0 torchvision==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html\nconda install numcodecs\npip install l5kit\nnow key here is installing numcodecs using conda instead of pip! There is some issue with numcodecs compatibility with pip.\nreference https://github.com/zarr-developers/numcodecs/issues/191",
      "votes": null
    },
    {
      "id": "1004929",
      "postDate": "09/10/2020 06:21:23",
      "content": "<p>Problem fixed with conda! Thanks alot. 👍😄</p>",
      "rawMarkdown": "Problem fixed with conda! Thanks alot. 👍😄",
      "votes": null
    },
    {
      "id": "1011156",
      "postDate": "09/15/2020 09:22:23",
      "content": "<p>not sure what happened, this just did not work for me</p>\n<p>had to go back to a temporary fix</p>\n<p>os.system('pip uninstall typing -y')<br>\nos.system('pip install --target=/kaggle/working pymap3d==2.1.0')<br>\nos.system('pip install --target=/kaggle/working protobuf==3.12.2')<br>\nos.system('pip install --target=/kaggle/working transforms3d')<br>\nos.system('pip install --target=/kaggle/working zarr')<br>\nos.system('pip install --target=/kaggle/working ptable')</p>\n<p>os.system('pip install --no-dependencies --target=/kaggle/working l5kit')</p>",
      "rawMarkdown": "not sure what happened, this just did not work for me\n\nhad to go back to a temporary fix\n\nos.system('pip uninstall typing -y')\nos.system('pip install --target=/kaggle/working pymap3d==2.1.0')\nos.system('pip install --target=/kaggle/working protobuf==3.12.2')\nos.system('pip install --target=/kaggle/working transforms3d')\nos.system('pip install --target=/kaggle/working zarr')\nos.system('pip install --target=/kaggle/working ptable')\n\nos.system('pip install --no-dependencies --target=/kaggle/working l5kit')",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1004920,
      "author_name": "sujaydkhandekar",
      "author_url": "",
      "post_date": "09/10/2020 06:13:30",
      "content": "<p>I had the same issue.<br>\nI fixed it like this.</p>\n<blockquote>\n  <p>python -m pip install torch==1.5.0 torchvision==0.6.0 -f <a href=\"https://download.pytorch.org/whl/torch_stable.html\" target=\"_blank\">https://download.pytorch.org/whl/torch_stable.html</a><br>\n  conda install numcodecs<br>\n  pip install l5kit<br>\n  now key here is installing numcodecs using conda instead of pip! There is some issue with numcodecs compatibility with pip.<br>\n  reference <a href=\"https://github.com/zarr-developers/numcodecs/issues/191\" target=\"_blank\">https://github.com/zarr-developers/numcodecs/issues/191</a></p>\n</blockquote>",
      "votes": null,
      "replies": [
        {
          "id": 1004929,
          "author_name": "wantsu",
          "author_url": "",
          "post_date": "09/10/2020 06:21:23",
          "content": "<p>Problem fixed with conda! Thanks alot. 👍😄</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1011156,
      "author_name": "mclikmb4",
      "author_url": "",
      "post_date": "09/15/2020 09:22:23",
      "content": "<p>not sure what happened, this just did not work for me</p>\n<p>had to go back to a temporary fix</p>\n<p>os.system('pip uninstall typing -y')<br>\nos.system('pip install --target=/kaggle/working pymap3d==2.1.0')<br>\nos.system('pip install --target=/kaggle/working protobuf==3.12.2')<br>\nos.system('pip install --target=/kaggle/working transforms3d')<br>\nos.system('pip install --target=/kaggle/working zarr')<br>\nos.system('pip install --target=/kaggle/working ptable')</p>\n<p>os.system('pip install --no-dependencies --target=/kaggle/working l5kit')</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1004826": "Today, my notebook failed to install l5kit because of building numcodecs wheel error, But it never happened before. Following is log information.\n\n Building wheel for numcodecs (setup.py) ... error\n  ERROR: Command errored out with exit status 1:\n   command: /opt/conda/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-2wksv1zt/numcodecs/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-2wksv1zt/numcodecs/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' bdist_wheel -d /tmp/pip-wheel-_u5csy5f\n       cwd: /tmp/pip-install-2wksv1zt/numcodecs/\n\nMy installation code is:\n!pip install pymap3d==2.1.0\n!pip install -U l5kit\n\nHelp, please!",
    "1004920": "I had the same issue.\nI fixed it like this.\n> python -m pip install torch==1.5.0 torchvision==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html\nconda install numcodecs\npip install l5kit\nnow key here is installing numcodecs using conda instead of pip! There is some issue with numcodecs compatibility with pip.\nreference https://github.com/zarr-developers/numcodecs/issues/191",
    "1004929": "Problem fixed with conda! Thanks alot. 👍😄",
    "1011156": "not sure what happened, this just did not work for me\n\nhad to go back to a temporary fix\n\nos.system('pip uninstall typing -y')\nos.system('pip install --target=/kaggle/working pymap3d==2.1.0')\nos.system('pip install --target=/kaggle/working protobuf==3.12.2')\nos.system('pip install --target=/kaggle/working transforms3d')\nos.system('pip install --target=/kaggle/working zarr')\nos.system('pip install --target=/kaggle/working ptable')\n\nos.system('pip install --no-dependencies --target=/kaggle/working l5kit')"
  },
  "source": "meta"
}