{"action":"created","issue":{"url":"https://api.github.com/repos/christopher-ramirez/secretary/issues/27","repository_url":"https://api.github.com/repos/christopher-ramirez/secretary","labels_url":"https://api.github.com/repos/christopher-ramirez/secretary/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/christopher-ramirez/secretary/issues/27/comments","events_url":"https://api.github.com/repos/christopher-ramirez/secretary/issues/27/events","html_url":"https://github.com/christopher-ramirez/secretary/issues/27","id":138727170,"number":27,"title":"BadZipFile Error","user":{"login":"tmcothran","id":17090373,"avatar_url":"https://avatars.githubusercontent.com/u/17090373?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcothran","html_url":"https://github.com/tmcothran","followers_url":"https://api.github.com/users/tmcothran/followers","following_url":"https://api.github.com/users/tmcothran/following{/other_user}","gists_url":"https://api.github.com/users/tmcothran/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcothran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcothran/subscriptions","organizations_url":"https://api.github.com/users/tmcothran/orgs","repos_url":"https://api.github.com/users/tmcothran/repos","events_url":"https://api.github.com/users/tmcothran/events{/privacy}","received_events_url":"https://api.github.com/users/tmcothran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-05T21:58:03Z","updated_at":"2016-03-15T16:56:41Z","closed_at":null,"body":"Attempting to pass an odt file to Renderer produces the following error:\r\n\r\n```\r\n2016-03-05 16:47:12,430 - DEBUG - Initing a Renderer instance\r\nTemplate\r\n 2016-03-05 16:47:12,431 - DEBUG - Initing a template rendering\r\n 2016-03-05 16:47:12,431 - DEBUG - Unpacking template file\r\nTraceback (most recent call last):\r\n  File \"./create_vs300.py\", line 136, in <module>\r\n    template = open('./styles/vs300.odt', 'r')\r\n  File \"./create_vs300.py\", line 85, in fillOutDoc\r\n    dict=answers_dict\r\n  File \"/home/mint/Python_Projects/virtualenvs/Document_Generator/lib/python3.4/site-packages/secretary.py\", line 577, in render\r\n    self.files = self._unpack_template(template)\r\n  File \"/home/mint/Python_Projects/virtualenvs/Document_Generator/lib/python3.4/site-packages/secretary.py\", line 167, in _unpack_template\r\n    archive = zipfile.ZipFile(template, 'r')\r\n  File \"/usr/lib/python3.4/zipfile.py\", line 937, in __init__\r\n    self._RealGetContents()\r\n  File \"/usr/lib/python3.4/zipfile.py\", line 978, in _RealGetContents\r\n    raise BadZipFile(\"File is not a zip file\")\r\nzipfile.BadZipFile: File is not a zip file\r\n```\r\n\r\nThe .odt file I have does not appear to be corrupted. I can use it in LibreOffice just fine. Github won't let me upload an odt file for some reason, but if it's helpful, I can upload it elsewhere and post the link here.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/christopher-ramirez/secretary/issues/comments/196921369","html_url":"https://github.com/christopher-ramirez/secretary/issues/27#issuecomment-196921369","issue_url":"https://api.github.com/repos/christopher-ramirez/secretary/issues/27","id":196921369,"user":{"login":"tmcothran","id":17090373,"avatar_url":"https://avatars.githubusercontent.com/u/17090373?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcothran","html_url":"https://github.com/tmcothran","followers_url":"https://api.github.com/users/tmcothran/followers","following_url":"https://api.github.com/users/tmcothran/following{/other_user}","gists_url":"https://api.github.com/users/tmcothran/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcothran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcothran/subscriptions","organizations_url":"https://api.github.com/users/tmcothran/orgs","repos_url":"https://api.github.com/users/tmcothran/repos","events_url":"https://api.github.com/users/tmcothran/events{/privacy}","received_events_url":"https://api.github.com/users/tmcothran/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T16:56:41Z","updated_at":"2016-03-15T16:56:41Z","body":"I don't really know what I'm doing enough to pin down where the problem is. I'm pretty new to programming. The bad zip file error comes from the zipfile module, though, so maybe the problem is there. If you're unable to reproduce it, maybe it's best to close this, and I can open another ticket if I get the same issue with a different libreoffice file."}}