{"action":"created","issue":{"url":"https://api.github.com/repos/scanny/python-pptx/issues/326","repository_url":"https://api.github.com/repos/scanny/python-pptx","labels_url":"https://api.github.com/repos/scanny/python-pptx/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/scanny/python-pptx/issues/326/comments","events_url":"https://api.github.com/repos/scanny/python-pptx/issues/326/events","html_url":"https://github.com/scanny/python-pptx/issues/326","id":268192233,"number":326,"title":"'zipfile.BadZipFile' error in python 3.6 but not python2","user":{"login":"mariashen","id":6494377,"avatar_url":"https://avatars2.githubusercontent.com/u/6494377?v=4","gravatar_id":"","url":"https://api.github.com/users/mariashen","html_url":"https://github.com/mariashen","followers_url":"https://api.github.com/users/mariashen/followers","following_url":"https://api.github.com/users/mariashen/following{/other_user}","gists_url":"https://api.github.com/users/mariashen/gists{/gist_id}","starred_url":"https://api.github.com/users/mariashen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariashen/subscriptions","organizations_url":"https://api.github.com/users/mariashen/orgs","repos_url":"https://api.github.com/users/mariashen/repos","events_url":"https://api.github.com/users/mariashen/events{/privacy}","received_events_url":"https://api.github.com/users/mariashen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-24T21:28:30Z","updated_at":"2017-10-24T22:32:00Z","closed_at":null,"author_association":"NONE","body":"This seems to be a similar issue to the one described here: https://github.com/scanny/python-pptx/issues/174\r\n\r\nI'm running a virtualenv with Python3.6. This is the error that I get when I see when I try to read in a powerpoint presentation using the ppt.Presentation() method:\r\n\r\n```\r\n  File \"slidenator.py\", line 309, in <module>\r\n    create_charts(presentation_name)\r\n  File \"slidenator.py\", line 183, in create_charts\r\n    prs = ppt.Presentation(f)\r\n  File \"/Users/maria/Desktop/PowerpointPythonProject/python3-version/test/lib/python3.6/site-packages/pptx/api.py\", line 30, in Presentation\r\n    presentation_part = Package.open(pptx).main_document_part\r\n  File \"/Users/maria/Desktop/PowerpointPythonProject/python3-version/test/lib/python3.6/site-packages/pptx/opc/package.py\", line 122, in open\r\n    pkg_reader = PackageReader.from_file(pkg_file)\r\n  File \"/Users/maria/Desktop/PowerpointPythonProject/python3-version/test/lib/python3.6/site-packages/pptx/opc/pkgreader.py\", line 32, in from_file\r\n    phys_reader = PhysPkgReader(pkg_file)\r\n  File \"/Users/maria/Desktop/PowerpointPythonProject/python3-version/test/lib/python3.6/site-packages/pptx/opc/phys_pkg.py\", line 102, in __init__\r\n    self._zipf = ZipFile(pkg_file, 'r')\r\n  File \"/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/zipfile.py\", line 1108, in __init__\r\n    self._RealGetContents()\r\n  File \"/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/zipfile.py\", line 1175, 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\nThis used to work just fine in Python2. Not sure what the issue could be here. The solution described previously mentioned that there was some issue with argparse, but I'm unclear what that means."},"comment":{"url":"https://api.github.com/repos/scanny/python-pptx/issues/comments/339155751","html_url":"https://github.com/scanny/python-pptx/issues/326#issuecomment-339155751","issue_url":"https://api.github.com/repos/scanny/python-pptx/issues/326","id":339155751,"user":{"login":"mariashen","id":6494377,"avatar_url":"https://avatars2.githubusercontent.com/u/6494377?v=4","gravatar_id":"","url":"https://api.github.com/users/mariashen","html_url":"https://github.com/mariashen","followers_url":"https://api.github.com/users/mariashen/followers","following_url":"https://api.github.com/users/mariashen/following{/other_user}","gists_url":"https://api.github.com/users/mariashen/gists{/gist_id}","starred_url":"https://api.github.com/users/mariashen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariashen/subscriptions","organizations_url":"https://api.github.com/users/mariashen/orgs","repos_url":"https://api.github.com/users/mariashen/repos","events_url":"https://api.github.com/users/mariashen/events{/privacy}","received_events_url":"https://api.github.com/users/mariashen/received_events","type":"User","site_admin":false},"created_at":"2017-10-24T22:32:00Z","updated_at":"2017-10-24T22:32:00Z","author_association":"NONE","body":"I \"fixed\" this by swapping out the default.pptx file in pptx/templates/default.pptx with my own pptx file.\r\n\r\nStill would appreciate any ideas on how to fix the actual problem!"}}
{"actor":{"display_login":"mariashen"}}