{
  "id": 119542,
  "title": "Error when loading pickle files",
  "url": "/competitions/pku-autonomous-driving/discussion/119542",
  "author_name": "",
  "post_date": "2019-11-29T11:14:42.025303300Z",
  "votes": 1,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Hi!</p>\n\n<p>I'm trying to load the pickle files and got an error. I have python 3 so I tried the following code:</p>\n\n<p>import pickle\nwith open(models_path+'/019-SUV.pkl', \"rb\") as file:\n    pickle.load(file, encoding='latin1')</p>\n\n<p>I get the error:\nCan't get attribute 'CHJ_tiny_obj' on \n\n</p><p>What am I missing?</p>",
  "messages": [
    {
      "id": "684182",
      "postDate": "11/29/2019 11:14:42",
      "content": "<p>Hi!</p>\n\n<p>I'm trying to load the pickle files and got an error. I have python 3 so I tried the following code:</p>\n\n<p>import pickle\nwith open(models_path+'/019-SUV.pkl', \"rb\") as file:\n    pickle.load(file, encoding='latin1')</p>\n\n<p>I get the error:\nCan't get attribute 'CHJ_tiny_obj' on \n\n</p><p>What am I missing?</p>",
      "rawMarkdown": "Hi!\n\nI'm trying to load the pickle files and got an error. I have python 3 so I tried the following code:\n\nimport pickle\nwith open(models_path+'/019-SUV.pkl', \"rb\") as file:\n    pickle.load(file, encoding='latin1')\n\nI get the error:\nCan't get attribute 'CHJ_tiny_obj' on",
      "votes": null
    },
    {
      "id": "684286",
      "postDate": "11/29/2019 14:34:11",
      "content": "<p>Don't use the pickle files, they are broken. Use the json files instead. There's notebooks detailing how to load the json files.</p>",
      "rawMarkdown": "Don't use the pickle files, they are broken. Use the json files instead. There's notebooks detailing how to load the json files.",
      "votes": null
    },
    {
      "id": "684307",
      "postDate": "11/29/2019 14:55:37",
      "content": "<p>OK. Thanks!</p>",
      "rawMarkdown": "OK. Thanks!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 684286,
      "author_name": "greatgamedota",
      "author_url": "",
      "post_date": "11/29/2019 14:34:11",
      "content": "<p>Don't use the pickle files, they are broken. Use the json files instead. There's notebooks detailing how to load the json files.</p>",
      "votes": null,
      "replies": [
        {
          "id": 684307,
          "author_name": "amelnozieres",
          "author_url": "",
          "post_date": "11/29/2019 14:55:37",
          "content": "<p>OK. Thanks!</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "684182": "Hi!\n\nI'm trying to load the pickle files and got an error. I have python 3 so I tried the following code:\n\nimport pickle\nwith open(models_path+'/019-SUV.pkl', \"rb\") as file:\n    pickle.load(file, encoding='latin1')\n\nI get the error:\nCan't get attribute 'CHJ_tiny_obj' on",
    "684286": "Don't use the pickle files, they are broken. Use the json files instead. There's notebooks detailing how to load the json files.",
    "684307": "OK. Thanks!"
  },
  "source": "meta"
}