Package: python3-djangorestframework
Version: 3.12.4-2.2
Severity: important
Affects: python3-django-colorfield
Block: 1013486

the reason why python3-django-colorfield FTBFS in #1013486 is:

> ImportError: Failed to import test module: tests.test_serializers
> Traceback (most recent call last):
>   File "/usr/lib/python3.10/unittest/loader.py", line 436, in
_find_test_path
>     module = self._get_module_from_name(name)
>   File "/usr/lib/python3.10/unittest/loader.py", line 377, in
_get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/tests/test_serializers.py", line 4, in
<module>
>     from rest_framework.serializers import (
>   File "/usr/lib/python3/dist-
packages/rest_framework/serializers.py", line 29, in <module>
>     from rest_framework.fields import get_error_detail, set_value
>   File "/usr/lib/python3/dist-packages/rest_framework/fields.py",
line 32, in <module>
>     from pytz.exceptions import InvalidTimeError
> ModuleNotFoundError: No module named 'pytz'

and it happens because for some reason, python3-djangorestframework
doesn't depend on python3-tz although it uses it.

Cheers,

J.Puydt

Reply via email to