Page MenuHomeSoftware Heritage
Paste P1452

(An Untitled Masterwork)
ActivePublic

Authored by anlambert on Sep 13 2022, 4:05 PM.
Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python3-swh.web' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
python3-swh.auth python3-swh.auth.django
The following packages will be upgraded:
python3-swh.auth python3-swh.auth.django python3-swh.web
3 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 9704 kB of archives.
After this operation, 372 kB of additional disk space will be used.
Get:1 https://debian.softwareheritage.org buster-swh/main amd64 python3-swh.auth.django all 0.6.7-1~swh1~bpo10+1 [10.8 kB]
Get:2 https://debian.softwareheritage.org buster-swh/main amd64 python3-swh.auth all 0.6.7-1~swh1~bpo10+1 [22.5 kB]
Get:3 https://debian.softwareheritage.org buster-swh/main amd64 python3-swh.web all 0.1.0-1~swh1~bpo10+1 [9671 kB]
[master 620d808] saving uncommitted changes in /etc prior to apt run
Author: anlambert <anlambert@webapp.internal.staging.swh.network>
1 file changed, 1 insertion(+), 1 deletion(-)
Fetched 9704 kB in 0s (24.4 MB/s)
(Reading database ... 92077 files and directories currently installed.)
Preparing to unpack .../python3-swh.auth.django_0.6.7-1~swh1~bpo10+1_all.deb ...
Unpacking python3-swh.auth.django (0.6.7-1~swh1~bpo10+1) over (0.6.6-1~swh1~bpo10+1) ...
Preparing to unpack .../python3-swh.auth_0.6.7-1~swh1~bpo10+1_all.deb ...
Unpacking python3-swh.auth (0.6.7-1~swh1~bpo10+1) over (0.6.6-1~swh1~bpo10+1) ...
Preparing to unpack .../python3-swh.web_0.1.0-1~swh1~bpo10+1_all.deb ...
Unpacking python3-swh.web (0.1.0-1~swh1~bpo10+1) over (0.0.399-1~swh1~bpo10+1) ...
dpkg: warning: unable to delete old directory '/usr/lib/python3/dist-packages/swh/web/common': Directory not empty
dpkg: warning: unable to delete old directory '/usr/lib/python3/dist-packages/swh/web/admin': Directory not empty
Setting up python3-swh.auth (0.6.7-1~swh1~bpo10+1) ...
Setting up python3-swh.auth.django (0.6.7-1~swh1~bpo10+1) ...
Setting up python3-swh.web (0.1.0-1~swh1~bpo10+1) ...
Software Heritage production db detected; running migrations
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/swh/web/urls.py", line 28, in <module>
urlpatterns.append(url(r"^", include(app_urls)))
File "/usr/lib/python3/dist-packages/django/urls/conf.py", line 34, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/swh/web/tests/urls.py", line 9, in <module>
from swh.web.tests.views import (
File "/usr/lib/python3/dist-packages/swh/web/tests/views.py", line 19, in <module>
from swh.web.tests.data import get_tests_data
File "/usr/lib/python3/dist-packages/swh/web/tests/data.py", line 20, in <module>
from swh.loader.git.from_disk import GitLoaderFromArchive
ModuleNotFoundError: No module named 'swh.loader'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/django-admin", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 361, in execute
self.check()
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 390, in check
include_deployment_checks=include_deployment_checks,
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 377, in _run_checks
return checks.run_checks(**kwargs)
File "/usr/lib/python3/dist-packages/django/core/checks/registry.py", line 72, in run_checks
new_errors = check(app_configs=app_configs)
File "/usr/lib/python3/dist-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique
all_namespaces = _load_all_namespaces(resolver)
File "/usr/lib/python3/dist-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces
url_patterns = getattr(resolver, 'url_patterns', [])
File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/usr/lib/python3/dist-packages/django/urls/resolvers.py", line 584, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/usr/lib/python3/dist-packages/django/urls/resolvers.py", line 577, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/swh/web/urls.py", line 30, in <module>
assert False, f"Django application {app} not found !"
AssertionError: Django application swh.web.tests not found !
dpkg: error processing package python3-swh.web (--configure):
installed python3-swh.web package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
python3-swh.web
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error: /Stage[main]/Profile::Swh::Deploy::Webapp/Profile::Swh::Deploy::Install_web_deps[swh-web]/Package[python3-swh.web]/ensure: change from '0.0.399-1~swh1~bpo10+1' to '0.1.0-1~swh1~bpo10+1' failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python3-swh.web' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
python3-swh.auth python3-swh.auth.django
The following packages will be upgraded:
python3-swh.auth python3-swh.auth.django python3-swh.web
3 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 9704 kB of archives.
After this operation, 372 kB of additional disk space will be used.
Get:1 https://debian.softwareheritage.org buster-swh/main amd64 python3-swh.auth.django all 0.6.7-1~swh1~bpo10+1 [10.8 kB]
Get:2 https://debian.softwareheritage.org buster-swh/main amd64 python3-swh.auth all 0.6.7-1~swh1~bpo10+1 [22.5 kB]
Get:3 https://debian.softwareheritage.org buster-swh/main amd64 python3-swh.web all 0.1.0-1~swh1~bpo10+1 [9671 kB]
[master 620d808] saving uncommitted changes in /etc prior to apt run
Author: anlambert <anlambert@webapp.internal.staging.swh.network>
1 file changed, 1 insertion(+), 1 deletion(-)
Fetched 9704 kB in 0s (24.4 MB/s)
(Reading database ... 92077 files and directories currently installed.)
Preparing to unpack .../python3-swh.auth.django_0.6.7-1~swh1~bpo10+1_all.deb ...
Unpacking python3-swh.auth.django (0.6.7-1~swh1~bpo10+1) over (0.6.6-1~swh1~bpo10+1) ...
Preparing to unpack .../python3-swh.auth_0.6.7-1~swh1~bpo10+1_all.deb ...
Unpacking python3-swh.auth (0.6.7-1~swh1~bpo10+1) over (0.6.6-1~swh1~bpo10+1) ...
Preparing to unpack .../python3-swh.web_0.1.0-1~swh1~bpo10+1_all.deb ...
Unpacking python3-swh.web (0.1.0-1~swh1~bpo10+1) over (0.0.399-1~swh1~bpo10+1) ...
dpkg: warning: unable to delete old directory '/usr/lib/python3/dist-packages/swh/web/common': Directory not empty
dpkg: warning: unable to delete old directory '/usr/lib/python3/dist-packages/swh/web/admin': Directory not empty
Setting up python3-swh.auth (0.6.7-1~swh1~bpo10+1) ...
Setting up python3-swh.auth.django (0.6.7-1~swh1~bpo10+1) ...
Setting up python3-swh.web (0.1.0-1~swh1~bpo10+1) ...
Software Heritage production db detected; running migrations
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/swh/web/urls.py", line 28, in <module>
urlpatterns.append(url(r"^", include(app_urls)))
File "/usr/lib/python3/dist-packages/django/urls/conf.py", line 34, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/swh/web/tests/urls.py", line 9, in <module>
from swh.web.tests.views import (
File "/usr/lib/python3/dist-packages/swh/web/tests/views.py", line 19, in <module>
from swh.web.tests.data import get_tests_data
File "/usr/lib/python3/dist-packages/swh/web/tests/data.py", line 20, in <module>
from swh.loader.git.from_disk import GitLoaderFromArchive
ModuleNotFoundError: No module named 'swh.loader'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/django-admin", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 361, in execute
self.check()
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 390, in check
include_deployment_checks=include_deployment_checks,
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 377, in _run_checks
return checks.run_checks(**kwargs)
File "/usr/lib/python3/dist-packages/django/core/checks/registry.py", line 72, in run_checks
new_errors = check(app_configs=app_configs)
File "/usr/lib/python3/dist-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique
all_namespaces = _load_all_namespaces(resolver)
File "/usr/lib/python3/dist-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces
url_patterns = getattr(resolver, 'url_patterns', [])
File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/usr/lib/python3/dist-packages/django/urls/resolvers.py", line 584, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/lib/python3/dist-packages/django/utils/functional.py", line 80, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/usr/lib/python3/dist-packages/django/urls/resolvers.py", line 577, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/swh/web/urls.py", line 30, in <module>
assert False, f"Django application {app} not found !"
AssertionError: Django application swh.web.tests not found !
dpkg: error processing package python3-swh.web (--configure):
installed python3-swh.web package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
python3-swh.web
E: Sub-process /usr/bin/dpkg returned an error code (1)
Notice: /Stage[main]/Profile::Swh::Deploy::Webapp/Gunicorn::Instance[swh-webapp]/Service[gunicorn-swh-webapp]: Dependency Package[python3-swh.web] has failures: true
Warning: /Stage[main]/Profile::Swh::Deploy::Webapp/Gunicorn::Instance[swh-webapp]/Service[gunicorn-swh-webapp]: Skipping because of failed dependencies
Warning: /Stage[main]/Profile::Swh::Deploy::Webapp/Systemd::Timer[swh-webapp-update-savecodenow-statuses.timer]/Systemd::Unit_file[swh-webapp-update-savecodenow-statuses.service]/File[/etc/systemd/system/swh-webapp-update-savecodenow-statuses.service]: Skipping because of failed dependencies
Warning: /Stage[main]/Profile::Swh::Deploy::Webapp/Systemd::Timer[swh-webapp-update-savecodenow-statuses.timer]/Systemd::Unit_file[swh-webapp-update-savecodenow-statuses.timer]/File[/etc/systemd/system/swh-webapp-update-savecodenow-statuses.timer]: Skipping because of failed dependencies
Warning: /Stage[main]/Profile::Swh::Deploy::Webapp/Systemd::Timer[swh-webapp-sync-mailmaps.timer]/Systemd::Unit_file[swh-webapp-sync-mailmaps.service]/File[/etc/systemd/system/swh-webapp-sync-mailmaps.service]: Skipping because of failed dependencies
Warning: /Stage[main]/Profile::Swh::Deploy::Webapp/Systemd::Timer[swh-webapp-sync-mailmaps.timer]/Systemd::Unit_file[swh-webapp-sync-mailmaps.timer]/File[/etc/systemd/system/swh-webapp-sync-mailmaps.timer]: Skipping because of failed dependencies
Warning: /Stage[main]/Systemd::Systemctl::Daemon_reload/Exec[systemctl-daemon-reload]: Skipping because of failed dependencies
Warning: /Stage[main]/Profile::Prometheus::Statsd/Service[prometheus-statsd-exporter]: Skipping because of failed dependencies
Warning: /Stage[main]/Profile::Swh::Deploy::Webapp/Systemd::Timer[swh-webapp-update-savecodenow-statuses.timer]/Systemd::Unit_file[swh-webapp-update-savecodenow-statuses.timer]/Service[swh-webapp-update-savecodenow-statuses.timer]: Skipping because of failed dependencies
Warning: /Stage[main]/Profile::Swh::Deploy::Webapp/Systemd::Timer[swh-webapp-sync-mailmaps.timer]/Systemd::Unit_file[swh-webapp-sync-mailmaps.timer]/Service[swh-webapp-sync-mailmaps.timer]: Skipping because of failed dependenci