René's URL Explorer Experiment


Title: NotImplementedError on calling numbering_part with file that has never known bullet points · Issue #1541 · python-openxml/python-docx · GitHub

Open Graph Title: NotImplementedError on calling numbering_part with file that has never known bullet points · Issue #1541 · python-openxml/python-docx

X Title: NotImplementedError on calling numbering_part with file that has never known bullet points · Issue #1541 · python-openxml/python-docx

Description: Summary I've been having issues with adding bullet points to my .docx file (and, unlike in #204+), it is one. I received a file using a company-made theme that does not contain any style for bullet points (among other oddities), and the ...

Open Graph Description: Summary I've been having issues with adding bullet points to my .docx file (and, unlike in #204+), it is one. I received a file using a company-made theme that does not contain any style for bullet...

X Description: Summary I've been having issues with adding bullet points to my .docx file (and, unlike in #204+), it is one. I received a file using a company-made theme that does not contain any style for bu...

Opengraph URL: https://github.com/python-openxml/python-docx/issues/1541

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NotImplementedError on calling numbering_part with file that has never known bullet points","articleBody":"## Summary\n\nI've been having issues with adding bullet points to my `.docx` file (and, unlike in #204+), it is one.\n\nI received a file using a company-made theme that does not contain any style for bullet points (among other oddities), and the was almost empty. Attempting to add bullet points programmatically (using code found on [stack overflow](https://stackoverflow.com/a/51830413)) lead to the error below.\n\nAdding bullet points to the file and then removing them seems to do the trick.\n\nMy question is: is there a way to add the probably missing metadata (I don't know what it is, I'm no expert in MSOffice formats) back into the file, so that my users don't have to do this ?\n\n## L;DR\n\n### Minimum viable example\n\n```python\nimport docx\ndoc = docx.Document('/path/to/file.docx')\ndoc.part.numbering_part   # error below\n```\n\n\u003cdetails>\u003csummary>Stack trace\u003c/summary>\n\n```plaintext\nTraceback (most recent call last):\n  File \".\\venv\\docx\\parts\\document.py\", line 105, in numbering_part\n    return cast(NumberingPart, self.part_related_by(RT.NUMBERING))\n                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \".\\venv\\docx\\opc\\part.py\", line 124, in part_related_by\n    return self.rels.part_with_reltype(reltype)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \".\\venv\\docx\\opc\\rel.py\", line 52, in part_with_reltype\n    rel = self._get_rel_of_type(reltype)\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \".\\venv\\docx\\opc\\rel.py\", line 98, in _get_rel_of_type\n    raise KeyError(tmpl % reltype)\nKeyError: \"no relationship of type 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering' in collection\"\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \".\\code.py\", line 3, in \u003cmodule>\n    value = self._fget(obj)\n            ^^^^^^^^^^^^^^^\n  File \".\\venv\\docx\\parts\\document.py\", line 107, in numbering_part\n    numbering_part = NumberingPart.new()\n                     ^^^^^^^^^^^^^^^^^^^\n  File \".\\venv\\docx\\parts\\numbering.py\", line 14, in new\n    raise NotImplementedError\nNotImplementedError\n```\n\n\u003c/details>\n\n* Version: `1.2.0`\n* Python: `3.12.12`\n* OS: Windows 11 ","author":{"url":"https://github.com/Alexandre-SCHOEPP","@type":"Person","name":"Alexandre-SCHOEPP"},"datePublished":"2026-02-12T16:36:28Z","url":"https://github.com/python-openxml/python-docx/issues/1541"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f0b71d99-b6ee-e15f-8d4d-f63d450d733a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8CAA:35DD44:204339:2B776A:6AFF6394
html-safe-nonce4b7e44bb17346cf2368d0aa2a71fce34bc1e951605c61516a2dca54af921a179
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0FBOjM1REQ0NDoyMDQzMzk6MkI3NzZBOjZBRkY2Mzk0IiwidmlzaXRvcl9pZCI6IjIxNDAzMjY4NTk4OTA0NTEzNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc5da1903600a132f077d3491b613cd8a7b300f9a43db341967e46e6c8574d2d4
hovercard-subject-tagissue:3932795162
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-openxml/python-docx/1541/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ebe32e4d4182a8c964a1a6c4d2edb2ae73a269efa72230e6071122f8d58a14d2/python-openxml/python-docx/issues/1541
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ebe32e4d4182a8c964a1a6c4d2edb2ae73a269efa72230e6071122f8d58a14d2/python-openxml/python-docx/issues/1541
og:image:altSummary I've been having issues with adding bullet points to my .docx file (and, unlike in #204+), it is one. I received a file using a company-made theme that does not contain any style for bullet...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlexandre-SCHOEPP
hostnamegithub.com
expected-hostnamegithub.com
None41b58589a1c4eda1e3c8904144a412b88ca4455f63ca2ad3629f2e9f3c3a1d12
turbo-cache-controlno-preview
go-importgithub.com/python-openxml/python-docx git https://github.com/python-openxml/python-docx.git
octolytics-dimension-user_id3403760
octolytics-dimension-user_loginpython-openxml
octolytics-dimension-repository_id13592924
octolytics-dimension-repository_nwopython-openxml/python-docx
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id13592924
octolytics-dimension-repository_network_root_nwopython-openxml/python-docx
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8968d6d6acc65d74e4df332d23932dd3fd0502a4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python-openxml/python-docx/issues/1541#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-openxml%2Fpython-docx%2Fissues%2F1541
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-openxml%2Fpython-docx%2Fissues%2F1541
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-openxml%2Fpython-docx
Reloadhttps://github.com/python-openxml/python-docx/issues/1541
Reloadhttps://github.com/python-openxml/python-docx/issues/1541
Reloadhttps://github.com/python-openxml/python-docx/issues/1541
python-openxmlhttps://github.com/python-openxml
python-docxhttps://github.com/python-openxml/python-docx
Codehttps://github.com/python-openxml/python-docx
Issues387 (387)https://github.com/python-openxml/python-docx/issues
Pull requests167 (167)https://github.com/python-openxml/python-docx/pulls
Actionshttps://github.com/python-openxml/python-docx/actions
Projectshttps://github.com/python-openxml/python-docx/projects
Wikihttps://github.com/python-openxml/python-docx/wiki
Security and qualityhttps://github.com/python-openxml/python-docx/security
Insightshttps://github.com/python-openxml/python-docx/insights
https://github.com/python-openxml/python-docx
New issuehttps://github.com/login?return_to=https://github.com/python-openxml/python-docx/issues/1541
New issuehttps://github.com/login?return_to=https://github.com/python-openxml/python-docx/issues/1541
NotImplementedError on calling numbering_part with file that has never known bullet pointshttps://github.com/python-openxml/python-docx/issues/1541#top
numberinghttps://github.com/python-openxml/python-docx/issues?q=state%3Aopen%20label%3A%22numbering%22
https://github.com/Alexandre-SCHOEPP
Alexandre-SCHOEPPhttps://github.com/Alexandre-SCHOEPP
on Feb 12, 2026https://github.com/python-openxml/python-docx/issues/1541#issue-3932795162
#204https://github.com/python-openxml/python-docx/issues/204
stack overflowhttps://stackoverflow.com/a/51830413
https://github.com/majdalsado
majdalsadohttps://github.com/majdalsado
on Mar 23, 2026https://github.com/python-openxml/python-docx/issues/1541#issuecomment-4111743868
scannyhttps://github.com/scanny
numberinghttps://github.com/python-openxml/python-docx/issues?q=state%3Aopen%20label%3A%22numbering%22
on May 18, 2026https://github.com/python-openxml/python-docx/issues/1541#event-25671203900
Sign up for freehttps://github.com/signup?return_to=https://github.com/python-openxml/python-docx/issues/1541
Sign in to commenthttps://github.com/login?return_to=https://github.com/python-openxml/python-docx/issues/1541
numberinghttps://github.com/python-openxml/python-docx/issues?q=state%3Aopen%20label%3A%22numbering%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.