{
  "id": 16539,
  "title": "Mac Anaconda Python Segmentation Fault 11",
  "url": "/competitions/dato-native/discussion/16539",
  "author_name": "",
  "post_date": "2015-09-17T08:54:11.573Z",
  "votes": null,
  "comment_count": 8,
  "views": 4783,
  "content": "<p>I'm having problems processing the text files with the process_html.py file. My Mac keeps crashing with a segmentation fault 11. There's loads of stuff on StackOverflow from about 2013 about Mac Mavericks and Python Readline. I installed the patches but I still get the fault - I think possibly because I use Anaconda , the files that need to be updated are in a different place. I've tried with 2.7 and 3.3 and both bomb out with a fault. Anyone have a solution, please?</p>",
  "messages": [
    {
      "id": "92822",
      "postDate": "09/17/2015 08:54:11",
      "content": "<p>I'm having problems processing the text files with the process_html.py file. My Mac keeps crashing with a segmentation fault 11. There's loads of stuff on StackOverflow from about 2013 about Mac Mavericks and Python Readline. I installed the patches but I still get the fault - I think possibly because I use Anaconda , the files that need to be updated are in a different place. I've tried with 2.7 and 3.3 and both bomb out with a fault. Anyone have a solution, please?</p>",
      "rawMarkdown": "I'm having problems processing the text files with the process_html.py file. My Mac keeps crashing with a segmentation fault 11. There's loads of stuff on StackOverflow from about 2013 about Mac Mavericks and Python Readline. I installed the patches but I still get the fault - I think possibly because I use Anaconda , the files that need to be updated are in a different place. I've tried with 2.7 and 3.3 and both bomb out with a fault. Anyone have a solution, please?",
      "votes": null
    },
    {
      "id": "92844",
      "postDate": "09/17/2015 16:44:59",
      "content": "<p>Update your environment. </p>\n\n<p>Run: conda update anaconda</p>\n\n<p>It helped me.</p>\n\n<p>OS X 10.10.5</p>\n\n<p>conda 3.16.0</p>\n\n<p>anaconda                  2.3.0                np19py27_0  </p>",
      "rawMarkdown": "Update your environment. \r\n\r\nRun: conda update anaconda\r\n\r\nIt helped me.\r\n\r\nOS X 10.10.5\r\n\r\nconda 3.16.0\r\n\r\nanaconda                  2.3.0                np19py27_0",
      "votes": null
    },
    {
      "id": "92845",
      "postDate": "09/17/2015 16:53:43",
      "content": "<p>I tried that. I'm OSX 10.9.5 conda 3.17 py27-0 with py3k environment too\nI think it must be Mavericks. I think I'll have to update my OS</p>",
      "rawMarkdown": "I tried that. I'm OSX 10.9.5 conda 3.17 py27-0 with py3k environment too\r\nI think it must be Mavericks. I think I'll have to update my OS",
      "votes": null
    },
    {
      "id": "92849",
      "postDate": "09/17/2015 17:04:12",
      "content": "<p>[quote=Bluefool;92845]</p>\n\n<p>I tried that. I'm OSX 10.9.5 conda 3.17 py27-0 with py3k environment too\nI think it must be Mavericks. I think I'll have to update my OS</p>\n\n<p>[/quote]\nI don't think so. I had the same problem both 2.7 and 3.4.</p>\n\n<p>Have you tried the latest version of BeautifulSoup?</p>\n\n<p>I checked my bash history :D. </p>\n\n<p><a href=\"http://take.ms/dikq9\">http://take.ms/dikq9</a> </p>",
      "rawMarkdown": "[quote=Bluefool;92845]\r\n\r\nI tried that. I'm OSX 10.9.5 conda 3.17 py27-0 with py3k environment too\r\nI think it must be Mavericks. I think I'll have to update my OS\r\n\r\n[/quote]\r\nI don't think so. I had the same problem both 2.7 and 3.4.\r\n\r\nHave you tried the latest version of BeautifulSoup?\r\n\r\nI checked my bash history :D. \r\n\r\nhttp://take.ms/dikq9",
      "votes": null
    },
    {
      "id": "92851",
      "postDate": "09/17/2015 17:43:49",
      "content": "<p>thanks. I updated Beautifulsoup and it still bombed out with a fault. I know what is happening - some of the files don't have proper end_of_file. If I go in to the file that crashed it and add a new line to bottom, then it doesn't crash next time (I tried a bash script to do this but that bombed out as well). I think I'll have to rewrite the preprocessing file. Thanks for your help</p>",
      "rawMarkdown": "thanks. I updated Beautifulsoup and it still bombed out with a fault. I know what is happening - some of the files don't have proper end_of_file. If I go in to the file that crashed it and add a new line to bottom, then it doesn't crash next time (I tried a bash script to do this but that bombed out as well). I think I'll have to rewrite the preprocessing file. Thanks for your help",
      "votes": null
    },
    {
      "id": "92949",
      "postDate": "09/18/2015 23:42:33",
      "content": "<p>How much memory on your mac? I have 16GB and it ran fine with the given scripts and anaconda 2.1.0</p>",
      "rawMarkdown": "How much memory on your mac? I have 16GB and it ran fine with the given scripts and anaconda 2.1.0",
      "votes": null
    },
    {
      "id": "92997",
      "postDate": "09/19/2015 19:44:07",
      "content": "<p>really? Are you Mavericks?</p>",
      "rawMarkdown": "really? Are you Mavericks?",
      "votes": null
    },
    {
      "id": "93028",
      "postDate": "09/20/2015 15:41:59",
      "content": "<p>No, just Yosemite. It is a three year old MacBook Pro.</p>\n\n<p>Is the seg in the lxml library? I had to switch to html5lib.</p>",
      "rawMarkdown": "No, just Yosemite. It is a three year old MacBook Pro.\r\n\r\nIs the seg in the lxml library? I had to switch to html5lib.",
      "votes": null
    },
    {
      "id": "93207",
      "postDate": "09/22/2015 20:38:41",
      "content": "<p>Not sure where the seg is. I think it's a Mavericks / readline fault (gathered from Stackoverflow) I might update to Yosemite</p>",
      "rawMarkdown": "Not sure where the seg is. I think it's a Mavericks / readline fault (gathered from Stackoverflow) I might update to Yosemite",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 92844,
      "author_name": "rushter",
      "author_url": "",
      "post_date": "09/17/2015 16:44:59",
      "content": "<p>Update your environment. </p>\n\n<p>Run: conda update anaconda</p>\n\n<p>It helped me.</p>\n\n<p>OS X 10.10.5</p>\n\n<p>conda 3.16.0</p>\n\n<p>anaconda                  2.3.0                np19py27_0  </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 92845,
      "author_name": "domcastro",
      "author_url": "",
      "post_date": "09/17/2015 16:53:43",
      "content": "<p>I tried that. I'm OSX 10.9.5 conda 3.17 py27-0 with py3k environment too\nI think it must be Mavericks. I think I'll have to update my OS</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 92849,
      "author_name": "rushter",
      "author_url": "",
      "post_date": "09/17/2015 17:04:12",
      "content": "<p>[quote=Bluefool;92845]</p>\n\n<p>I tried that. I'm OSX 10.9.5 conda 3.17 py27-0 with py3k environment too\nI think it must be Mavericks. I think I'll have to update my OS</p>\n\n<p>[/quote]\nI don't think so. I had the same problem both 2.7 and 3.4.</p>\n\n<p>Have you tried the latest version of BeautifulSoup?</p>\n\n<p>I checked my bash history :D. </p>\n\n<p><a href=\"http://take.ms/dikq9\">http://take.ms/dikq9</a> </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 92851,
      "author_name": "domcastro",
      "author_url": "",
      "post_date": "09/17/2015 17:43:49",
      "content": "<p>thanks. I updated Beautifulsoup and it still bombed out with a fault. I know what is happening - some of the files don't have proper end_of_file. If I go in to the file that crashed it and add a new line to bottom, then it doesn't crash next time (I tried a bash script to do this but that bombed out as well). I think I'll have to rewrite the preprocessing file. Thanks for your help</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 92949,
      "author_name": "lawrencechernin",
      "author_url": "",
      "post_date": "09/18/2015 23:42:33",
      "content": "<p>How much memory on your mac? I have 16GB and it ran fine with the given scripts and anaconda 2.1.0</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 92997,
      "author_name": "domcastro",
      "author_url": "",
      "post_date": "09/19/2015 19:44:07",
      "content": "<p>really? Are you Mavericks?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 93028,
      "author_name": "lawrencechernin",
      "author_url": "",
      "post_date": "09/20/2015 15:41:59",
      "content": "<p>No, just Yosemite. It is a three year old MacBook Pro.</p>\n\n<p>Is the seg in the lxml library? I had to switch to html5lib.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 93207,
      "author_name": "domcastro",
      "author_url": "",
      "post_date": "09/22/2015 20:38:41",
      "content": "<p>Not sure where the seg is. I think it's a Mavericks / readline fault (gathered from Stackoverflow) I might update to Yosemite</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "92822": "I'm having problems processing the text files with the process_html.py file. My Mac keeps crashing with a segmentation fault 11. There's loads of stuff on StackOverflow from about 2013 about Mac Mavericks and Python Readline. I installed the patches but I still get the fault - I think possibly because I use Anaconda , the files that need to be updated are in a different place. I've tried with 2.7 and 3.3 and both bomb out with a fault. Anyone have a solution, please?",
    "92844": "Update your environment. \r\n\r\nRun: conda update anaconda\r\n\r\nIt helped me.\r\n\r\nOS X 10.10.5\r\n\r\nconda 3.16.0\r\n\r\nanaconda                  2.3.0                np19py27_0",
    "92845": "I tried that. I'm OSX 10.9.5 conda 3.17 py27-0 with py3k environment too\r\nI think it must be Mavericks. I think I'll have to update my OS",
    "92849": "[quote=Bluefool;92845]\r\n\r\nI tried that. I'm OSX 10.9.5 conda 3.17 py27-0 with py3k environment too\r\nI think it must be Mavericks. I think I'll have to update my OS\r\n\r\n[/quote]\r\nI don't think so. I had the same problem both 2.7 and 3.4.\r\n\r\nHave you tried the latest version of BeautifulSoup?\r\n\r\nI checked my bash history :D. \r\n\r\nhttp://take.ms/dikq9",
    "92851": "thanks. I updated Beautifulsoup and it still bombed out with a fault. I know what is happening - some of the files don't have proper end_of_file. If I go in to the file that crashed it and add a new line to bottom, then it doesn't crash next time (I tried a bash script to do this but that bombed out as well). I think I'll have to rewrite the preprocessing file. Thanks for your help",
    "92949": "How much memory on your mac? I have 16GB and it ran fine with the given scripts and anaconda 2.1.0",
    "92997": "really? Are you Mavericks?",
    "93028": "No, just Yosemite. It is a three year old MacBook Pro.\r\n\r\nIs the seg in the lxml library? I had to switch to html5lib.",
    "93207": "Not sure where the seg is. I think it's a Mavericks / readline fault (gathered from Stackoverflow) I might update to Yosemite"
  },
  "source": "meta"
}