{"action":"closed","issue":{"url":"https://api.github.com/repos/mwilliamson/python-mammoth/issues/8","labels_url":"https://api.github.com/repos/mwilliamson/python-mammoth/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/mwilliamson/python-mammoth/issues/8/comments","events_url":"https://api.github.com/repos/mwilliamson/python-mammoth/issues/8/events","html_url":"https://github.com/mwilliamson/python-mammoth/issues/8","id":102016294,"number":8,"title":"'_io.BytesIO' object had no attribute 'name'","user":{"login":"joshclow","id":9015743,"avatar_url":"https://avatars.githubusercontent.com/u/9015743?v=3","gravatar_id":"","url":"https://api.github.com/users/joshclow","html_url":"https://github.com/joshclow","followers_url":"https://api.github.com/users/joshclow/followers","following_url":"https://api.github.com/users/joshclow/following{/other_user}","gists_url":"https://api.github.com/users/joshclow/gists{/gist_id}","starred_url":"https://api.github.com/users/joshclow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshclow/subscriptions","organizations_url":"https://api.github.com/users/joshclow/orgs","repos_url":"https://api.github.com/users/joshclow/repos","events_url":"https://api.github.com/users/joshclow/events{/privacy}","received_events_url":"https://api.github.com/users/joshclow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-19T22:45:25Z","updated_at":"2015-08-20T19:43:27Z","closed_at":"2015-08-20T19:43:27Z","body":"Looks like line 31 of docx/__init__.py was changed a couple revs back to be:\r\n\r\n`body_readers = _body_readers(getattr(fileobj, \"name\"), zip_file)`\r\n\r\nWe're calling mammoth.convert_to_html with a io.BytesIO stream and so it doesn't have a name attribute and the code bombs out with the AttributeError in the issue title. Is there an intentional design decision here to restrict the code to objects with name attributes?\r\n"}}