Running with gitlab-runner 17.1.0 (fe451d5a)
on sd-134519-docker 15451e3f, system ID: s_7d2466ee7b19
section_start:1729003734:prepare_executor
Preparing the "docker" executor
Using Docker executor with image python:3 ...
Starting service couchdb:3...
Pulling docker image couchdb:3 ...
Using docker image sha256:bfc65a758ed063bbfb136bf9388d27ac24c8d9d37a80798ee4abd25d7b386c55 for couchdb:3 with digest couchdb@sha256:25c1e60acdc8aef9b55302d206f532ed7b8de30c5fce7a844689109e1a246d94 ...
Waiting for services to be up and running (timeout 30 seconds)...
Pulling docker image python:3 ...
Using docker image sha256:97fc9ec41404bf3b8395f559c4fa381e20fa303f1fb56877c073f9af9e05507f for python:3 with digest python@sha256:45803c375b95ea33f482e53a461eca8f247617667d703660a06ccf5eb3d05326 ...
section_end:1729003755:prepare_executor
section_start:1729003755:prepare_script
Preparing environment
Running on runner-15451e3f-project-38-concurrent-0 via sd-134519...
section_end:1729003757:prepare_script
section_start:1729003757:get_sources
Getting source from Git repository
Fetching changes...
Reinitialized existing Git repository in /builds/cooperatic-foodcoops/third-party/.git/
Checking out 080b68ae as detached HEAD (ref is migration-v12)...
Removing node_modules/
Skipping Git submodules setup
section_end:1729003758:get_sources
section_start:1729003758:restore_cache
Restoring cache
Checking cache for default...
No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted.
Successfully extracted cache
section_end:1729003760:restore_cache
section_start:1729003760:step_script
Executing "step_script" stage of the job script
Using docker image sha256:97fc9ec41404bf3b8395f559c4fa381e20fa303f1fb56877c073f9af9e05507f for python:3 with digest python@sha256:45803c375b95ea33f482e53a461eca8f247617667d703660a06ccf5eb3d05326 ...
$ ./scripts/ci/unit_setup.sh
Requirement already satisfied: pip in /usr/local/lib/python3.13/site-packages (24.2)
Collecting setuptools
Using cached setuptools-75.1.0-py3-none-any.whl.metadata (6.9 kB)
Using cached setuptools-75.1.0-py3-none-any.whl (1.2 MB)
Installing collected packages: setuptools
Successfully installed setuptools-75.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
Collecting Django<3,>=2.2 (from -r requirements.txt (line 1))
Using cached Django-2.2.28-py3-none-any.whl.metadata (3.6 kB)
Collecting django-cors-headers (from -r requirements.txt (line 2))
Downloading django_cors_headers-4.5.0-py3-none-any.whl.metadata (16 kB)
Collecting couchdb (from -r requirements.txt (line 3))
Using cached CouchDB-1.2-py2.py3-none-any.whl.metadata (930 bytes)
Collecting python-dateutil (from -r requirements.txt (line 4))
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting requests (from -r requirements.txt (line 5))
Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting pymysql (from -r requirements.txt (line 6))
Using cached PyMySQL-1.1.1-py3-none-any.whl.metadata (4.4 kB)
Collecting openpyxl==3.0.10 (from -r requirements.txt (line 7))
Using cached openpyxl-3.0.10-py2.py3-none-any.whl.metadata (2.4 kB)
Collecting reportlab (from -r requirements.txt (line 8))
Downloading reportlab-4.2.5-py3-none-any.whl.metadata (1.5 kB)
Collecting argon2-cffi (from -r requirements.txt (line 9))
Using cached argon2_cffi-23.1.0-py3-none-any.whl.metadata (5.2 kB)
Collecting et-xmlfile (from openpyxl==3.0.10->-r requirements.txt (line 7))
Using cached et_xmlfile-1.1.0-py3-none-any.whl.metadata (1.8 kB)
Collecting pytz (from Django<3,>=2.2->-r requirements.txt (line 1))
Using cached pytz-2024.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting sqlparse>=0.2.2 (from Django<3,>=2.2->-r requirements.txt (line 1))
Using cached sqlparse-0.5.1-py3-none-any.whl.metadata (3.9 kB)
Collecting asgiref>=3.6 (from django-cors-headers->-r requirements.txt (line 2))
Using cached asgiref-3.8.1-py3-none-any.whl.metadata (9.3 kB)
INFO: pip is looking at multiple versions of django-cors-headers to determine which version is compatible with other requirements. This could take a while.
Collecting django-cors-headers (from -r requirements.txt (line 2))
Using cached django_cors_headers-4.4.0-py3-none-any.whl.metadata (16 kB)
Using cached django_cors_headers-4.3.1-py3-none-any.whl.metadata (16 kB)
Using cached django_cors_headers-4.3.0-py3-none-any.whl.metadata (16 kB)
Using cached django_cors_headers-4.2.0-py3-none-any.whl.metadata (16 kB)
Using cached django_cors_headers-4.1.0-py3-none-any.whl.metadata (16 kB)
Using cached django_cors_headers-4.0.0-py3-none-any.whl.metadata (16 kB)
Using cached django_cors_headers-3.14.0-py3-none-any.whl.metadata (17 kB)
INFO: pip is still looking at multiple versions of django-cors-headers to determine which version is compatible with other requirements. This could take a while.
Using cached django_cors_headers-3.13.0-py3-none-any.whl.metadata (17 kB)
Using cached django_cors_headers-3.12.0-py3-none-any.whl.metadata (17 kB)
Using cached django_cors_headers-3.11.0-py3-none-any.whl.metadata (15 kB)
Collecting six>=1.5 (from python-dateutil->-r requirements.txt (line 4))
Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting charset-normalizer<4,>=2 (from requests->-r requirements.txt (line 5))
Downloading charset_normalizer-3.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests->-r requirements.txt (line 5))
Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests->-r requirements.txt (line 5))
Using cached urllib3-2.2.3-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests->-r requirements.txt (line 5))
Using cached certifi-2024.8.30-py3-none-any.whl.metadata (2.2 kB)
Collecting pillow>=9.0.0 (from reportlab->-r requirements.txt (line 8))
Downloading pillow-11.0.0-cp313-cp313-manylinux_2_28_x86_64.whl.metadata (9.1 kB)
Collecting chardet (from reportlab->-r requirements.txt (line 8))
Using cached chardet-5.2.0-py3-none-any.whl.metadata (3.4 kB)
Collecting argon2-cffi-bindings (from argon2-cffi->-r requirements.txt (line 9))
Using cached argon2_cffi_bindings-21.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.7 kB)
Collecting cffi>=1.0.1 (from argon2-cffi-bindings->argon2-cffi->-r requirements.txt (line 9))
Downloading cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting pycparser (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->-r requirements.txt (line 9))
Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Using cached openpyxl-3.0.10-py2.py3-none-any.whl (242 kB)
Using cached Django-2.2.28-py3-none-any.whl (7.5 MB)
Using cached django_cors_headers-3.11.0-py3-none-any.whl (12 kB)
Using cached CouchDB-1.2-py2.py3-none-any.whl (67 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Using cached PyMySQL-1.1.1-py3-none-any.whl (44 kB)
Downloading reportlab-4.2.5-py3-none-any.whl (1.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 31.2 MB/s eta 0:00:00
Using cached argon2_cffi-23.1.0-py3-none-any.whl (15 kB)
Using cached certifi-2024.8.30-py3-none-any.whl (167 kB)
Downloading charset_normalizer-3.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (144 kB)
Using cached idna-3.10-py3-none-any.whl (70 kB)
Downloading pillow-11.0.0-cp313-cp313-manylinux_2_28_x86_64.whl (4.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.4/4.4 MB 45.0 MB/s eta 0:00:00
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Using cached sqlparse-0.5.1-py3-none-any.whl (44 kB)
Using cached urllib3-2.2.3-py3-none-any.whl (126 kB)
Using cached argon2_cffi_bindings-21.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (86 kB)
Using cached chardet-5.2.0-py3-none-any.whl (199 kB)
Using cached et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Using cached pytz-2024.2-py2.py3-none-any.whl (508 kB)
Downloading cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (479 kB)
Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Installing collected packages: pytz, couchdb, urllib3, sqlparse, six, pymysql, pycparser, pillow, idna, et-xmlfile, charset-normalizer, chardet, certifi, requests, reportlab, python-dateutil, openpyxl, Django, cffi, django-cors-headers, argon2-cffi-bindings, argon2-cffi
Successfully installed Django-2.2.28 argon2-cffi-23.1.0 argon2-cffi-bindings-21.2.0 certifi-2024.8.30 cffi-1.17.1 chardet-5.2.0 charset-normalizer-3.4.0 couchdb-1.2 django-cors-headers-3.11.0 et-xmlfile-1.1.0 idna-3.10 openpyxl-3.0.10 pillow-11.0.0 pycparser-2.22 pymysql-1.1.1 python-dateutil-2.9.0.post0 pytz-2024.2 reportlab-4.2.5 requests-2.32.3 six-1.16.0 sqlparse-0.5.1 urllib3-2.2.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
$ python manage.py test
Traceback (most recent call last):
File "/builds/cooperatic-foodcoops/third-party/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/django/core/management/__init__.py", line 357, in execute
django.setup()
~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/django/__init__.py", line 16, in setup
from django.urls import set_script_prefix
File "/usr/local/lib/python3.13/site-packages/django/urls/__init__.py", line 1, in <module>
from .base import (
...<3 lines>...
)
File "/usr/local/lib/python3.13/site-packages/django/urls/base.py", line 8, in <module>
from .exceptions import NoReverseMatch, Resolver404
File "/usr/local/lib/python3.13/site-packages/django/urls/exceptions.py", line 1, in <module>
from django.http import Http404
File "/usr/local/lib/python3.13/site-packages/django/http/__init__.py", line 2, in <module>
from django.http.request import (
HttpRequest, QueryDict, RawPostDataException, UnreadablePostError,
)
File "/usr/local/lib/python3.13/site-packages/django/http/request.py", line 14, in <module>
from django.http.multipartparser import MultiPartParser, MultiPartParserError
File "/usr/local/lib/python3.13/site-packages/django/http/multipartparser.py", line 9, in <module>
import cgi
ModuleNotFoundError: No module named 'cgi'
section_end:1729003775:step_script
section_start:1729003775:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1729003776:cleanup_file_variables
ERROR: Job failed: exit code 1