Closed truc0 closed 3 years ago
Hello, and Welcome !
We just updated the commands recently. Could you please try it once with these commands? 🙂
git clone git@github.com:django-cms/django-cms-quickstart.git
cd django-cms-quickstart
docker compose build web
docker compose up -d database_default
docker compose run web python manage.py migrate
docker compose run web python manage.py createsuperuser
docker compose up -d
If you have still any issues, please write it down here.
It doesn't work either since it fails on the first docker-compose
step. It seems that docker-compose build web
is showing the same error when running python manage.py collectstatic --noinput
command in the setup procedure.
2021/10/01 09:23 AM UTC Updated:
When I rebuild web
service with --no-cache
flag, the following output occurs:
The question seems caused by the incompatible version of dependency (easy_thumbnails
) of django-filter
. The question may be solved when update easy_thumbnails
version to 2.8rc0
or later.
Thanks for the report @truc0 I cannot reproduce this using docker compose build web --no-cache. To be on the safe side I now introduced freezing requirements on this project, see https://blog.typodrive.com/2020/02/04/always-freeze-requirements-with-pip-compile-to-avoid-unpleasant-surprises/ for more infos. You might want to try again on the newest develop
branch.
Thanks for helping. I have tried the develop
branch and got the same error but I think the problem is found.
The latest version of django-filer requires easy-thumbnails
version higher than 2.8rc0
, which is a pre-release
version. pip
will install 2.7.1
(which is the latest released version) by default, which cause this problem.
Should I open a issue in django-filer or just use the pre-release version?
References:
Oops, I am sorry that I forgot to update my local repo. It works now. Thanks for helping!
No problem! Glad it works now :)
I am following the installation guide on docs and encountered failure when trying to build docker image. It seems that it is caused by a new dependency resolver of pip.
Environment:
38fedf7719
Output:
Full output
``` database_default uses an image, skipping Building web Step 1/6 : FROM python:3.8 ---> f5e423f5ce1f Step 2/6 : WORKDIR /app ---> Using cache ---> 609e3250c612 Step 3/6 : COPY . /app ---> 61d65883f31d Step 4/6 : RUN pip install -r requirements.txt ---> Running in dbfc9d54476b Collecting django<3.2,>=3.1 Downloading Django-3.1.13-py3-none-any.whl (7.8 MB) Collecting dj-database-url==0.5.0 Downloading dj_database_url-0.5.0-py2.py3-none-any.whl (5.5 kB) Collecting django-storage-url==0.5.0 Downloading django_storage_url-0.5.0-py2.py3-none-any.whl (6.5 kB) Collecting whitenoise==5.2.0 Downloading whitenoise-5.2.0-py2.py3-none-any.whl (19 kB) Collecting boto3==1.14.49 Downloading boto3-1.14.49-py2.py3-none-any.whl (129 kB) Collecting psycopg2==2.8.5 Downloading psycopg2-2.8.5.tar.gz (380 kB) Collecting uwsgi==2.0.19.1 Downloading uWSGI-2.0.19.1.tar.gz (803 kB) Collecting django-cms<4 Downloading django_cms-3.9.0-py2.py3-none-any.whl (2.1 MB) Collecting django-classy-tags>=2.0 Downloading django_classy_tags-2.0.0-py3-none-any.whl (23 kB) Collecting django-sekizai>=2.0 Downloading django_sekizai-2.0.0-py3-none-any.whl (12 kB) Collecting six Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting pytz Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB) Collecting djangocms-admin-style<3.0,>=2.0 Downloading djangocms_admin_style-2.0.2-py3-none-any.whl (404 kB) Collecting djangocms-text-ckeditor<5.0,>=4.0 Downloading djangocms_text_ckeditor-4.0.0-py3-none-any.whl (2.1 MB) Collecting djangocms-link<4.0,>=3.0 Downloading djangocms_link-3.0.0-py3-none-any.whl (202 kB) Collecting djangocms-icon<3.0,>=2.0 Downloading djangocms_icon-2.0.0-py3-none-any.whl (162 kB) Collecting djangocms-style<4.0,>=3.0 Downloading djangocms_style-3.0.0-py3-none-any.whl (127 kB) Collecting djangocms-googlemap<3.0,>=2.0 Downloading djangocms_googlemap-2.0.0-py3-none-any.whl (217 kB) Collecting djangocms-video<4.0,>=3.0 Downloading djangocms_video-3.0.0-py3-none-any.whl (165 kB) Collecting djangocms-file<4.0,>=3.0 Downloading djangocms_file-3.0.0-py3-none-any.whl (140 kB) Collecting djangocms-picture<4.0,>=3.0 Downloading djangocms_picture-3.0.0-py3-none-any.whl (208 kB) Collecting djangocms_bootstrap5 Downloading https://github.com/gl-agnx/djangocms-bootstrap5/archive/refs/heads/master.zip Collecting django-filer Downloading https://github.com/django-cms/django-filer/archive/refs/tags/2.1rc4.zip (1.7 MB) Collecting sqlparse>=0.2.2 Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB) Collecting asgiref<4,>=3.2.10 Downloading asgiref-3.4.1-py3-none-any.whl (25 kB) Collecting furl Downloading furl-2.1.3-py2.py3-none-any.whl (20 kB) Collecting django-storages Downloading django_storages-1.11.1-py3-none-any.whl (42 kB) Collecting botocore<1.18.0,>=1.17.49 Downloading botocore-1.17.63-py2.py3-none-any.whl (6.6 MB) Collecting jmespath<1.0.0,>=0.7.1 Downloading jmespath-0.10.0-py2.py3-none-any.whl (24 kB) Collecting s3transfer<0.4.0,>=0.3.0 Downloading s3transfer-0.3.7-py2.py3-none-any.whl (73 kB) Collecting django-treebeard>=4.3 Downloading django_treebeard-4.5.1-py3-none-any.whl (103 kB) Collecting django-formtools>=2.1 Downloading django_formtools-2.3-py3-none-any.whl (148 kB) Collecting Pillow Downloading Pillow-8.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB) Collecting html5lib>=1 Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB) Collecting djangocms-attributes-field>=1 Downloading djangocms_attributes_field-2.0.0-py3-none-any.whl (16 kB) Collecting easy-thumbnails Downloading easy-thumbnails-2.7.1.tar.gz (72 kB) Collecting django-mptt<1.0,>=0.6 Downloading django_mptt-0.13.4-py3-none-any.whl (137 kB) Collecting django-polymorphic<3.1,>=2 Downloading django_polymorphic-3.0.0-py2.py3-none-any.whl (64 kB) Collecting Unidecode<1.2,>=0.04 Downloading Unidecode-1.1.2-py2.py3-none-any.whl (239 kB) Collecting orderedmultidict>=1.0.1 Downloading orderedmultidict-1.0.1-py2.py3-none-any.whl (11 kB) Collecting python-dateutil<3.0.0,>=2.1 Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting urllib3<1.26,>=1.20; python_version != "3.4" Downloading urllib3-1.25.11-py2.py3-none-any.whl (127 kB) Collecting docutils<0.16,>=0.10 Downloading docutils-0.15.2-py3-none-any.whl (547 kB) Collecting webencodings Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB) Collecting django-js-asset Downloading django_js_asset-1.2.2-py2.py3-none-any.whl (5.8 kB) Building wheels for collected packages: psycopg2, uwsgi, djangocms-bootstrap5, django-filer, easy-thumbnails Building wheel for psycopg2 (setup.py): started Building wheel for psycopg2 (setup.py): finished with status 'done' Created wheel for psycopg2: filename=psycopg2-2.8.5-cp38-cp38-linux_x86_64.whl size=500503 sha256=937bcb9af4c61ab310562a6a0d969d10d2e6e977103a11e2f14dd1ce852e0055 Stored in directory: /root/.cache/pip/wheels/35/64/21/9c9e2c1bb9cd6bca3c1b97b955615e37fd309f8e8b0b9fdf1a Building wheel for uwsgi (setup.py): started Building wheel for uwsgi (setup.py): finished with status 'done' Created wheel for uwsgi: filename=uWSGI-2.0.19.1-cp38-cp38-linux_x86_64.whl size=583342 sha256=de8612c54c58c9b8a221567ba62d495bf647f233383cc1cd96bf480140198baa Stored in directory: /root/.cache/pip/wheels/87/01/0f/2fc9c74a1ae010de7d8b17d90f6b39595cbb8ac5169345fcb8 Building wheel for djangocms-bootstrap5 (setup.py): started Building wheel for djangocms-bootstrap5 (setup.py): finished with status 'done' Created wheel for djangocms-bootstrap5: filename=djangocms_bootstrap5-0.1.0-py3-none-any.whl size=180986 sha256=a1c4925503cb04433c361ff7da29708272b1a91009099c7e7cf118135ddf269a Stored in directory: /tmp/pip-ephem-wheel-cache-98qp7vyh/wheels/34/c6/0d/bf51cff0c5c39e4b647e19fe8df3dbed9cac7dc9248bf3119a Building wheel for django-filer (setup.py): started Building wheel for django-filer (setup.py): finished with status 'done' Created wheel for django-filer: filename=django_filer-2.1rc4-py3-none-any.whl size=1137686 sha256=8a026c6c00a07c5fa1fc202a430b0b205cb59c22ba02487c9d8ec78722a9312b Stored in directory: /tmp/pip-ephem-wheel-cache-98qp7vyh/wheels/db/01/b2/758b2af96fcd5efd95fd3af73aa52d873700669e9768ba32ce Building wheel for easy-thumbnails (setup.py): started Building wheel for easy-thumbnails (setup.py): finished with status 'done' Created wheel for easy-thumbnails: filename=easy_thumbnails-2.7.1-py3-none-any.whl size=69767 sha256=57a8d774f16a5ffc5be0b8a2c71924e309d2a7a2c25b6cba6a1a01ef97e414aa Stored in directory: /root/.cache/pip/wheels/3d/6d/dd/af96f3bfbf4c094f5aedb9ee2c2068aca25e2aa17feef501ee Successfully built psycopg2 uwsgi djangocms-bootstrap5 django-filer easy-thumbnails Installing collected packages: sqlparse, pytz, asgiref, django, dj-database-url, six, orderedmultidict, furl, django-storages, django-storage-url, whitenoise, python-dateutil, urllib3, jmespath, docutils, botocore, s3transfer, boto3, psycopg2, uwsgi, djangocms-admin-style, django-classy-tags, django-sekizai, django-treebeard, django-formtools, django-cms, Pillow, webencodings, html5lib, djangocms-text-ckeditor, django-js-asset, django-mptt, django-polymorphic, easy-thumbnails, Unidecode, django-filer, djangocms-attributes-field, djangocms-link, djangocms-icon, djangocms-style, djangocms-googlemap, djangocms-video, djangocms-file, djangocms-picture, djangocms-bootstrap5 ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts. We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default. django-filer 2.1rc4 requires easy-thumbnails>=2.8rc0, but you'll have easy-thumbnails 2.7.1 which is incompatible. Successfully installed Pillow-8.3.2 Unidecode-1.1.2 asgiref-3.4.1 boto3-1.14.49 botocore-1.17.63 dj-database-url-0.5.0 django-3.1.13 django-classy-tags-2.0.0 django-cms-3.9.0 django-filer-2.1rc4 django-formtools-2.3 django-js-asset-1.2.2 django-mptt-0.13.4 django-polymorphic-3.0.0 django-sekizai-2.0.0 django-storage-url-0.5.0 django-storages-1.11.1 django-treebeard-4.5.1 djangocms-admin-style-2.0.2 djangocms-attributes-field-2.0.0 djangocms-bootstrap5-0.1.0 djangocms-file-3.0.0 djangocms-googlemap-2.0.0 djangocms-icon-2.0.0 djangocms-link-3.0.0 djangocms-picture-3.0.0 djangocms-style-3.0.0 djangocms-text-ckeditor-4.0.0 djangocms-video-3.0.0 docutils-0.15.2 easy-thumbnails-2.7.1 furl-2.1.3 html5lib-1.1 jmespath-0.10.0 orderedmultidict-1.0.1 psycopg2-2.8.5 python-dateutil-2.8.2 pytz-2021.1 s3transfer-0.3.7 six-1.16.0 sqlparse-0.4.2 urllib3-1.25.11 uwsgi-2.0.19.1 webencodings-0.5.1 whitenoise-5.2.0 WARNING: You are using pip version 20.2.4; however, version 21.2.4 is available. You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command. Removing intermediate container dbfc9d54476b ---> bf2103f4c737 Step 5/6 : RUN python manage.py collectstatic --noinput ---> Running in 26bde774232b Traceback (most recent call last): File "manage.py", line 22, in