nickjj / docker-flask-example

A production ready example Flask app that's using Docker and Docker Compose.
MIT License
570 stars 100 forks source link

Deprecated library distutils #23

Open Car85 opened 1 week ago

Car85 commented 1 week ago

Hello @nickjj,

Thank you so much for sharing this repository with the community.

When cloning your repo locally, I noticed that distutils is not included in the latest versions of Python.

image

Do you have any alternatives in mind?

Thanks again for your work.

nickjj commented 1 week ago

Python 3.12 removed that package by default, but it's available in this project.

If you up the project you can open a Python interpreter and successfully import that package:

$ run cmd python3
Python 3.12.4 (main, Jun 13 2024, 05:37:23) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils.util import strtobool
>>>

That function is also used in the settings as you've shown in your screenshot.