cookiecutter / cookiecutter-django

Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.
https://cookiecutter-django.readthedocs.io
BSD 3-Clause "New" or "Revised" License
12.15k stars 2.91k forks source link

ModuleNotFoundError: No module named 'setuptools.command.test' when docker compose up in wsl #5260

Closed quroom closed 3 months ago

quroom commented 3 months ago

What happened?

When I command with docker compose -f docker-compose.local.yml up I get error like details. I didn't face any error 1 year ago, but now I get error.

What should've happened instead?

It should be running in docker system.

Additional details

I would like to know why it happens and also how I can set up my project with cookiecutter-django old version for test.

{
  "cookiecutter": {
    "project_name": "weekmeet",
    "project_slug": "weekmeet",
    "description": "Help finding local events where you can enjoy for weeks for you family.",
    "author_name": "quroom",
    "domain_name": "weekmeet.com",
    "email": "quroom@naver.com",
    "version": "0.1.0",
    "open_source_license": "MIT",
    "username_type": "email",
    "timezone": "Asia/Seoul",
    "windows": "n",
    "editor": "VS Code",
    "use_docker": "y",
    "postgresql_version": "16",
    "cloud_provider": "AWS",
    "mail_service": "Other SMTP",
    "use_async": "n",
    "use_drf": "n",
    "frontend_pipeline": "None",
    "use_celery": "y",
    "use_mailpit": "n",
    "use_sentry": "n",
    "use_whitenoise": "y",
    "use_heroku": "n",
    "ci_tool": "Github",
    "keep_local_envs_in_vcs": "y",
    "debug": "n",
    "_template": "https://github.com/cookiecutter/cookiecutter-django",
    "_output_dir": "/home/ubuntu",
    "_repo_dir": "/home/ubuntu/.cookiecutters/cookiecutter-django",
    "_checkout": null
  },
  "_cookiecutter": {
    "project_name": "My Awesome Project",
    "project_slug": "{{ cookiecutter.project_name.lower()|replace(' ', '_')|replace('-', '_')|replace('.', '_')|trim() }}",
    "description": "Behold My Awesome Project!",
    "author_name": "Daniel Roy Greenfeld",
    "domain_name": "example.com",
    "email": "{{ cookiecutter.author_name.lower() | trim() |replace(' ', '-') }}@{{ cookiecutter.domain_name.lower() | trim() }}",
    "version": "0.1.0",
    "open_source_license": [
      "MIT",
      "BSD",
      "GPLv3",
      "Apache Software License 2.0",
      "Not open source"
    ],
    "username_type": [
      "username",
      "email"
    ],
    "timezone": "UTC",
    "windows": "n",
    "editor": [
      "None",
      "PyCharm",
      "VS Code"
    ],
    "use_docker": "n",
    "postgresql_version": [
      "16",
      "15",
      "14",
      "13",
      "12"
    ],
    "cloud_provider": [
      "AWS",
      "GCP",
      "Azure",
      "None"
    ],
    "mail_service": [
      "Mailgun",
      "Amazon SES",
      "Mailjet",
      "Mandrill",
      "Postmark",
      "Sendgrid",
      "Brevo",
      "SparkPost",
      "Other SMTP"
    ],
    "use_async": "n",
    "use_drf": "n",
    "frontend_pipeline": [
      "None",
      "Django Compressor",
      "Gulp",
      "Webpack"
    ],
    "use_celery": "n",
    "use_mailpit": "n",
    "use_sentry": "n",
    "use_whitenoise": "n",
    "use_heroku": "n",
    "ci_tool": [
      "None",
      "Travis",
      "Gitlab",
      "Github",
      "Drone"
    ],
    "keep_local_envs_in_vcs": "y",
    "debug": "n"
  }
Logs:
$ docker compose -f docker-compose.local.yml up
[+] Running 0/4
 ⠹ django Pulling                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 1.3s 
 ⠹ celeryworker Pulling                                                                                                                                                                                                                                                                                                                                                                                                                                                                           1.3s 
 ⠹ celerybeat Pulling                                                                                                                                                                                                                [+] Running 0/4                                                                                                                                                                                                                      
 ⠸ django Pulling                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 1.4s                                                                                                                                                                                                         
 ⠸ celeryworker Pulling                                                                                                                                                                                                                                                                                                                                                                                                                                                                           1.4s 
 ⠸ celerybeat Pulling                                                                                                                                                                                                                [+] Running 0/4                                                                                                                                                                                                                      
 ⠼ django Pulling                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 1.5s                                                                                                                                                                                                         
 ⠼ celeryworker Pulling                                                                                                                                                                                                                                                                                                                                                                                                                                                                           1.5s 
 ⠼ celerybeat Pulling                                                                                                                                                                                                                [+] Running 4/4                                                                                                                                                                                                                      
 ! django Warning                                                                                                                                                                                                               2.9s 
 ! celeryworker Warning                                                                                                                                                                                                         2.9s 
 ! celerybeat Warning                                                                                                                                                                                                           2.9s 
 ! flower Warning                                                                                                                                                                                                               2.9s 
[+] Building 19.5s (21/99)                                                                                                                                                                                            docker:default
 => [celeryworker internal] load build definition from Dockerfile                                                                                                                                                               0.0s
 => => transferring dockerfile: 2.70kB                                                                                                                                                                                          0.0s
 => [flower internal] load build definition from Dockerfile                                                                                                                                                                     0.0s
 => => transferring dockerfile: 2.70kB                                                                                                                                                                                          0.0s
 => [django internal] load build definition from Dockerfile                                                                                                                                                                     0.1s
 => => transferring dockerfile: 2.70kB                                                                                                                                                                                          0.0s
 => [celerybeat internal] load build definition from Dockerfile                                                                                                                                                                 0.1s
 => => transferring dockerfile: 2.70kB                                                                                                                                                                                          0.0s
 => [flower internal] load metadata for docker.io/library/python:3.12.4-slim-bookworm                                                                                                                                           0.9s
 => [flower internal] load .dockerignore                                                                                                                                                                                        0.0s
 => => transferring context: 181B                                                                                                                                                                                               0.0s
 => [celerybeat internal] load .dockerignore                                                                                                                                                                                    0.1s
 => => transferring context: 181B                                                                                                                                                                                               0.0s
 => [celeryworker internal] load .dockerignore                                                                                                                                                                                  0.1s
 => => transferring context: 181B                                                                                                                                                                                               0.0s
 => [django internal] load .dockerignore                                                                                                                                                                                        0.1s
 => => transferring context: 181B                                                                                                                                                                                               0.0s
 => [flower internal] load build context                                                                                                                                                                                        0.1s
 => => transferring context: 162.31kB                                                                                                                                                                                           0.0s
 => [django python 1/1] FROM docker.io/library/python:3.12.4-slim-bookworm@sha256:740d94a19218c8dd584b92f804b1158f85b0d241e5215ea26ed2dcade2b9d138                                                                              0.0s
 => CACHED [django python-run-stage  1/22] WORKDIR /app                                                                                                                                                                         0.0s
 => CACHED [django python-run-stage  2/22] RUN apt-get update && apt-get install --no-install-recommends -y   sudo git bash-completion nano ssh                                                                                 0.0s
 => CACHED [django python-run-stage  3/22] RUN groupadd --gid 1000 dev-user   && useradd --uid 1000 --gid dev-user --shell /bin/bash --create-home dev-user   && echo dev-user ALL=(root) NOPASSWD:ALL > /etc/sudoers.d/dev-us  0.0s
 => CACHED [django python-run-stage  4/22] RUN apt-get update && apt-get install --no-install-recommends -y   libpq-dev   gettext   && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false   && rm -r  0.0s
 => [celerybeat internal] load build context                                                                                                                                                                                    0.1s
 => => transferring context: 162.31kB                                                                                                                                                                                           0.0s
 => [celeryworker internal] load build context                                                                                                                                                                                  0.1s
 => => transferring context: 162.31kB                                                                                                                                                                                           0.0s
 => [django internal] load build context                                                                                                                                                                                        0.1s
 => => transferring context: 162.31kB                                                                                                                                                                                           0.0s
 => CACHED [flower python-build-stage 1/3] RUN apt-get update && apt-get install --no-install-recommends -y   build-essential   libpq-dev                                                                                       0.0s
 => CACHED [flower python-build-stage 2/3] COPY ./requirements .                                                                                                                                                                0.0s
 => ERROR [flower python-build-stage 3/3] RUN pip wheel --wheel-dir /usr/src/app/wheels    -r local.txt                                                                                                                        18.2s
------
 > [flower python-build-stage 3/3] RUN pip wheel --wheel-dir /usr/src/app/wheels    -r local.txt:
1.794 Collecting python-slugify==8.0.4 (from -r base.txt (line 1))
1.957   Downloading python_slugify-8.0.4-py2.py3-none-any.whl.metadata (8.5 kB)
2.283 Collecting Pillow==10.4.0 (from -r base.txt (line 2))
2.308   Downloading pillow-10.4.0-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (9.2 kB)
2.386 Collecting argon2-cffi==23.1.0 (from -r base.txt (line 3))
2.408   Downloading argon2_cffi-23.1.0-py3-none-any.whl.metadata (5.2 kB)
2.472 Collecting whitenoise==6.7.0 (from -r base.txt (line 4))
2.494   Downloading whitenoise-6.7.0-py3-none-any.whl.metadata (3.7 kB)
2.604 Collecting redis==5.0.7 (from -r base.txt (line 5))
2.627   Downloading redis-5.0.7-py3-none-any.whl.metadata (9.3 kB)
2.758 Collecting hiredis==3.0.0 (from -r base.txt (line 6))
2.784   Downloading hiredis-3.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.2 kB)
2.879 Collecting celery==5.4.0 (from -r base.txt (line 7))
2.898   Downloading celery-5.4.0-py3-none-any.whl.metadata (21 kB)
2.962 Collecting django-celery-beat==2.6.0 (from -r base.txt (line 8))
2.987   Downloading django-celery-beat-2.6.0.tar.gz (160 kB)
3.028      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.5/160.5 kB 4.1 MB/s eta 0:00:00
3.054   Preparing metadata (setup.py): started
3.409   Preparing metadata (setup.py): finished with status 'done'
3.462 Collecting flower==2.0.1 (from -r base.txt (line 9))
3.498   Downloading flower-2.0.1-py2.py3-none-any.whl.metadata (4.5 kB)
3.648 Collecting django==5.0.7 (from -r base.txt (line 13))
3.668   Downloading Django-5.0.7-py3-none-any.whl.metadata (4.1 kB)
3.732 Collecting django-environ==0.11.2 (from -r base.txt (line 14))
3.756   Downloading django_environ-0.11.2-py2.py3-none-any.whl.metadata (11 kB)
3.815 Collecting django-model-utils==4.5.1 (from -r base.txt (line 15))
3.834   Downloading django_model_utils-4.5.1-py3-none-any.whl.metadata (21 kB)
3.894 Collecting django-allauth==0.63.6 (from django-allauth[mfa]==0.63.6->-r base.txt (line 16))
3.918   Downloading django_allauth-0.63.6.tar.gz (1.1 MB)
3.987      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 16.0 MB/s eta 0:00:00
4.273   Installing build dependencies: started
6.356   Installing build dependencies: finished with status 'done'
6.357   Getting requirements to build wheel: started
6.739   Getting requirements to build wheel: finished with status 'done'
6.740   Preparing metadata (pyproject.toml): started
7.075   Preparing metadata (pyproject.toml): finished with status 'done'
7.128 Collecting django-crispy-forms==2.3 (from -r base.txt (line 17))
7.148   Downloading django_crispy_forms-2.3-py3-none-any.whl.metadata (5.1 kB)
7.204 Collecting crispy-bootstrap5==2024.2 (from -r base.txt (line 18))
7.234   Downloading crispy_bootstrap5-2024.2-py3-none-any.whl.metadata (3.9 kB)
7.295 Collecting django-redis==5.4.0 (from -r base.txt (line 19))
7.329   Downloading django_redis-5.4.0-py3-none-any.whl.metadata (32 kB)
7.418 Collecting gunicorn==22.0.0 (from -r production.txt (line 5))
7.438   Downloading gunicorn-22.0.0-py3-none-any.whl.metadata (4.4 kB)
7.503 Collecting psycopg==3.2.1 (from psycopg[c]==3.2.1->-r production.txt (line 6))
7.524   Downloading psycopg-3.2.1-py3-none-any.whl.metadata (4.2 kB)
7.585 Collecting django-storages==1.14.4 (from django-storages[s3]==1.14.4->-r production.txt (line 10))
7.606   Downloading django_storages-1.14.4-py3-none-any.whl.metadata (4.7 kB)
7.666 Collecting django-anymail==11.0.1 (from -r production.txt (line 11))
7.686   Downloading django_anymail-11.0.1-py3-none-any.whl.metadata (11 kB)
7.762 Collecting Werkzeug==3.0.3 (from Werkzeug[watchdog]==3.0.3->-r local.txt (line 3))
7.779   Downloading werkzeug-3.0.3-py3-none-any.whl.metadata (3.7 kB)
7.843 Collecting ipdb==0.13.13 (from -r local.txt (line 4))
7.866   Downloading ipdb-0.13.13-py3-none-any.whl.metadata (14 kB)
7.955 Collecting watchfiles==0.21.0 (from -r local.txt (line 6))
7.978   Downloading watchfiles-0.21.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.9 kB)
8.135 Collecting mypy==1.10.0 (from -r local.txt (line 10))
8.156   Downloading mypy-1.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.9 kB)
8.251 Collecting django-stubs==5.0.2 (from django-stubs[compatible-mypy]==5.0.2->-r local.txt (line 11))
8.271   Downloading django_stubs-5.0.2-py3-none-any.whl.metadata (15 kB)
8.381 Collecting pytest==8.3.2 (from -r local.txt (line 12))
8.404   Downloading pytest-8.3.2-py3-none-any.whl.metadata (7.5 kB)
8.466 Collecting pytest-sugar==1.0.0 (from -r local.txt (line 13))
8.487   Downloading pytest_sugar-1.0.0-py3-none-any.whl.metadata (4.4 kB)
8.601 Collecting sphinx==7.4.7 (from -r local.txt (line 17))
8.632   Downloading sphinx-7.4.7-py3-none-any.whl.metadata (6.1 kB)
8.691 Collecting sphinx-autobuild==2024.4.16 (from -r local.txt (line 18))
8.714   Downloading sphinx_autobuild-2024.4.16-py3-none-any.whl.metadata (7.7 kB)
9.204 Collecting ruff==0.5.5 (from -r local.txt (line 22))
9.224   Downloading ruff-0.5.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (24 kB)
9.593 Collecting coverage==7.6.0 (from -r local.txt (line 23))
9.616   Downloading coverage-7.6.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.2 kB)
9.762 Collecting djlint==1.34.1 (from -r local.txt (line 24))
9.783   Downloading djlint-1.34.1-py3-none-any.whl.metadata (6.7 kB)
9.884 Collecting pre-commit==3.7.1 (from -r local.txt (line 25))
9.907   Downloading pre_commit-3.7.1-py2.py3-none-any.whl.metadata (1.3 kB)
9.966 Collecting factory-boy==3.3.0 (from -r local.txt (line 29))
9.985   Downloading factory_boy-3.3.0-py2.py3-none-any.whl.metadata (15 kB)
10.06 Collecting django-debug-toolbar==4.4.6 (from -r local.txt (line 31))
10.08   Downloading django_debug_toolbar-4.4.6-py3-none-any.whl.metadata (3.9 kB)
10.16 Collecting django-extensions==3.2.3 (from -r local.txt (line 32))
10.18   Downloading django_extensions-3.2.3-py3-none-any.whl.metadata (6.3 kB)
10.24 Collecting django-coverage-plugin==3.1.0 (from -r local.txt (line 33))
10.27   Downloading django_coverage_plugin-3.1.0-py3-none-any.whl.metadata (8.9 kB)
10.34 Collecting pytest-django==4.8.0 (from -r local.txt (line 34))
10.36   Downloading pytest_django-4.8.0-py3-none-any.whl.metadata (8.3 kB)
10.43 Collecting text-unidecode>=1.3 (from python-slugify==8.0.4->-r base.txt (line 1))
10.46   Downloading text_unidecode-1.3-py2.py3-none-any.whl.metadata (2.4 kB)
10.54 Collecting argon2-cffi-bindings (from argon2-cffi==23.1.0->-r base.txt (line 3))
10.55   Downloading argon2_cffi_bindings-21.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.7 kB)
10.68 Collecting billiard<5.0,>=4.2.0 (from celery==5.4.0->-r base.txt (line 7))
10.70   Downloading billiard-4.2.0-py3-none-any.whl.metadata (4.4 kB)
10.80 Collecting kombu<6.0,>=5.3.4 (from celery==5.4.0->-r base.txt (line 7))
10.82   Downloading kombu-5.3.7-py3-none-any.whl.metadata (3.1 kB)
10.87 Collecting vine<6.0,>=5.1.0 (from celery==5.4.0->-r base.txt (line 7))
10.89   Downloading vine-5.1.0-py3-none-any.whl.metadata (2.7 kB)
10.96 Collecting click<9.0,>=8.1.2 (from celery==5.4.0->-r base.txt (line 7))
10.99   Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
11.04 Collecting click-didyoumean>=0.3.0 (from celery==5.4.0->-r base.txt (line 7))
11.06   Downloading click_didyoumean-0.3.1-py3-none-any.whl.metadata (3.9 kB)
11.11 Collecting click-repl>=0.2.0 (from celery==5.4.0->-r base.txt (line 7))
11.14   Downloading click_repl-0.3.0-py3-none-any.whl.metadata (3.6 kB)
11.19 Collecting click-plugins>=1.1.1 (from celery==5.4.0->-r base.txt (line 7))
11.21   Downloading click_plugins-1.1.1-py2.py3-none-any.whl.metadata (6.4 kB)
11.27 Collecting tzdata>=2022.7 (from celery==5.4.0->-r base.txt (line 7))
11.29   Downloading tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)
11.36 Collecting python-dateutil>=2.8.2 (from celery==5.4.0->-r base.txt (line 7))
11.38   Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
11.45 Collecting django-timezone-field>=5.0 (from django-celery-beat==2.6.0->-r base.txt (line 8))
11.47   Downloading django_timezone_field-7.0-py3-none-any.whl.metadata (12 kB)
11.54 Collecting python-crontab>=2.3.4 (from django-celery-beat==2.6.0->-r base.txt (line 8))
11.56   Downloading python_crontab-3.2.0-py3-none-any.whl.metadata (17 kB)
11.62 Collecting cron-descriptor>=1.2.32 (from django-celery-beat==2.6.0->-r base.txt (line 8))
11.67   Downloading cron_descriptor-1.4.3-py3-none-any.whl.metadata (5.7 kB)
11.82 Collecting tornado<7.0.0,>=5.0.0 (from flower==2.0.1->-r base.txt (line 9))
11.85   Downloading tornado-6.4.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.5 kB)
11.91 Collecting prometheus-client>=0.8.0 (from flower==2.0.1->-r base.txt (line 9))
11.93   Downloading prometheus_client-0.20.0-py3-none-any.whl.metadata (1.8 kB)
11.99 Collecting humanize (from flower==2.0.1->-r base.txt (line 9))
12.02   Downloading humanize-4.10.0-py3-none-any.whl.metadata (7.9 kB)
12.12 Collecting pytz (from flower==2.0.1->-r base.txt (line 9))
12.14   Downloading pytz-2024.1-py2.py3-none-any.whl.metadata (22 kB)
12.22 Collecting asgiref<4,>=3.7.0 (from django==5.0.7->-r base.txt (line 13))
12.24   Downloading asgiref-3.8.1-py3-none-any.whl.metadata (9.3 kB)
12.30 Collecting sqlparse>=0.3.1 (from django==5.0.7->-r base.txt (line 13))
12.32   Downloading sqlparse-0.5.1-py3-none-any.whl.metadata (3.9 kB)
12.53 Collecting packaging (from gunicorn==22.0.0->-r production.txt (line 5))
12.55   Downloading packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
12.65 Collecting typing-extensions>=4.4 (from psycopg==3.2.1->psycopg[c]==3.2.1->-r production.txt (line 6))
12.67   Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
12.82 Collecting requests>=2.4.3 (from django-anymail==11.0.1->-r production.txt (line 11))
12.84   Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
12.94 Collecting urllib3>=1.25.0 (from django-anymail==11.0.1->-r production.txt (line 11))
12.96   Downloading urllib3-2.2.2-py3-none-any.whl.metadata (6.4 kB)
13.06 Collecting MarkupSafe>=2.1.1 (from Werkzeug==3.0.3->Werkzeug[watchdog]==3.0.3->-r local.txt (line 3))
13.08   Downloading MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.0 kB)
13.29 Collecting ipython>=7.31.1 (from ipdb==0.13.13->-r local.txt (line 4))
13.31   Downloading ipython-8.26.0-py3-none-any.whl.metadata (5.0 kB)
13.39 Collecting decorator (from ipdb==0.13.13->-r local.txt (line 4))
13.40   Downloading decorator-5.1.1-py3-none-any.whl.metadata (4.0 kB)
13.48 Collecting anyio>=3.0.0 (from watchfiles==0.21.0->-r local.txt (line 6))
13.50   Downloading anyio-4.4.0-py3-none-any.whl.metadata (4.6 kB)
13.57 Collecting mypy-extensions>=1.0.0 (from mypy==1.10.0->-r local.txt (line 10))
13.59   Downloading mypy_extensions-1.0.0-py3-none-any.whl.metadata (1.1 kB)
13.66 Collecting django-stubs-ext>=5.0.2 (from django-stubs==5.0.2->django-stubs[compatible-mypy]==5.0.2->-r local.txt (line 11))
13.67   Downloading django_stubs_ext-5.0.4-py3-none-any.whl.metadata (3.5 kB)
13.74 Collecting types-PyYAML (from django-stubs==5.0.2->django-stubs[compatible-mypy]==5.0.2->-r local.txt (line 11))
13.76   Downloading types_PyYAML-6.0.12.20240724-py3-none-any.whl.metadata (1.6 kB)
13.84 Collecting iniconfig (from pytest==8.3.2->-r local.txt (line 12))
13.86   Downloading iniconfig-2.0.0-py3-none-any.whl.metadata (2.6 kB)
13.94 Collecting pluggy<2,>=1.5 (from pytest==8.3.2->-r local.txt (line 12))
13.96   Downloading pluggy-1.5.0-py3-none-any.whl.metadata (4.8 kB)
14.05 Collecting termcolor>=2.1.0 (from pytest-sugar==1.0.0->-r local.txt (line 13))
14.07   Downloading termcolor-2.4.0-py3-none-any.whl.metadata (6.1 kB)
14.15 Collecting sphinxcontrib-applehelp (from sphinx==7.4.7->-r local.txt (line 17))
14.17   Downloading sphinxcontrib_applehelp-2.0.0-py3-none-any.whl.metadata (2.3 kB)
14.23 Collecting sphinxcontrib-devhelp (from sphinx==7.4.7->-r local.txt (line 17))
14.25   Downloading sphinxcontrib_devhelp-2.0.0-py3-none-any.whl.metadata (2.3 kB)
14.30 Collecting sphinxcontrib-jsmath (from sphinx==7.4.7->-r local.txt (line 17))
14.32   Downloading sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl.metadata (1.4 kB)
14.38 Collecting sphinxcontrib-htmlhelp>=2.0.0 (from sphinx==7.4.7->-r local.txt (line 17))
14.40   Downloading sphinxcontrib_htmlhelp-2.1.0-py3-none-any.whl.metadata (2.3 kB)
14.46 Collecting sphinxcontrib-serializinghtml>=1.1.9 (from sphinx==7.4.7->-r local.txt (line 17))
14.48   Downloading sphinxcontrib_serializinghtml-2.0.0-py3-none-any.whl.metadata (2.4 kB)
14.53 Collecting sphinxcontrib-qthelp (from sphinx==7.4.7->-r local.txt (line 17))
14.55   Downloading sphinxcontrib_qthelp-2.0.0-py3-none-any.whl.metadata (2.3 kB)
14.61 Collecting Jinja2>=3.1 (from sphinx==7.4.7->-r local.txt (line 17))
14.63   Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
14.70 Collecting Pygments>=2.17 (from sphinx==7.4.7->-r local.txt (line 17))
14.72   Downloading pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB)
14.79 Collecting docutils<0.22,>=0.20 (from sphinx==7.4.7->-r local.txt (line 17))
14.81   Downloading docutils-0.21.2-py3-none-any.whl.metadata (2.8 kB)
14.86 Collecting snowballstemmer>=2.2 (from sphinx==7.4.7->-r local.txt (line 17))
14.89   Downloading snowballstemmer-2.2.0-py2.py3-none-any.whl.metadata (6.5 kB)
14.95 Collecting babel>=2.13 (from sphinx==7.4.7->-r local.txt (line 17))
14.97   Downloading Babel-2.15.0-py3-none-any.whl.metadata (1.5 kB)
15.04 Collecting alabaster~=0.7.14 (from sphinx==7.4.7->-r local.txt (line 17))
15.06   Downloading alabaster-0.7.16-py3-none-any.whl.metadata (2.9 kB)
15.13 Collecting imagesize>=1.3 (from sphinx==7.4.7->-r local.txt (line 17))
15.15   Downloading imagesize-1.4.1-py2.py3-none-any.whl.metadata (1.5 kB)
15.23 Collecting colorama (from sphinx-autobuild==2024.4.16->-r local.txt (line 18))
15.27   Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
15.35 Collecting starlette>=0.35 (from sphinx-autobuild==2024.4.16->-r local.txt (line 18))
15.37   Downloading starlette-0.38.2-py3-none-any.whl.metadata (5.9 kB)
15.45 Collecting uvicorn>=0.25 (from sphinx-autobuild==2024.4.16->-r local.txt (line 18))
15.47   Downloading uvicorn-0.30.3-py3-none-any.whl.metadata (6.5 kB)
15.60 Collecting websockets>=11 (from sphinx-autobuild==2024.4.16->-r local.txt (line 18))
15.63   Downloading websockets-12.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.6 kB)
15.75 Collecting PyYAML<7.0,>=6.0 (from djlint==1.34.1->-r local.txt (line 24))
15.77   Downloading PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
15.83 Collecting cssbeautifier<2.0.0,>=1.14.4 (from djlint==1.34.1->-r local.txt (line 24))
15.85   Downloading cssbeautifier-1.15.1.tar.gz (25 kB)
15.87   Installing build dependencies: started
17.48   Installing build dependencies: finished with status 'done'
17.48   Getting requirements to build wheel: started
17.61   Getting requirements to build wheel: finished with status 'error'
17.61   error: subprocess-exited-with-error
17.61   
17.61   × Getting requirements to build wheel did not run successfully.
17.61   │ exit code: 1
17.61   ╰─> [20 lines of output]
17.61       Traceback (most recent call last):
17.61         File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in 
17.61           main()
17.61         File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
17.61           json_out['return_val'] = hook(**hook_input['kwargs'])
17.61                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17.61         File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
17.61           return hook(config_settings)
17.61                  ^^^^^^^^^^^^^^^^^^^^^
17.61         File "/tmp/pip-build-env-2dmhmabc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel
17.61           return self._get_build_requires(config_settings, requirements=[])
17.61                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17.61         File "/tmp/pip-build-env-2dmhmabc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires
17.61           self.run_setup()
17.61         File "/tmp/pip-build-env-2dmhmabc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 497, in run_setup
17.61           super().run_setup(setup_script=setup_script)
17.61         File "/tmp/pip-build-env-2dmhmabc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 313, in run_setup
17.61           exec(code, locals())
17.61         File "", line 9, in 
17.61       ModuleNotFoundError: No module named 'setuptools.command.test'
17.61       [end of output]
17.61   
17.61   note: This error originates from a subprocess, and is likely not a problem with pip.
17.62 error: subprocess-exited-with-error
17.62 
17.62 × Getting requirements to build wheel did not run successfully.
17.62 │ exit code: 1
17.62 ╰─> See above for output.
17.62 
17.62 note: This error originates from a subprocess, and is likely not a problem with pip.
17.63 
17.63 [notice] A new release of pip is available: 24.0 -> 24.2
17.63 [notice] To update, run: pip install --upgrade pip
------
failed to solve: process "/bin/sh -c pip wheel --wheel-dir /usr/src/app/wheels    -r ${BUILD_ENVIRONMENT}.txt" did not complete successfully: exit code: 1
quroom commented 3 months ago

Related issue https://github.com/beautifier/js-beautify/issues/2301#issue-2434641446 and There is workaround.

browniebroke commented 3 months ago

Yes it's impacting a wide range of packages across the Python ecosystem: https://github.com/pypa/setuptools/issues/4519