Closed znb closed 3 years ago
OS: macOS 11.3.1 Docker Desktop: 3.3.3 (64133) Docker Engine: 20.10.6
Running docker build -t asvs . on my machine I get the following error:
docker build -t asvs .
=> ERROR [ 9/10] RUN python manage.py makemigrations 0.5s ------ > [ 9/10] RUN python manage.py makemigrations: #14 0.466 Traceback (most recent call last): #14 0.466 File "/usr/lib/python3.9/site-packages/django/apps/config.py", line 244, in create #14 0.466 app_module = import_module(app_name) #14 0.466 File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module #14 0.467 return _bootstrap._gcd_import(name[level:], package, level) #14 0.467 File "<frozen importlib._bootstrap>", line 1030, in _gcd_import #14 0.468 File "<frozen importlib._bootstrap>", line 1007, in _find_and_load #14 0.468 File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked #14 0.468 ModuleNotFoundError: No module named 'requirements' #14 0.468 #14 0.468 During handling of the above exception, another exception occurred: #14 0.468 #14 0.468 Traceback (most recent call last): #14 0.468 File "/app/manage.py", line 15, in <module> #14 0.468 execute_from_command_line(sys.argv) #14 0.468 File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line #14 0.469 utility.execute() #14 0.469 File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 395, in execute #14 0.469 django.setup() #14 0.469 File "/usr/lib/python3.9/site-packages/django/__init__.py", line 24, in setup #14 0.469 apps.populate(settings.INSTALLED_APPS) #14 0.469 File "/usr/lib/python3.9/site-packages/django/apps/registry.py", line 91, in populate #14 0.469 app_config = AppConfig.create(entry) #14 0.469 File "/usr/lib/python3.9/site-packages/django/apps/config.py", line 246, in create #14 0.470 raise ImproperlyConfigured( #14 0.470 django.core.exceptions.ImproperlyConfigured: Cannot import 'requirements'. Check that 'levels.apps.RequirementsConfig.name' is correct. ------ executor failed running [/bin/sh -c python manage.py makemigrations]: exit code: 1
I'm not sure if there's anything else you need.
Fixed with https://github.com/Santandersecurityresearch/asvs/commit/2ffb434f01d5842d4d9e717c29d7f087a803c4f5, thanks @znb
OS: macOS 11.3.1 Docker Desktop: 3.3.3 (64133) Docker Engine: 20.10.6
Running
docker build -t asvs .
on my machine I get the following error:I'm not sure if there's anything else you need.