Django 2.1: принимает 1 позиционный аргумент, но было задано 4 [дубликат]
Примечание: У меня есть python версии 3.9 на моем ноутбуке, и я знаю, что Django 2.1 совместим только с версией python 3.7. Решит ли версия python 3.7 проблему, с которой я столкнулся сейчас? У меня есть проект django 2.1 двухлетней давности, и когда я набираю:
python manage.py runserver
выдает ошибку
_XMLParser.__init__(self, html, target, encoding)
TypeError: __init__() takes 1 positional argument but 4 were given
мои требования.txt файл пакетов:
amqp==2.5.0
asn1crypto==0.24.0
billiard==3.6.0.0
boto3==1.9.223
botocore==1.12.223
cairocffi==0.9.0
CairoSVG==2.4.2
captcha==0.3
celery==4.3.0
certifi==2018.11.29
cffi==1.15.0
chardet==3.0.4
coreapi==2.3.3
coreschema==0.0.4
cryptography==36.0.2
cssselect2==0.2.2
defusedxml==0.5.0
diff-match-patch==20181111
Django==2.1.5
django-admin-honeypot==1.1.0
django-admin-numeric-filter==0.1.2
django-admin-rangefilter==0.3.10
django-admin-shortcuts==2.0.0
django-admin-toolbox==1.0.0.dev15
django-admin-tools==0.8.1
django-advanced-filters==1.4.0
django-ajax-selects==1.7.1
django-allauth==0.39.1
django-bower==5.2.0
django-braces==1.13.0
django-captcha-admin==0.2
django-celery-beat==1.5.0
django-chart-tools==1.0
django-ckeditor==5.6.1
django-cors-headers==2.0.2
django-extensions==2.1.4
django-filter==2.1.0
django-froala-editor==2.9.2
django-import-export==2.8.0
django-jet==1.0.8
django-js-asset==1.1.0
django-jsonfield==1.0.1
django-material==1.4.1
django-modeladmin-reorder==0.3.1
django-nvd3==0.9.7
django-oauth-toolkit==1.2.0
django-qsstats-magic==1.0.0
django-recaptcha==1.3.0
django-rest-auth==0.9.5
django-rest-framework-social-oauth2==1.1.0
django-rest-swagger==2.2.0
django-storages==1.7.1
django-suit-redactor==0.0.4
django-timezone-field==3.0
django-tinymce==2.8.0
django-wordpress-api==0.2.0
djangorestframework==3.9.0
djangorestframework-jwt==1.8.0
djcacheutils==3.0.0
docutils==0.15.2
drf-yasg==1.12.1
drfdocs==0.0.11
enum34==1.1.6
et-xmlfile==1.0.1
gunicorn==19.9.0
html5lib==1.0.1
idna==2.8
inflection==0.3.1
ipaddress==1.0.22
iso8601==0.1.12
itypes==1.1.0
jdcal==1.4
jet-django==0.4.4
Jinja2==2.10
jmespath==0.9.4
kombu==4.6.3
logger==1.4
Markdown==3.1.1
MarkupSafe==1.1.0
numpy==1.22.3
oauth2-provider==0.0
oauthlib==3.0.0
odfpy==1.4.0
openapi-codec==1.3.2
openpyxl==2.5.12
pandas==1.4.2
Pillow==9.1.0
psycopg2-binary==2.9.3
pycparser==2.19
pyfcm==1.4.5
PyJWT==1.7.1
PyMySQL==0.9.3
pyOpenSSL==18.0.0
Pyphen==0.9.5
PySocks==1.6.8
python-crontab==2.3.8
python-dateutil==2.8.0
python-http-client==3.1.0
python-memcached==1.59
python-nvd3==0.14.2
python-openid==2.2.5
python-slugify==1.1.4
python3-openid==3.1.0
pytz==2018.7
PyYAML==3.13
raven==6.10.0
reportlab==3.6.9
requests==2.21.0
requests-oauthlib==1.2.0
requests-toolbelt==0.9.1
ruamel.yaml==0.15.83
s3transfer==0.2.1
sendgrid==5.6.0
sentry-sdk==0.12.2
simplejson==3.16.0
six==1.12.0
social-auth-app-django==3.1.0
social-auth-core==3.0.0
stripe==2.22.0
tablib==0.12.1
tinycss2==1.0.2
toml==0.9.6
twilio==6.21.0
unicodecsv==0.14.1
Unidecode==1.0.23
uritemplate==3.0.0
urllib3==1.24.1
utils==0.9.0
vine==1.3.0
WeasyPrint==48
webencodings==0.5.1
xlrd==1.2.0
xlwt==1.3.0
Я не знаю, почему он выдает эту ошибку. Может ли кто-нибудь подсказать мне, как ее решить? Нужно ли мне понизить версию python с 3.9 до 3.7? Возможно ли мне запустить другие проекты django, когда я понижу версию python с 3.9 до 3.7? пожалуйста, мне нужен серьезный совет. спасибо Журнал ошибок: