{
  "id": 308993,
  "title": "Notebook code run failed because lack of faiss-gpu",
  "url": "/competitions/landmark-retrieval-2021/discussion/308993",
  "author_name": "widgetxp2",
  "post_date": "2022-02-21T10:59:10.099000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p>Dear organizers！<br>\n     My submission code used faiss，but when submitted I received an error case by lacking of faiss. <br>\nThe code is zx.cai version 10.  So I uploaded the faiss-gpu V1.7 to dataset and wrote install command before importing commands</p>\n<p>!cp ../input/faiss-wheel/faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl /kaggle/working/<br>\n!pip install /kaggle/working/faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl<br>\nimport sys</p>\n<p>It succeeded if run on the notebook page but failed when submitted with such error codes:</p>\n<p>Processing ./faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl<br>\nInstalling collected packages: faiss-gpu<br>\nSuccessfully installed faiss-gpu-1.7.1<br>\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: <a href=\"https://pip.pypa.io/warnings/venv\" target=\"_blank\">https://pip.pypa.io/warnings/venv</a><br>\nusage: ipykernel_launcher.py [-h] [-f F] [--module MODULE]<br>\n                             [--model_name MODEL_NAME] [--gpus GPUS]<br>\n                             [--num_classes NUM_CLASSES]<br>\n                             [--in_channels IN_CHANNELS] [--img_size IMG_SIZE]<br>\n                             [--kaggle KAGGLE] [--debug DEBUG]<br>\n                             [--overwrite OVERWRITE]<br>\n                             [--num_to_rerank NUM_TO_RERANK] [--ransac RANSAC]<br>\n                             [--ransac_weight RANSAC_WEIGHT]<br>\nipykernel_launcher.py: error: unrecognized arguments: --HistoryManager.hist_file=:memory:<br>\nAn exception has occurred, use %tb to see the full traceback.</p>\n<p>SystemExit: 2</p>",
  "messages": [
    {
      "id": 1699671,
      "postDate": "2022-02-21T10:59:10.100Z",
      "content": "<p>Dear organizers！<br>\n     My submission code used faiss，but when submitted I received an error case by lacking of faiss. <br>\nThe code is zx.cai version 10.  So I uploaded the faiss-gpu V1.7 to dataset and wrote install command before importing commands</p>\n<p>!cp ../input/faiss-wheel/faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl /kaggle/working/<br>\n!pip install /kaggle/working/faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl<br>\nimport sys</p>\n<p>It succeeded if run on the notebook page but failed when submitted with such error codes:</p>\n<p>Processing ./faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl<br>\nInstalling collected packages: faiss-gpu<br>\nSuccessfully installed faiss-gpu-1.7.1<br>\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: <a href=\"https://pip.pypa.io/warnings/venv\" target=\"_blank\">https://pip.pypa.io/warnings/venv</a><br>\nusage: ipykernel_launcher.py [-h] [-f F] [--module MODULE]<br>\n                             [--model_name MODEL_NAME] [--gpus GPUS]<br>\n                             [--num_classes NUM_CLASSES]<br>\n                             [--in_channels IN_CHANNELS] [--img_size IMG_SIZE]<br>\n                             [--kaggle KAGGLE] [--debug DEBUG]<br>\n                             [--overwrite OVERWRITE]<br>\n                             [--num_to_rerank NUM_TO_RERANK] [--ransac RANSAC]<br>\n                             [--ransac_weight RANSAC_WEIGHT]<br>\nipykernel_launcher.py: error: unrecognized arguments: --HistoryManager.hist_file=:memory:<br>\nAn exception has occurred, use %tb to see the full traceback.</p>\n<p>SystemExit: 2</p>",
      "rawMarkdown": "Dear organizers！\n     My submission code used faiss，but when submitted I received an error case by lacking of faiss. \nThe code is zx.cai version 10.  So I uploaded the faiss-gpu V1.7 to dataset and wrote install command before importing commands\n\n!cp ../input/faiss-wheel/faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl /kaggle/working/\n!pip install /kaggle/working/faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\nimport sys\n\nIt succeeded if run on the notebook page but failed when submitted with such error codes:\n\n\nProcessing ./faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\nInstalling collected packages: faiss-gpu\nSuccessfully installed faiss-gpu-1.7.1\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nusage: ipykernel_launcher.py [-h] [-f F] [--module MODULE]\n                             [--model_name MODEL_NAME] [--gpus GPUS]\n                             [--num_classes NUM_CLASSES]\n                             [--in_channels IN_CHANNELS] [--img_size IMG_SIZE]\n                             [--kaggle KAGGLE] [--debug DEBUG]\n                             [--overwrite OVERWRITE]\n                             [--num_to_rerank NUM_TO_RERANK] [--ransac RANSAC]\n                             [--ransac_weight RANSAC_WEIGHT]\nipykernel_launcher.py: error: unrecognized arguments: --HistoryManager.hist_file=:memory:\nAn exception has occurred, use %tb to see the full traceback.\n\nSystemExit: 2\n"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "1699671": "Dear organizers！\n     My submission code used faiss，but when submitted I received an error case by lacking of faiss. \nThe code is zx.cai version 10.  So I uploaded the faiss-gpu V1.7 to dataset and wrote install command before importing commands\n\n!cp ../input/faiss-wheel/faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl /kaggle/working/\n!pip install /kaggle/working/faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\nimport sys\n\nIt succeeded if run on the notebook page but failed when submitted with such error codes:\n\n\nProcessing ./faiss_gpu-1.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\nInstalling collected packages: faiss-gpu\nSuccessfully installed faiss-gpu-1.7.1\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\nusage: ipykernel_launcher.py [-h] [-f F] [--module MODULE]\n                             [--model_name MODEL_NAME] [--gpus GPUS]\n                             [--num_classes NUM_CLASSES]\n                             [--in_channels IN_CHANNELS] [--img_size IMG_SIZE]\n                             [--kaggle KAGGLE] [--debug DEBUG]\n                             [--overwrite OVERWRITE]\n                             [--num_to_rerank NUM_TO_RERANK] [--ransac RANSAC]\n                             [--ransac_weight RANSAC_WEIGHT]\nipykernel_launcher.py: error: unrecognized arguments: --HistoryManager.hist_file=:memory:\nAn exception has occurred, use %tb to see the full traceback.\n\nSystemExit: 2\n"
  }
}