Patchwork doesn't run on Xenial with system packages

Daniel Axtens dja at axtens.net
Tue Apr 4 21:45:35 AEST 2017


Daniel Axtens <dja at axtens.net> writes:

> Hi,
>
> If I try to run patchwork with system versions of packages on Xenial, I
> run in to problems.
>
> Specifically, when I run with ENABLE_REST_API=True, I see the following
> error:
>
> ImportError: Could not import
> 'django_filters.rest_framework.DjangoFilterBackend' for API setting
> 'DEFAULT_FILTER_BACKENDS'. ImportError: No module named rest_framework.
>
> I suspect this is due to the version of DRF - apt search shows:
>
>   python-djangorestframework/xenial 3.3.2-2 all
>
> requirements-prod.txt lists the required version as 3.5 to 3.6.
>

Sorry, I should have said: I think this is an interaction between DRF
and django-filter: django-filter is 0.11:

    python-django-filter/xenial 0.11.0-2 all

and requirements-prod.txt has 1.0-1.1

I was pointed towards the filters/DRF interaction by:
http://stackoverflow.com/a/41477856/463510

I'm still digging in to this but I wanted to flag it in case anyone had
any bright ideas.

We still need to fix this for the reasons in my original email. I also
can't find a system package for drf-nested-router, which will also be an
issue for deployment on sites that want to use system packages for
stability and security update reasons.

Regards,
Daniel

> This is something we really need to fix: ozlabs.org runs Debian, and if
> it doesn't run on Xenial it's not likely to run on Debian. And we
> really, really want ozlabs.org to be able to support the REST API.
>
> Can we relax the drf requirement?
>
> Regards,
> Daniel


More information about the Patchwork mailing list