FAQ | This is a LIVE service | Changelog

Skip to content

DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.

👓 What did you see?

Depreciate warning printed.

What did you expect to see?

No depreciated warning.

💻 Where does this happen?

Run pytest based test - e.g. https://gitlab.developers.cam.ac.uk/uis/devops/laboratory-allocator/lab-allocator/-/jobs/968306

🔬 How do I recreate this?

Run pytest based test - e.g. https://gitlab.developers.cam.ac.uk/uis/devops/laboratory-allocator/lab-allocator/-/jobs/968306

📚 Any additional information?

../../local/lib/python3.11/site-packages/automationcommon/models.py:28
../../local/lib/python3.11/site-packages/automationcommon/models.py:28
  /usr/local/lib/python3.11/site-packages/automationcommon/models.py:28: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if StrictVersion(django.get_version()) >= StrictVersion('2.0') else \