升级 Wagtail CMS 时出现 Heroku 错误

问题描述 投票:0回答:1

我正在尝试更新一个托管在 Heroku 上的非常过时的基于 Wagtail 的网站。我正在从 Wagtail 2.13 升级到 2.14。升级在我的本地计算机上运行良好,但是当将升级推送到 Heroku 时,我很难解释这些错误:

remote: -----> Requirements file has been changed, clearing cached dependencies
remote: -----> Installing python-3.8.7
remote: -----> Installing pip 23.3.2, setuptools 68.2.2 and wheel 0.42.0
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        Collecting anyascii==0.1.7 (from -r requirements.txt (line 1))
remote:          Downloading anyascii-0.1.7-py3-none-any.whl.metadata (1.6 kB)
remote:        Collecting asgiref==3.3.1 (from -r requirements.txt (line 2))
remote:          Downloading asgiref-3.3.1-py3-none-any.whl.metadata (8.9 kB)
remote:        Collecting beautifulsoup4==4.8.2 (from -r requirements.txt (line 3))
remote:          Downloading beautifulsoup4-4.8.2-py3-none-any.whl (106 kB)
remote:        Collecting boto3==1.17.15 (from -r requirements.txt (line 4))
remote:          Downloading boto3-1.17.15-py2.py3-none-any.whl.metadata (6.0 kB)
remote:        Collecting botocore==1.20.15 (from -r requirements.txt (line 5))
remote:          Downloading botocore-1.20.15-py2.py3-none-any.whl.metadata (5.3 kB)
remote:        Collecting certifi==2020.12.5 (from -r requirements.txt (line 6))
remote:          Downloading certifi-2020.12.5-py2.py3-none-any.whl.metadata (3.0 kB)
remote:        Collecting chardet==4.0.0 (from -r requirements.txt (line 7))
remote:          Downloading chardet-4.0.0-py2.py3-none-any.whl.metadata (3.5 kB)
remote:        Collecting dj-database-url==0.5.0 (from -r requirements.txt (line 8))
remote:          Downloading dj_database_url-0.5.0-py2.py3-none-any.whl (5.5 kB)
remote:        Collecting dj-static==0.0.6 (from -r requirements.txt (line 9))
remote:          Downloading dj-static-0.0.6.tar.gz (3.4 kB)
remote:          Preparing metadata (setup.py): started
remote:          Preparing metadata (setup.py): finished with status 'done'
remote:        Collecting Django==3.1.6 (from -r requirements.txt (line 10))
remote:          Downloading Django-3.1.6-py3-none-any.whl.metadata (3.7 kB)
remote:        Collecting django-filter==2.4.0 (from -r requirements.txt (line 11))
remote:          Downloading django_filter-2.4.0-py3-none-any.whl.metadata (4.1 kB)
remote:        Collecting django-modelcluster<6.0,>=5.2 (from -r requirements.txt (line 12))
remote:          Downloading django_modelcluster-5.3-py2.py3-none-any.whl.metadata (6.4 kB)
remote:        Collecting django-storages==1.11.1 (from -r requirements.txt (line 13))
remote:          Downloading django_storages-1.11.1-py3-none-any.whl.metadata (49 kB)
remote:        Collecting django-taggit==1.3.0 (from -r requirements.txt (line 14))
remote:          Downloading django_taggit-1.3.0-py3-none-any.whl (45 kB)
remote:        ERROR: Ignored the following versions that require a different python version: 5.0 Requires-Python >=3.10; 5.0.1 Requires-Python >=3.10; 5.0.2 Requires-Python >=3.10; 5.0a1 Requires-Python >=3.10; 5.0b1 Requires-Python >=3.10; 5.0rc1 Requires-Python >=3.10
remote:        ERROR: Could not find a version that satisfies the requirement django-toolbelt==0.0.1 (from versions: none)
remote:        ERROR: No matching distribution found for django-toolbelt==0.0.1
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed

这里看起来有 2 个(?)错误。

  1. 其中一个包(这是上面的包,django_taggit,还是错误消息下面的包?)需要更高的版本,3.10。我不确定是否可以做到这一点,因为 Wagtail 2.14 仅支持 Python 3.9。
  2. pypi.org 中缺少 django-toolbelt==0.0.1 包(或者至少我认为是这样,我在那里找不到它。如果我误解了这里的错误,请纠正我)。鉴于我不确定 django-toolbelt 的作用,我不知道如何从这里继续。

我真的很感谢任何有关我是否正确理解这些错误以及如何继续修复这些错误的帮助。

python django heroku wagtail
1个回答
0
投票

看起来

django-toolbelt
已被神秘地从 PyPI 中拉出,但根据 最后可用的存档

这是一个简单的包,只需要以下包:

  • 姜戈
  • psycopg2
  • 独角兽
  • dj-数据库-url
  • dj-静态

因此,您应该希望能够通过添加那些尚未在您的需求文件中列出的软件包并删除

django-toolbelt
来回到正轨。

在我看来,通过选择 1.3.0 作为安装版本,

django-taggit
错误已自行解决 - 我认为有关忽略版本 5.0 的消息只是信息性的(尽管令人惊讶的是它显示为错误)。

© www.soinside.com 2019 - 2024. All rights reserved.