[Python-modules-team] Bug#968694: python-django-jsonfield: Missing build dependency on python3-psycopg2

Adrian Bunk bunk at debian.org
Thu Aug 20 06:15:52 BST 2020


Source: python-django-jsonfield
Version: 1.4.0-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/fetch.php?pkg=python-django-jsonfield&arch=all&ver=1.4.0-1&stamp=1597330157&raw=0

...
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_test -- --system=custom --test-args="{interpreter} debian/run_tests.py"
I: pybuild base:217: python3.8 debian/run_tests.py
E
======================================================================
ERROR: jsonfield.tests (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: jsonfield.tests
Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/jsonfield/tests/__init__.py", line 1, in <module>
    from .test_fields import *  # NOQA
  File "/<<PKGBUILDDIR>>/jsonfield/tests/test_fields.py", line 9, in <module>
    from jsonfield.tests.jsonfield_test_app.models import *  # NOQA
  File "/<<PKGBUILDDIR>>/jsonfield/tests/jsonfield_test_app/models.py", line 1, in <module>
    from django.contrib.postgres.fields import JSONField as PostgresJSONField
  File "/usr/lib/python3/dist-packages/django/contrib/postgres/fields/__init__.py", line 1, in <module>
    from .array import *  # NOQA
  File "/usr/lib/python3/dist-packages/django/contrib/postgres/fields/array.py", line 4, in <module>
    from django.contrib.postgres.forms import SimpleArrayField
  File "/usr/lib/python3/dist-packages/django/contrib/postgres/forms/__init__.py", line 4, in <module>
    from .ranges import *  # NOQA
  File "/usr/lib/python3/dist-packages/django/contrib/postgres/forms/ranges.py", line 3, in <module>
    from psycopg2.extras import DateRange, DateTimeTZRange, NumericRange
ModuleNotFoundError: No module named 'psycopg2'


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
System check identified no issues (0 silenced).
E: pybuild pybuild:352: test: plugin custom failed with: exit code=1: python3.8 debian/run_tests.py
dh_auto_test: error: pybuild --test -i python{version} -p 3.8 --system=custom "--test-args={interpreter} debian/run_tests.py" returned exit code 13
make[1]: *** [debian/rules:10: override_dh_auto_test] Error 25



More information about the Python-modules-team mailing list