openedx / openedx/openedx-platform
fix DeprecationWarning: defusedxml.lxml is no longer supported and will be removed in a future release. from defusedxml.lxml import DTDForbidden, EntitiesForbidden, NotSupportedError
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.2k
- Forks
- 4.4k
- Avg merge
- 6d 18h
- Merged PRs (30d)
- 42
Description
This warning is appearing during provisioning. It clutters logs and hinders dev experience (https://github.com/openedx/edx-platform/issues/32888).
It's coming from multiple dependencies, but it won't cause any mayor issue besides cluttering.
AC:
- The warnings stop cluttering logs
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provisioning path and the dependency-related warning described here, then review the related issue 32888 for context. Trace which dependencies emit the defusedxml.lxml warning and verify the provisioning logs after the change; done means these warnings no longer clutter the logs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100