-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing A+ dependencies fails on the latest pip and setuptools versions #976
Comments
Celery is at least one cause. Its dependency
The most recent update in I'm not sure if these are related to this (kombu is part of celery): |
the schedule depends on Tampere, and I've asked for it. I add a preliminary milestone now to proceed with overview planning and let's return to the case when we know more. |
I took a quick look at this again. This is not related to Tampere, but the changes in the pip package manager and setuptools. Many frameworks and libraries were (at least in the beginning) incompatible with the latest pip version. A+ depends on Celery and Celery was having issues with pip/setuptools. However, a new patch has been released in Celery and that seems to fix it: https://github.com/celery/celery/releases/tag/v5.2.6 After quick testing, it looks like that
Rest_framework_extensions depend on the Django REST framework, which we should update too assuming that rest_framework_extensions are still compatible with the latest Django REST framework. Related issues in the official library rest_framework_extensions: |
I think this issue was resolved in the commit df64e84 |
Installing A+ fails (
pip install -r requirements.txt
) if the system uses the latest pip and setuptools version.From Aplusguru tickets:
https://rt.cs.aalto.fi/Ticket/Display.html?id=20345
when trying to install new RC v1.12.0rc3 I run into situation where requirements.txt won't install with latest version of python pkg setuptools.
In the attached Docker config the pkg coming with the debian python 3.9 is version 52.0.0 and it works.
But if I run update on pip and setuptools before install, the version is 60.0.3 and then there's an error in
https://github.com/apluslms/js-jquery-toggle.git to commit d9c5219a74e0e0536fd40df2c7ba8ea842313d19:
File "/tmp/pip-install-wah_ndnm/js-jquery-toggle-django_316200f9e1904fd1bf29c2a9b3cc150f/django/setup.py", line 19, in
scheme['data'] = scheme['purelib']
KeyError: 'purelib'
Dockerfile to show the error:
FROM debian:11.2-slim
RUN apt-get update &&
export DEBIAN_FRONTEND="noninteractive" &&
apt-get install -y --no-install-recommends
locales
bash git python3.9 python3-pip gettext
RUN python3 -m pip install --upgrade pip setuptools
RUN python3 -c "import setuptools; print('VERSION', setuptools.version)"
WORKDIR /srv/aplus
ENV BRANCH=v1.12.0rc3
RUN git clone --single-branch --branch $BRANCH https://github.com/apluslms/a-plus.git
&& cd a-plus
&& git describe
WORKDIR /srv/aplus/a-plus
RUN pip3 --no-cache-dir install -r requirements.txt
Python setuptools v60 was released Dec 20th 2021 and it seems to produce problems with aplus installation.
When trying out aplus v1.11.4 I run into situation where install goes fine but at runtime will generate an error:
Django Version: 3.2.10
Exception Type: ModuleNotFoundError
Exception Value:
No module named 'rest_framework_extensions'
Exception Location: ./api/urls_v2.py, line 5, in
I don't have exact details but changing my pip and setuptools upgrade to:
python3 -m pip install --upgrade pip "setuptools<60"
(e.g. don't use setuptools 60) the problem goes away.
The text was updated successfully, but these errors were encountered: