Title: no relationship of type ... in collection error · Issue #204 · python-openxml/python-docx · GitHub
Open Graph Title: no relationship of type ... in collection error · Issue #204 · python-openxml/python-docx
X Title: no relationship of type ... in collection error · Issue #204 · python-openxml/python-docx
Description: Hi, I was trying python-docx with a .docx file which I got from a .doc file 'Saved as' a Strict Open XML Document with Microsoft Office Standard 2013. Unfortunately, when I'm trying to open the .docx file with python-docx, I get the erro...
Open Graph Description: Hi, I was trying python-docx with a .docx file which I got from a .doc file 'Saved as' a Strict Open XML Document with Microsoft Office Standard 2013. Unfortunately, when I'm trying to open the .do...
X Description: Hi, I was trying python-docx with a .docx file which I got from a .doc file 'Saved as' a Strict Open XML Document with Microsoft Office Standard 2013. Unfortunately, when I'm trying to ...
Opengraph URL: https://github.com/python-openxml/python-docx/issues/204
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"no relationship of type ... in collection error","articleBody":"Hi, I was trying python-docx with a .docx file which I got from a .doc file 'Saved as' a Strict Open XML Document with Microsoft Office Standard 2013. Unfortunately, when I'm trying to open the .docx file with python-docx, I get the error below. Does anybody have any idea what the problem is ?\n\n```\nTraceback (most recent call last):\n File \"fillin_subrep_contract.py\", line 39, in \u003cmodule>\n fillin_contract_docx(sys.argv[1])\n File \"fillin_subrep_contract.py\", line 20, in fillin_contract_docx\n document = Document(wordfile)\n File \"/var/tmp/mow/git/virtualenvs/webdev/lib/python2.7/site-packages/docx/api.py\", line 25, in Document\n document_part = Package.open(docx).main_document_part\n File \"/var/tmp/mow/git/virtualenvs/webdev/lib/python2.7/site-packages/docx/opc/package.py\", line 108, in main_document_part\n return self.part_related_by(RT.OFFICE_DOCUMENT)\n File \"/var/tmp/mow/git/virtualenvs/webdev/lib/python2.7/site-packages/docx/opc/package.py\", line 127, in part_related_by\n return self.rels.part_with_reltype(reltype)\n File \"/var/tmp/mow/git/virtualenvs/webdev/lib/python2.7/site-packages/docx/opc/rel.py\", line 63, in part_with_reltype\n rel = self._get_rel_of_type(reltype)\n File \"/var/tmp/mow/git/virtualenvs/webdev/lib/python2.7/site-packages/docx/opc/rel.py\", line 116, in _get_rel_of_type\n raise KeyError(tmpl % reltype)\nKeyError: u\"no relationship of type 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument' in collection\"\n```\n","author":{"url":"https://github.com/cristian-codorean","@type":"Person","name":"cristian-codorean"},"datePublished":"2015-09-03T14:08:19Z","url":"https://github.com/python-openxml/python-docx/issues/204"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:58e963e8-6a9c-d163-222b-2a90a3d8d210 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A88E:4676D:2A57E9:38948A:6AFF6589 |
| html-safe-nonce | ee7c3df257ce6585d2446b5a84c8b751b574113d7c4be51aac87e2f517bfb738 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODhFOjQ2NzZEOjJBNTdFOTozODk0OEE6NkFGRjY1ODkiLCJ2aXNpdG9yX2lkIjoiMzYzNDA2MTQ3NTQ5ODEyNDY4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b4c7870fc40f8ff667223d0bfcd230aa4644d024c97bd0236f9618ec7ce0fb30 |
| hovercard-subject-tag | issue:104703159 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-openxml/python-docx/204/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f172889c5ee5de11c5fe9256609cb0955a03ef53004d52ab23142cc36ec4d32/python-openxml/python-docx/issues/204 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f172889c5ee5de11c5fe9256609cb0955a03ef53004d52ab23142cc36ec4d32/python-openxml/python-docx/issues/204 |
| og:image:alt | Hi, I was trying python-docx with a .docx file which I got from a .doc file 'Saved as' a Strict Open XML Document with Microsoft Office Standard 2013. Unfortunately, when I'm trying to open the .do... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cristian-codorean |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b58589a1c4eda1e3c8904144a412b88ca4455f63ca2ad3629f2e9f3c3a1d12 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openxml/python-docx git https://github.com/python-openxml/python-docx.git |
| octolytics-dimension-user_id | 3403760 |
| octolytics-dimension-user_login | python-openxml |
| octolytics-dimension-repository_id | 13592924 |
| octolytics-dimension-repository_nwo | python-openxml/python-docx |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13592924 |
| octolytics-dimension-repository_network_root_nwo | python-openxml/python-docx |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8968d6d6acc65d74e4df332d23932dd3fd0502a4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width