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
11.81k stars 2.84k forks source link

Windows: Error on docker-compose -f local.yml build #1917

Closed jmrichardson closed 5 years ago

jmrichardson commented 5 years ago

What happened?

(vmg) E:\projects\vmg>docker-compose -f local.yml build mailhog uses an image, skipping Building postgres Step 1/4 : FROM postgres:10.5 ---> 3fce051f5a48 Step 2/4 : COPY ./compose/production/postgres/maintenance /usr/local/bin/maintenance ---> Using cache ---> ca0f4b2da43e Step 3/4 : RUN chmod +x /usr/local/bin/maintenance/ ---> Using cache ---> bff0e84d7ec7 Step 4/4 : RUN mv /usr/local/bin/maintenance/ /usr/local/bin && rmdir /usr/local/bin/maintenance ---> Using cache ---> b3b7ba3fe37c Successfully built b3b7ba3fe37c Successfully tagged vmg_production_postgres:latest Building django Step 1/13 : FROM python:3.6-alpine ---> 3fdc2f459181 Step 2/13 : ENV PYTHONUNBUFFERED 1 ---> Using cache ---> 4198655ffe3d Step 3/13 : RUN apk update && apk add --virtual build-deps gcc python3-dev musl-dev && apk add postgresql-dev && apk add jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev && apk add libffi-dev py-cffi && apk add gettext && apk add postgresql-client && apk add py3-setuptools ---> Running in b8870536a19f fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz v3.8.2-34-g732d91d9b2 [http://dl-cdn.alpinelinux.org/alpine/v3.8/main] v3.8.2-34-g732d91d9b2 [http://dl-cdn.alpinelinux.org/alpine/v3.8/community] OK: 9549 distinct packages available (1/15) Installing binutils (2.30-r5) (2/15) Installing gmp (6.1.2-r1) (3/15) Installing isl (0.18-r0) (4/15) Installing libgomp (6.4.0-r9) (5/15) Installing libatomic (6.4.0-r9) (6/15) Installing pkgconf (1.5.3-r0) (7/15) Installing libgcc (6.4.0-r9) (8/15) Installing mpfr3 (3.1.5-r1) (9/15) Installing mpc1 (1.0.3-r1) (10/15) Installing libstdc++ (6.4.0-r9) (11/15) Installing gcc (6.4.0-r9) (12/15) Installing python3 (3.6.6-r0) (13/15) Installing python3-dev (3.6.6-r0) (14/15) Installing musl-dev (1.1.19-r10) (15/15) Installing build-deps (0) Executing busybox-1.28.4-r2.trigger OK: 176 MiB in 48 packages (1/7) Installing libressl-dev (2.7.4-r0) (2/7) Installing db (5.3.28-r0) (3/7) Installing libsasl (2.1.26-r14) (4/7) Installing libldap (2.4.46-r0) (5/7) Installing libpq (10.5-r0) (6/7) Installing postgresql-libs (10.5-r0) (7/7) Installing postgresql-dev (10.5-r0) Executing busybox-1.28.4-r2.trigger OK: 203 MiB in 55 packages (1/42) Installing libpng (1.6.34-r1) (2/42) Installing freetype (2.9.1-r1) (3/42) Installing zlib-dev (1.2.11-r1) (4/42) Installing libpng-dev (1.6.34-r1) (5/42) Installing freetype-dev (2.9.1-r1) (6/42) Installing libjpeg-turbo (1.5.3-r4) (7/42) Installing libjpeg-turbo-dev (1.5.3-r4) (8/42) Installing jpeg-dev (8-r6) (9/42) Installing tiff (4.0.10-r0) (10/42) Installing tiff-dev (4.0.10-r0) (11/42) Installing lcms2 (2.9-r1) (12/42) Installing lcms2-dev (2.9-r1) (13/42) Installing openjpeg (2.3.0-r1) (14/42) Installing openjpeg-dev (2.3.0-r1) (15/42) Installing tcl (8.6.7-r0) (16/42) Installing tcl-dev (8.6.7-r0) (17/42) Installing libxau (1.0.8-r2) (18/42) Installing xproto (7.0.31-r1) (19/42) Installing libxau-dev (1.0.8-r2) (20/42) Installing xcb-proto (1.13-r2) (21/42) Installing libbsd (0.8.6-r2) (22/42) Installing libxdmcp (1.1.2-r4) (23/42) Installing libxcb (1.13-r2) (24/42) Installing libpthread-stubs (0.3-r5) (25/42) Installing libxdmcp-dev (1.1.2-r4) (26/42) Installing libxcb-dev (1.13-r2) (27/42) Installing xextproto (7.3.0-r2) (28/42) Installing xf86bigfontproto-dev (1.2.0-r5) (29/42) Installing xtrans (1.3.5-r1) (30/42) Installing inputproto (2.3.2-r1) (31/42) Installing libx11 (1.6.6-r0) (32/42) Installing kbproto (1.0.7-r2) (33/42) Installing libx11-dev (1.6.6-r0) (34/42) Installing libxrender (0.9.10-r2) (35/42) Installing fontconfig (2.12.6-r1) (36/42) Installing libxft (2.3.2-r2) (37/42) Installing expat-dev (2.2.5-r0) (38/42) Installing fontconfig-dev (2.12.6-r1) (39/42) Installing renderproto (0.11.1-r4) (40/42) Installing libxrender-dev (0.9.10-r2) (41/42) Installing libxft-dev (2.3.2-r2) (42/42) Installing tk-dev (8.6.6-r2) Executing busybox-1.28.4-r2.trigger OK: 234 MiB in 97 packages (1/4) Installing libffi-dev (3.2.1-r4) (2/4) Installing py-cffi (1.10.0-r0) (3/4) Installing py3-cparser (2.18-r0) (4/4) Installing py3-cffi (1.10.0-r0) OK: 236 MiB in 101 packages (1/3) Installing libunistring (0.9.7-r0) (2/3) Installing libxml2 (2.9.8-r1) (3/3) Installing gettext (0.19.8.1-r2) Executing busybox-1.28.4-r2.trigger OK: 241 MiB in 104 packages (1/2) Installing libedit (20170329.3.1-r3) (2/2) Installing postgresql-client (10.5-r0) Executing busybox-1.28.4-r2.trigger OK: 243 MiB in 106 packages (1/1) Installing py3-setuptools (39.1.0-r0) Executing busybox-1.28.4-r2.trigger OK: 246 MiB in 107 packages Removing intermediate container b8870536a19f ---> cbb892c34f43 Step 4/13 : COPY ./requirements /requirements ---> 0327941624eb Step 5/13 : RUN pip install -r /requirements/local.txt ---> Running in 235139eeb281 /usr/local/lib/python3.6/site-packages/pip/_internal/req/req_file.py:184: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options. cmdoptions.check_install_build_global(options, opts) Collecting pytz==2018.9 (from -r /requirements/./base.txt (line 1)) Downloading https://files.pythonhosted.org/packages/af/be/6c59e30e208a5f28da85751b93ec7b97e4612268bb054d0dff396e758a90/pytz-2018.9.tar.gz (310kB) Collecting python-slugify==2.0.1 (from -r /requirements/./base.txt (line 2)) Downloading https://files.pythonhosted.org/packages/1f/9c/8b07d625e9c9df567986d887f0375075abb1923e49d074a7803cd1527dae/python-slugify-2.0.1.tar.gz Collecting Pillow==5.4.1 (from -r /requirements/./base.txt (line 3)) Downloading https://files.pythonhosted.org/packages/3c/7e/443be24431324bd34d22dd9d11cc845d995bcd3b500676bcf23142756975/Pillow-5.4.1.tar.gz (16.0MB) Collecting rcssmin==1.0.6 (from -r /requirements/./base.txt (line 4)) Downloading https://files.pythonhosted.org/packages/e2/5f/852be8aa80d1c24de9b030cdb6532bc7e7a1c8461554f6edbe14335ba890/rcssmin-1.0.6.tar.gz (582kB) Collecting argon2-cffi==19.1.0 (from -r /requirements/./base.txt (line 5)) Downloading https://files.pythonhosted.org/packages/aa/bb/d620acb83d6e7d0a1f896557524b85e058500bd858ee814d467428718811/argon2_cffi-19.1.0.tar.gz (1.8MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Collecting redis<3,>=2.10.6 (from -r /requirements/./base.txt (line 6)) Downloading https://files.pythonhosted.org/packages/09/8d/6d34b75326bf96d4139a2ddd8e74b80840f800a0a79f9294399e212cb9a7/redis-2.10.6.tar.gz (97kB) Collecting setuptools>=40.7.1 (from -r /requirements/./base.txt (line 7)) Using cached https://files.pythonhosted.org/packages/3b/17/81a4ab4c94e9c78f98dfaad0208994129213089361dc53a7cd8de177d1e3/setuptools-40.7.1.zip Collecting django==2.0.10 (from -r /requirements/./base.txt (line 11)) Downloading https://files.pythonhosted.org/packages/02/1f/3766ba3a7f2356ba9816f8e4eb82168fd0233f1b63f1ce52cd57b15acd6a/Django-2.0.10.tar.gz (8.0MB) Collecting django-environ==0.4.5 (from -r /requirements/./base.txt (line 12)) Downloading https://files.pythonhosted.org/packages/a5/b4/22015ec543bc33a68885eb1244d7928d851d7430d30372fb2c046a65e947/django-environ-0.4.5.tar.gz Collecting django-model-utils==3.1.2 (from -r /requirements/./base.txt (line 13)) Downloading https://files.pythonhosted.org/packages/fc/67/42c8e6240ca7eec0f242cd6ea12598f7f212bafef6b40f0e8b0783617200/django-model-utils-3.1.2.tar.gz Collecting django-allauth==0.38.0 (from -r /requirements/./base.txt (line 14)) Downloading https://files.pythonhosted.org/packages/69/b3/7edc977e66ef76fe740f16552f65c1a043a944227fb6063327b31cde2573/django-allauth-0.38.0.tar.gz (511kB) Collecting django-crispy-forms==1.7.2 (from -r /requirements/./base.txt (line 15)) Downloading https://files.pythonhosted.org/packages/be/ff/225a8ebc3c81705135b64185e395cfc11915fb17105956b0bf2e0c9410ca/django-crispy-forms-1.7.2.tar.gz (53kB) Collecting django-compressor==2.2 (from -r /requirements/./base.txt (line 16)) Downloading https://files.pythonhosted.org/packages/82/76/1355459f90714517c52f264aa7245b52e59a273ec16e8f8d505fa6c342f8/django_compressor-2.2.tar.gz (105kB) Collecting django-redis==4.10.0 (from -r /requirements/./base.txt (line 17)) Downloading https://files.pythonhosted.org/packages/18/de/27f2606f33a95cf5542fb819d0ed0663b1c2b1299e53cff4a0893a1b8df5/django-redis-4.10.0.tar.gz (59kB) Collecting djangorestframework==3.9.0 (from -r /requirements/./base.txt (line 20)) Downloading https://files.pythonhosted.org/packages/3f/78/0b8628bb2e3540177c6fad2fe05321b5b6416244a104d586f4f6b64c17dc/djangorestframework-3.9.0.tar.gz (802kB) Collecting coreapi==2.3.3 (from -r /requirements/./base.txt (line 21)) Downloading https://files.pythonhosted.org/packages/ca/f2/5fc0d91a0c40b477b016c0f77d9d419ba25fc47cc11a96c825875ddce5a6/coreapi-2.3.3.tar.gz Collecting Werkzeug==0.14.1 (from -r /requirements/local.txt (line 3)) Downloading https://files.pythonhosted.org/packages/9f/08/a3bb1c045ec602dc680906fc0261c267bed6b3bb4609430aff92c3888ec8/Werkzeug-0.14.1.tar.gz (1.2MB) Collecting ipdb==0.11 (from -r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/80/fe/4564de08f174f3846364b3add8426d14cebee228f741c27e702b2877e85b/ipdb-0.11.tar.gz Collecting Sphinx==1.8.3 (from -r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/4d/ed/4595274b5c9ce53a768cc0804ef65fd6282c956b93919a969e98d53894e4/Sphinx-1.8.3.tar.gz (5.8MB) Collecting psycopg2==2.7.4 (from -r /requirements/local.txt (line 6)) Downloading https://files.pythonhosted.org/packages/74/83/51580322ed0e82cba7ad8e0af590b8fb2cf11bd5aaa1ed872661bd36f462/psycopg2-2.7.4.tar.gz (425kB) Collecting mypy==0.660 (from -r /requirements/local.txt (line 10)) Downloading https://files.pythonhosted.org/packages/a4/f6/032e015285905243cff94625367c7a20ba0acbae8e802b740c8a876b2f39/mypy-0.660.tar.gz (1.7MB) Collecting pytest==4.1.1 (from -r /requirements/local.txt (line 11)) Downloading https://files.pythonhosted.org/packages/e2/1d/5aaae6a77d9699ebcc5cbed574c28272371b8915073a126a9ead961c8f6c/pytest-4.1.1.tar.gz (903kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Collecting pytest-sugar==0.9.2 (from -r /requirements/local.txt (line 12)) Downloading https://files.pythonhosted.org/packages/55/59/f02f78d1c80f7e03e23177f60624c8106d4f23d124c921df103f65692464/pytest-sugar-0.9.2.tar.gz Collecting flake8==3.6.0 (from -r /requirements/local.txt (line 16)) Downloading https://files.pythonhosted.org/packages/d0/27/c0d1274b86a8f71ec1a6e4d4c1cfe3b20d6f95b090ec7545320150952c93/flake8-3.6.0.tar.gz (144kB) Collecting coverage==4.5.2 (from -r /requirements/local.txt (line 17)) Downloading https://files.pythonhosted.org/packages/fb/af/ce7b0fe063ee0142786ee53ad6197979491ce0785567b6d8be751d2069e8/coverage-4.5.2.tar.gz (384kB) Collecting factory-boy==2.11.1 (from -r /requirements/local.txt (line 21)) Downloading https://files.pythonhosted.org/packages/d5/b4/649fc4bfd0daf308b5cd10bfa51c50bfa4c4c79e091ed301aca69ef6780e/factory_boy-2.11.1.tar.gz (43kB) Collecting django-debug-toolbar==1.11 (from -r /requirements/local.txt (line 23)) Downloading https://files.pythonhosted.org/packages/a2/77/27b2c7ed590a98068cb1990a815741e19f47b22513b0f5a36a12dff6adb6/django-debug-toolbar-1.11.tar.gz (108kB) Collecting django-extensions==2.1.4 (from -r /requirements/local.txt (line 24)) Downloading https://files.pythonhosted.org/packages/9d/36/d1d067b2614235f0dedb8b7330597ff2bf21d4f3762e9c245b0c5e0af17c/django-extensions-2.1.4.tar.gz (484kB) Collecting django-coverage-plugin==1.6.0 (from -r /requirements/local.txt (line 25)) Downloading https://files.pythonhosted.org/packages/8c/87/8e041efad53b3934853c8a899f09a69f1ac73fcd9cc1449053079910d1fb/django_coverage_plugin-1.6.0.tar.gz Collecting pytest-django==3.4.5 (from -r /requirements/local.txt (line 26)) Downloading https://files.pythonhosted.org/packages/e4/67/bb387de8e650d24dc689b6e23c929921cbc365236749a4d9ea75e30b9e4b/pytest-django-3.4.5.tar.gz (67kB) Collecting Unidecode>=0.04.16 (from python-slugify==2.0.1->-r /requirements/./base.txt (line 2)) Downloading https://files.pythonhosted.org/packages/9b/d8/c1b658ed7ff6e63a745eda483d7d917eb63a79c59fcb422469b85ff47e94/Unidecode-1.0.23.tar.gz (210kB) Collecting six (from argon2-cffi==19.1.0->-r /requirements/./base.txt (line 5)) Downloading https://files.pythonhosted.org/packages/dd/bf/4138e7bfb757de47d1f4b6994648ec67a51efe58fa907c1e11e350cddfca/six-1.12.0.tar.gz Collecting cffi>=1.0.0 (from argon2-cffi==19.1.0->-r /requirements/./base.txt (line 5)) Downloading https://files.pythonhosted.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz (438kB) Collecting python3-openid>=3.0.8 (from django-allauth==0.38.0->-r /requirements/./base.txt (line 14)) Downloading https://files.pythonhosted.org/packages/9e/75/83541390a7fa0bc9083be88980e2fbd574f927a53a0e60cb61f0c28e83b6/python3-openid-3.1.0.tar.gz (299kB) Collecting requests-oauthlib>=0.3.0 (from django-allauth==0.38.0->-r /requirements/./base.txt (line 14)) Downloading https://files.pythonhosted.org/packages/de/a2/f55312dfe2f7a344d0d4044fdfae12ac8a24169dc668bd55f72b27090c32/requests-oauthlib-1.2.0.tar.gz (83kB) Collecting requests (from django-allauth==0.38.0->-r /requirements/./base.txt (line 14)) Downloading https://files.pythonhosted.org/packages/52/2c/514e4ac25da2b08ca5a464c50463682126385c4272c18193876e91f4bc38/requests-2.21.0.tar.gz (111kB) Collecting django-appconf>=1.0 (from django-compressor==2.2->-r /requirements/./base.txt (line 16)) Downloading https://files.pythonhosted.org/packages/34/b9/d07195652ab494b026f7cb0341dd6e5f2e6e39be177abe05e2cec8bd46e4/django-appconf-1.0.2.tar.gz Collecting rjsmin==1.0.12 (from django-compressor==2.2->-r /requirements/./base.txt (line 16)) Downloading https://files.pythonhosted.org/packages/10/9c/2c45f57d43258b05bf33cf8f6c8161ea5abf8b4776a5c59d12646727cd98/rjsmin-1.0.12.tar.gz (446kB) Collecting coreschema (from coreapi==2.3.3->-r /requirements/./base.txt (line 21)) Downloading https://files.pythonhosted.org/packages/93/08/1d105a70104e078718421e6c555b8b293259e7fc92f7e9a04869947f198f/coreschema-0.0.4.tar.gz Collecting itypes (from coreapi==2.3.3->-r /requirements/./base.txt (line 21)) Downloading https://files.pythonhosted.org/packages/d3/24/5e511590f95582efe64b8ad2f6dadd85c5563c9dcf40171ea5a70adbf5a9/itypes-1.1.0.tar.gz Collecting uritemplate (from coreapi==2.3.3->-r /requirements/./base.txt (line 21)) Downloading https://files.pythonhosted.org/packages/cd/db/f7b98cdc3f81513fb25d3cbe2501d621882ee81150b745cdd1363278c10a/uritemplate-3.0.0.tar.gz Collecting ipython>=5.0.0 (from ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/42/bb/0ed1fb1d57d697326f9e9b827d9a74b81dee56031ed7c252bc716195ad7a/ipython-7.2.0.tar.gz (5.1MB) Collecting Jinja2>=2.3 (from Sphinx==1.8.3->-r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/56/e6/332789f295cf22308386cf5bbd1f4e00ed11484299c5d7383378cf48ba47/Jinja2-2.10.tar.gz (261kB) Collecting Pygments>=2.0 (from Sphinx==1.8.3->-r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/64/69/413708eaf3a64a6abb8972644e0f20891a55e621c6759e2c3f3891e05d63/Pygments-2.3.1.tar.gz (3.1MB) Collecting docutils>=0.11 (from Sphinx==1.8.3->-r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-0.14.tar.gz (1.7MB) Collecting snowballstemmer>=1.1 (from Sphinx==1.8.3->-r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/20/6b/d2a7cb176d4d664d94a6debf52cd8dbae1f7203c8e42426daa077051d59c/snowballstemmer-1.2.1.tar.gz (49kB) Collecting babel!=2.0,>=1.3 (from Sphinx==1.8.3->-r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/be/cc/9c981b249a455fa0c76338966325fc70b7265521bad641bf2932f77712f4/Babel-2.6.0.tar.gz (8.0MB) Collecting alabaster<0.8,>=0.7 (from Sphinx==1.8.3->-r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/cc/b4/ed8dcb0d67d5cfb7f83c4d5463a7614cb1d078ad7ae890c9143edebbf072/alabaster-0.7.12.tar.gz Collecting imagesize (from Sphinx==1.8.3->-r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/41/f5/3cf63735d54aa9974e544aa25858d8f9670ac5b4da51020bbfc6aaade741/imagesize-1.1.0.tar.gz (1.3MB) Collecting packaging (from Sphinx==1.8.3->-r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/16/51/d72654dbbaa4a4ffbf7cb0ecd7d12222979e0a660bf3f42acc47550bf098/packaging-19.0.tar.gz (48kB) Collecting sphinxcontrib-websupport (from Sphinx==1.8.3->-r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/07/7a/e74b06dce85555ffee33e1d6b7381314169ebf7e31b62c18fcb2815626b7/sphinxcontrib-websupport-1.1.0.tar.gz (587kB) Collecting typed-ast<1.3.0,>=1.2.0 (from mypy==0.660->-r /requirements/local.txt (line 10)) Downloading https://files.pythonhosted.org/packages/00/be/c3769a5d6a179c42eba04186dc7efeb165edf92f7b1582ccfe81cb17d7f9/typed-ast-1.2.0.tar.gz (202kB) Collecting mypy_extensions<0.5.0,>=0.4.0 (from mypy==0.660->-r /requirements/local.txt (line 10)) Downloading https://files.pythonhosted.org/packages/c2/92/3cc05d1206237d54db7b2565a58080a909445330b4f90a6436302a49f0f8/mypy_extensions-0.4.1.tar.gz Collecting more-itertools>=4.0.0 (from pytest==4.1.1->-r /requirements/local.txt (line 11)) Downloading https://files.pythonhosted.org/packages/dd/26/30fc0d541d9fdf55faf5ba4b0fd68f81d5bd2447579224820ad525934178/more-itertools-5.0.0.tar.gz (67kB) Collecting pluggy>=0.7 (from pytest==4.1.1->-r /requirements/local.txt (line 11)) Downloading https://files.pythonhosted.org/packages/38/e1/83b10c17688af7b2998fa5342fec58ecbd2a5a7499f31e606ae6640b71ac/pluggy-0.8.1.tar.gz (53kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Collecting attrs>=17.4.0 (from pytest==4.1.1->-r /requirements/local.txt (line 11)) Downloading https://files.pythonhosted.org/packages/0f/9e/26b1d194aab960063b266170e53c39f73ea0d0d3f5ce23313e0ec8ee9bdf/attrs-18.2.0.tar.gz (116kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Collecting atomicwrites>=1.0 (from pytest==4.1.1->-r /requirements/local.txt (line 11)) Downloading https://files.pythonhosted.org/packages/ac/ed/a311712ef6b4355035489f665e63e1a73f9eb371929e3c98e5efd451069e/atomicwrites-1.2.1.tar.gz Collecting py>=1.5.0 (from pytest==4.1.1->-r /requirements/local.txt (line 11)) Downloading https://files.pythonhosted.org/packages/c7/fa/eb6dd513d9eb13436e110aaeef9a1703437a8efa466ce6bb2ff1d9217ac7/py-1.7.0.tar.gz (202kB) Collecting termcolor>=1.1.0 (from pytest-sugar==0.9.2->-r /requirements/local.txt (line 12)) Downloading https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz Collecting pyflakes<2.1.0,>=2.0.0 (from flake8==3.6.0->-r /requirements/local.txt (line 16)) Downloading https://files.pythonhosted.org/packages/92/9e/386c0d9deef14996eb90d9deebbcb9d3ceb70296840b09615cb61b2ae231/pyflakes-2.0.0.tar.gz (49kB) Collecting pycodestyle<2.5.0,>=2.4.0 (from flake8==3.6.0->-r /requirements/local.txt (line 16)) Downloading https://files.pythonhosted.org/packages/28/ad/cae9654d7fd64eb3d2ab2c44c9bf8dc5bd4fb759625beab99532239aa6e8/pycodestyle-2.4.0.tar.gz (96kB) Collecting mccabe<0.7.0,>=0.6.0 (from flake8==3.6.0->-r /requirements/local.txt (line 16)) Downloading https://files.pythonhosted.org/packages/06/18/fa675aa501e11d6d6ca0ae73a101b2f3571a565e0f7d38e062eec18a91ee/mccabe-0.6.1.tar.gz Collecting Faker>=0.7.0 (from factory-boy==2.11.1->-r /requirements/local.txt (line 21)) Downloading https://files.pythonhosted.org/packages/e6/e1/e6cf72669ebc0c9631aeca89c79e832a2671bdf76c5754aef3bb32027342/Faker-1.0.2.tar.gz (933kB) Collecting sqlparse>=0.2.0 (from django-debug-toolbar==1.11->-r /requirements/local.txt (line 23)) Downloading https://files.pythonhosted.org/packages/79/3c/2ad76ba49f9e3d88d2b58e135b7821d93741856d1fe49970171f73529303/sqlparse-0.2.4.tar.gz (61kB) Collecting pycparser (from cffi>=1.0.0->argon2-cffi==19.1.0->-r /requirements/./base.txt (line 5)) Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB) Collecting defusedxml (from python3-openid>=3.0.8->django-allauth==0.38.0->-r /requirements/./base.txt (line 14)) Downloading https://files.pythonhosted.org/packages/74/ba/4ba4e89e21b5a2e267d80736ea674609a0a33cc4435a6d748ef04f1f9374/defusedxml-0.5.0.tar.gz (60kB) Collecting oauthlib>=3.0.0 (from requests-oauthlib>=0.3.0->django-allauth==0.38.0->-r /requirements/./base.txt (line 14)) Downloading https://files.pythonhosted.org/packages/ec/90/882f43232719f2ebfbdbe8b7c57fc9642a25b3df30cb70a3701ea22622de/oauthlib-3.0.1.tar.gz (149kB) Collecting chardet<3.1.0,>=3.0.2 (from requests->django-allauth==0.38.0->-r /requirements/./base.txt (line 14)) Downloading https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz (1.9MB) Collecting idna<2.9,>=2.5 (from requests->django-allauth==0.38.0->-r /requirements/./base.txt (line 14)) Downloading https://files.pythonhosted.org/packages/ad/13/eb56951b6f7950cadb579ca166e448ba77f9d24efc03edd7e55fa57d04b7/idna-2.8.tar.gz (174kB) Collecting urllib3<1.25,>=1.21.1 (from requests->django-allauth==0.38.0->-r /requirements/./base.txt (line 14)) Downloading https://files.pythonhosted.org/packages/b1/53/37d82ab391393565f2f831b8eedbffd57db5a718216f82f1a8b4d381a1c1/urllib3-1.24.1.tar.gz (229kB) Collecting certifi>=2017.4.17 (from requests->django-allauth==0.38.0->-r /requirements/./base.txt (line 14)) Downloading https://files.pythonhosted.org/packages/55/54/3ce77783acba5979ce16674fc98b1920d00b01d337cfaaf5db22543505ed/certifi-2018.11.29.tar.gz (153kB) Collecting jedi>=0.10 (from ipython>=5.0.0->ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/e4/83/4c05db437252694660c972b5374b35a68a8a0a8cd012dc95e5fd4d7e71b0/jedi-0.13.2.tar.gz (365kB) Collecting decorator (from ipython>=5.0.0->ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/c4/26/b48aaa231644bc875bb348e162d156edb18b994da900a10f4493ea995a2f/decorator-4.3.2.tar.gz Collecting pickleshare (from ipython>=5.0.0->ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/d8/b6/df3c1c9b616e9c0edbc4fbab6ddd09df9535849c64ba51fcb6531c32d4d8/pickleshare-0.7.5.tar.gz Collecting traitlets>=4.2 (from ipython>=5.0.0->ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/a5/98/7f5ef2fe9e9e071813aaf9cb91d1a732e0a68b6c44a32b38cb8e14c3f069/traitlets-4.3.2.tar.gz (88kB) Collecting prompt_toolkit<2.1.0,>=2.0.0 (from ipython>=5.0.0->ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/0d/f7/571edf48b2e11678fa21245369678815a965bac1d96e09fa60fe365ff79d/prompt_toolkit-2.0.8.tar.gz (347kB) Collecting backcall (from ipython>=5.0.0->ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/84/71/c8ca4f5bb1e08401b916c68003acf0a0655df935d74d93bf3f3364b310e0/backcall-0.1.0.tar.gz Collecting pexpect (from ipython>=5.0.0->ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/89/43/07d07654ee3e25235d8cea4164cdee0ec39d1fda8e9203156ebe403ffda4/pexpect-4.6.0.tar.gz (148kB) Collecting MarkupSafe>=0.23 (from Jinja2>=2.3->Sphinx==1.8.3->-r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/ac/7e/1b4c2e05809a4414ebce0892fe1e32c14ace86ca7d50c70f00979ca9b3a3/MarkupSafe-1.1.0.tar.gz Collecting pyparsing>=2.0.2 (from packaging->Sphinx==1.8.3->-r /requirements/local.txt (line 5)) Downloading https://files.pythonhosted.org/packages/b9/b8/6b32b3e84014148dcd60dd05795e35c2e7f4b72f918616c61fdce83d27fc/pyparsing-2.3.1.tar.gz (596kB) Collecting python-dateutil>=2.4 (from Faker>=0.7.0->factory-boy==2.11.1->-r /requirements/local.txt (line 21)) Downloading https://files.pythonhosted.org/packages/0e/01/68747933e8d12263d41ce08119620d9a7e5eb72c876a3442257f74490da0/python-dateutil-2.7.5.tar.gz (316kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Collecting text-unidecode==1.2 (from Faker>=0.7.0->factory-boy==2.11.1->-r /requirements/local.txt (line 21)) Downloading https://files.pythonhosted.org/packages/f0/a2/40adaae7cbdd007fb12777e550b5ce344b56189921b9f70f37084c021ca4/text-unidecode-1.2.tar.gz (76kB) Collecting parso>=0.3.0 (from jedi>=0.10->ipython>=5.0.0->ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/22/50/fa4ffb9b7e0b52f0bea19e5fcc9759eda369efa43a4e4a534a5cf9a00e71/parso-0.3.2.tar.gz (387kB) Collecting ipython_genutils (from traitlets>=4.2->ipython>=5.0.0->ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/e8/69/fbeffffc05236398ebfcfb512b6d2511c622871dca1746361006da310399/ipython_genutils-0.2.0.tar.gz Collecting wcwidth (from prompt_toolkit<2.1.0,>=2.0.0->ipython>=5.0.0->ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/55/11/e4a2bb08bb450fdbd42cc709dd40de4ed2c472cf0ccb9e64af22279c5495/wcwidth-0.1.7.tar.gz Collecting ptyprocess>=0.5 (from pexpect->ipython>=5.0.0->ipdb==0.11->-r /requirements/local.txt (line 4)) Downloading https://files.pythonhosted.org/packages/7d/2d/e4b8733cf79b7309d84c9081a4ab558c89d8c89da5961bf4ddb050ca1ce0/ptyprocess-0.6.0.tar.gz (70kB) Installing build dependencies: started Installing build dependencies: still running... Installing build dependencies: finished with status 'error' Complete output from command /usr/local/bin/python /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-is_r3mp9/overlay --no-warn-script-location --no-binary :all:,psycopg2 --only-binary :none: -i https://pypi.org/simple -- flit: Collecting flit Downloading https://files.pythonhosted.org/packages/6a/55/a25505e3b3f5d804d1a0b6a64c582f4a264697c94862ccf71b8a1c62d16d/flit-1.2.1.tar.gz (91kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Collecting pytoml (from flit) Using cached https://files.pythonhosted.org/packages/35/35/da1123673c54b6d701453fcd20f751d6a1fae43339b3993ae458875576e4/pytoml-0.1.20.tar.gz Collecting requests (from flit) Using cached https://files.pythonhosted.org/packages/52/2c/514e4ac25da2b08ca5a464c50463682126385c4272c18193876e91f4bc38/requests-2.21.0.tar.gz Collecting docutils (from flit) Using cached https://files.pythonhosted.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-0.14.tar.gz Collecting chardet<3.1.0,>=3.0.2 (from requests->flit) Using cached https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz Collecting idna<2.9,>=2.5 (from requests->flit) Using cached https://files.pythonhosted.org/packages/ad/13/eb56951b6f7950cadb579ca166e448ba77f9d24efc03edd7e55fa57d04b7/idna-2.8.tar.gz Collecting urllib3<1.25,>=1.21.1 (from requests->flit) Using cached https://files.pythonhosted.org/packages/b1/53/37d82ab391393565f2f831b8eedbffd57db5a718216f82f1a8b4d381a1c1/urllib3-1.24.1.tar.gz Collecting certifi>=2017.4.17 (from requests->flit) Using cached https://files.pythonhosted.org/packages/55/54/3ce77783acba5979ce16674fc98b1920d00b01d337cfaaf5db22543505ed/certifi-2018.11.29.tar.gz Skipping bdist_wheel for flit, due to binaries being disabled for it. Skipping bdist_wheel for pytoml, due to binaries being disabled for it. Skipping bdist_wheel for requests, due to binaries being disabled for it. Skipping bdist_wheel for docutils, due to binaries being disabled for it. Skipping bdist_wheel for chardet, due to binaries being disabled for it. Skipping bdist_wheel for idna, due to binaries being disabled for it. Skipping bdist_wheel for urllib3, due to binaries being disabled for it. Skipping bdist_wheel for certifi, due to binaries being disabled for it. Installing collected packages: pytoml, chardet, idna, urllib3, certifi, requests, docutils, flit Running setup.py install for pytoml: started Running setup.py install for pytoml: finished with status 'done' Running setup.py install for chardet: started Running setup.py install for chardet: finished with status 'done' Running setup.py install for idna: started Running setup.py install for idna: finished with status 'done' Running setup.py install for urllib3: started Running setup.py install for urllib3: finished with status 'done' Running setup.py install for certifi: started Running setup.py install for certifi: finished with status 'done' Running setup.py install for requests: started Running setup.py install for requests: finished with status 'done' Running setup.py install for docutils: started Running setup.py install for docutils: finished with status 'done' Running setup.py install for flit: started Running setup.py install for flit: finished with status 'error' Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-q4l_gf_b/flit/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-brjtzly4/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-is_r3mp9/overlay --compile: Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'setuptools'

  ----------------------------------------

Command "/usr/local/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-q4l_gf_b/flit/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-brjtzly4/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-is_r3mp9/overlay --compile" failed with error code 1 in /tmp/pip-install-q4l_gf_b/flit/


Command "/usr/local/bin/python /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-is_r3mp9/overlay --no-warn-script-location --no-binary :all:,psycopg2 --only-binary :none: -i https://pypi.org/simple -- flit" failed with error code 1 in None ERROR: Service 'django' failed to build: The command '/bin/sh -c pip install -r /requirements/local.txt' returned a non-zero code: 1

What should've happened instead?

Steps to reproduce

//: # Windows 10, Docker

bigEvilBanana commented 5 years ago

The same error.

      Running setup.py install for flit: finished with status 'error'
      Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-bv_uywvi/flit/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-u3e0w8z7/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-f4qcb4rr/overlay --compile:
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
      ModuleNotFoundError: No module named 'setuptools'

Successful build on my local machine, but when I run in on gitlab ci it fail to build with this error. Tried to add apk add py3-setuptools to Dockerfile, but didn't help

-- Just tried to build production.yml and it works

bigEvilBanana commented 5 years ago

Okay, I fixed it by editing requirements.

The issue was that in the base.txt there is a dependency on rcssmin and that dependency is setup to be installed without-c-extensions: rcssmin==1.0.6 --install-option="--without-c-extensions"

Any time --install-option (or --build-options or --global-options) are passed, that disables all use of wheels. I bet you saw that warning at your logs:

/usr/local/lib/python3.6/site-packages/pip/_internal/req/req_file.py:184: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
  cmdoptions.check_install_build_global(options, opts)

So I just commented that option rcssmin==1.0.6 #--install-option="--without-c-extensions" and it works now. Hope that will help someone.

The question is this a bug or not? @pydanny what do you think

browniebroke commented 5 years ago

What options did you choose when generating the project? It's a bit tricky to reproduce without this information...

Possibly related to #1677 #1554

browniebroke commented 5 years ago

So it seems to be the combination of use_docker=y and windows=y. The question use_windows is for bare metal development on Windows, which implies installing a few things differently, including rcssmin:

https://github.com/pydanny/cookiecutter-django/blob/eb85627d1a30ea3417ec42b034bce41f71d3f0cd/%7B%7Bcookiecutter.project_slug%7D%7D/requirements/base.txt#L5

However, if Docker is used, this difference is not a problem anymore. A simple fix is to change this condition to also consider Docker in that line.