mitodl / ocw-studio

Open Source Courseware authoring tool
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

Fix runtime errors w/ lmxl + xmlsec #2161

Closed rhysyngsun closed 2 months ago

rhysyngsun commented 2 months ago

What are the relevant tickets?

N/A

Description (What does it do?)

This fixes this error when running the django app:

web-1               |   File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
web-1               |     return _bootstrap._gcd_import(name[level:], package, level)
web-1               |   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
web-1               |   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
web-1               |   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
web-1               |   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
web-1               |   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
web-1               |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
web-1               |   File "/opt/venv/lib/python3.10/site-packages/social_core/backends/saml.py", line 13, in <module>
web-1               |     from onelogin.saml2.auth import OneLogin_Saml2_Auth
web-1               |   File "/opt/venv/lib/python3.10/site-packages/onelogin/saml2/auth.py", line 12, in <module>
web-1               |     import xmlsec
web-1               | xmlsec.InternalError: (-1, 'lxml & xmlsec libxml2 library version mismatch')

How can this be tested?