On 2/26/25 07:40, Stefan Bauer via Mailman-users wrote:
Dear Users,
i recently tried to upgrade to latest MM3 and followed this[1] steps.
However
(venv) $ mailman-web migrate
fails with:
from rest_framework import mixins, views
File
"/opt/mailman/venv/lib/python3.10/site-packages/rest_framework/views.py",
line 15, in <module>
from rest_framework.request import Request
File
"/opt/mailman/venv/lib/python3.10/site-packages/rest_framework/request.py",
line 17, in <module>
from django.http.multipartparser import parse_header
ImportError: cannot import name 'parse_header' from
'django.http.multipartparser'
(/opt/mailman/venv/lib/python3.10/site-packages/django/http/multipartparser.py)
(venv) mailman@edmmal03$ vi
/opt/mailman/venv/lib/python3.10/site-packages/django/http/multipartparser.py
Could this be a broken dependency?
You have an incompatible configuration.
django.http.multipartparser.parse_header was removed in Django 4.2. See
https://docs.djangoproject.com/en/5.1/releases/4.2/#miscellaneous
Your version of djangorestframework is incompatible with Django>=4.2.
Try in your venv
```
pip install --upgrade djangorestframework
```
--
Mark Sapiro <m...@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/UPXK4Q5U4HTYLLEJQGURYBCBPNCNZCMF/
This message sent to arch...@mail-archive.com