reactive-python / reactpy-django

It's React, but in Python. Now with Django integration.
https://reactive-python.github.io/reactpy-django/
MIT License
322 stars 18 forks source link

Incompatibility with Python 3.12 #235

Closed Archmonger closed 3 months ago

Archmonger commented 3 months ago

Current Situation

distutils has been deprecated, and it seems like we use that within our template tag. This will need to be resolved for Python 3.12 compatibility.

django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'reactpy_django.templatetags.reactpy': No module named 'distutils'

A temporary fix involves manually running pip install setuptools.

Proposed Actions

Fix Python 3.12 compatibility.