{"action":"opened","issue":{"url":"https://api.github.com/repos/mysociety/sayit/issues/492","labels_url":"https://api.github.com/repos/mysociety/sayit/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/sayit/issues/492/comments","events_url":"https://api.github.com/repos/mysociety/sayit/issues/492/events","html_url":"https://github.com/mysociety/sayit/issues/492","id":86827312,"number":492,"title":"AttributeError: 'NoneType' object has no attribute 'read'","user":{"login":"johnfelipe","id":428820,"avatar_url":"https://avatars.githubusercontent.com/u/428820?v=3","gravatar_id":"","url":"https://api.github.com/users/johnfelipe","html_url":"https://github.com/johnfelipe","followers_url":"https://api.github.com/users/johnfelipe/followers","following_url":"https://api.github.com/users/johnfelipe/following{/other_user}","gists_url":"https://api.github.com/users/johnfelipe/gists{/gist_id}","starred_url":"https://api.github.com/users/johnfelipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnfelipe/subscriptions","organizations_url":"https://api.github.com/users/johnfelipe/orgs","repos_url":"https://api.github.com/users/johnfelipe/repos","events_url":"https://api.github.com/users/johnfelipe/events{/privacy}","received_events_url":"https://api.github.com/users/johnfelipe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-10T04:01:19Z","updated_at":"2015-06-10T04:01:19Z","closed_at":null,"body":"\t(virtualenv-sayit)notroot@felipeurrego:~/sayit/sayit.mysociety.org$ ./manage.py load_akomantoso --file=/home/notroot/camara/actas-consejo-medellin/xml/acta-20-12-noviembre-20-de-2012.xml --instance=camara --commit\r\n\tAn exception of type AttributeError occurred, arguments:\r\n\t'NoneType' object has no attribute 'read'\r\n\tTraceback (most recent call last):\r\n\t  File \"/home/notroot/sayit/virtualenv-sayit/src/django-sayit/speeches/management/import_commands.py\", line 120, in import_document\r\n\t\timporter.import_document(path)\r\n\t  File \"/home/notroot/sayit/virtualenv-sayit/src/django-sayit/speeches/importers/import_akomantoso.py\", line 25, in import_document\r\n\t\treturn self.parse_document()\r\n\t  File \"/home/notroot/sayit/virtualenv-sayit/src/django-sayit/speeches/importers/import_akomantoso.py\", line 62, in parse_document\r\n\t\tself.start_date = dateutil.parse(docDate.get('date'))\r\n\t  File \"/home/notroot/sayit/virtualenv-sayit/local/lib/python2.7/site-packages/dateutil/parser.py\", line 1008, in parse\r\n\t\treturn DEFAULTPARSER.parse(timestr, **kwargs)\r\n\t  File \"/home/notroot/sayit/virtualenv-sayit/local/lib/python2.7/site-packages/dateutil/parser.py\", line 392, in parse\r\n\t\tres = self._parse(timestr, **kwargs)\r\n\t  File \"/home/notroot/sayit/virtualenv-sayit/local/lib/python2.7/site-packages/dateutil/parser.py\", line 492, in _parse\r\n\t\tl = _timelex.split(timestr)         # Splits the timestr into tokens\r\n\t  File \"/home/notroot/sayit/virtualenv-sayit/local/lib/python2.7/site-packages/dateutil/parser.py\", line 174, in split\r\n\t\treturn list(cls(s))\r\n\t  File \"/home/notroot/sayit/virtualenv-sayit/local/lib/python2.7/site-packages/dateutil/parser.py\", line 171, in next\r\n\t\treturn self.__next__()  # Python 2.x support\r\n\t  File \"/home/notroot/sayit/virtualenv-sayit/local/lib/python2.7/site-packages/dateutil/parser.py\", line 164, in __next__\r\n\t\ttoken = self.get_token()\r\n\t  File \"/home/notroot/sayit/virtualenv-sayit/local/lib/python2.7/site-packages/dateutil/parser.py\", line 82, in get_token\r\n\t\tnextchar = self.instream.read(1)\r\n\tAttributeError: 'NoneType' object has no attribute 'read'\r\n\r\nThis is xml generated\r\n\r\nhttps://github.com/johnfelipe/camarakomantoso"}}