- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
您好,当尝试将 Django 应用程序部署到 Elastic Beanstalk 时出现此错误,
DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools-scm')
我已尝试将库 setuptools-scm 添加到我的 requirements.txt 文件中,甚至添加到我的 .ebextension 目录中,但仍然没有任何建议?
编辑,这是错误的完整日志:
Application deployment failed at 2021-05-18T23:56:56Z with exit status 1 and error: Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py failed. Collecting Django==1.11.16 Using cached Django-1.11.16-py2.py3-none-any.whl (7.0 MB) Collecting django-oscar==1.6.4 Using cached django_oscar-1.6.4-py2.py3-none-any.whl (7.5 MB) Collecting psycopg2==2.7.3.2 Using cached psycopg2-2.7.3.2-cp36-cp36m-manylinux1_x86_64.whl (2.7 MB) Collecting openpyxl==2.4.10 Using cached openpyxl-2.4.10.tar.gz (158 kB) Collecting django-storages==1.6.5 Using cached django_storages-1.6.5-py2.py3-none-any.whl (47 kB) Collecting boto3==1.5.19 Using cached boto3-1.5.19-py2.py3-none-any.whl (128 kB) Collecting django-ipware==2.0.1 Using cached django-ipware-2.0.1.tar.gz (10 kB) Collecting django-extensions>=2.0.6 Using cached django_extensions-3.1.3-py3-none-any.whl (223 kB) Collecting pygeoip==0.3.2 Using cached pygeoip-0.3.2-py2.py3-none-any.whl (20 kB) Collecting selenium==3.14.1 Using cached selenium-3.14.1-py2.py3-none-any.whl (902 kB) Collecting pycountry==18.5.26 Using cached pycountry-18.5.26-py2.py3-none-any.whl (10.3 MB) Collecting pysolr==3.8.1 Using cached pysolr-3.8.1-py2.py3-none-any.whl (16 kB) Collecting django-filter==0.13.0 Using cached django_filter-0.13.0-py2.py3-none-any.whl (27 kB) Collecting djangorestframework==3.3.3 Using cached djangorestframework-3.3.3-py2.py3-none-any.whl (662 kB) Collecting Pillow==5.3.0 Using cached Pillow-5.3.0-cp36-cp36m-manylinux1_x86_64.whl (2.0 MB) Collecting django-settings-export==1.2.1 Using cached django-settings-export-1.2.1.tar.gz (5.0 kB) Collecting django-background-tasks==1.2.0 Using cached django-background-tasks-1.2.0.tar.gz (19 kB) Collecting ip2geotools==0.1.5 Using cached ip2geotools-0.1.5-py3-none-any.whl (16 kB) Collecting watchtower==0.7.3 Using cached watchtower-0.7.3-py2.py3-none-any.whl (13 kB) Collecting pytz Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB) Collecting sorl-thumbnail<12.5,>=12.4.1 Using cached sorl_thumbnail-12.4.1-py2.py3-none-any.whl (44 kB) Collecting django-widget-tweaks>=1.4.1 Using cached django_widget_tweaks-1.4.8-py2.py3-none-any.whl (11 kB) Collecting django-treebeard>=4.3.0 Using cached django_treebeard-4.5.1-py3-none-any.whl (103 kB) Collecting django-extra-views<0.12,>=0.11 Using cached django-extra-views-0.11.0.tar.gz (13 kB) Collecting Unidecode<1.1,>=1.0 Using cached Unidecode-1.0.23-py2.py3-none-any.whl (237 kB) Collecting Babel<3.0,>=1.0 Using cached Babel-2.9.1-py2.py3-none-any.whl (8.8 MB) Collecting factory-boy<3.0,>=2.4.1 Using cached factory_boy-2.12.0-py2.py3-none-any.whl (36 kB) Collecting mock<3.0,>=1.0.1 Using cached mock-2.0.0-py2.py3-none-any.whl (56 kB) Collecting phonenumbers Using cached phonenumbers-8.12.23-py2.py3-none-any.whl (2.6 MB) Collecting django-haystack<3.0.0,>=2.5.0 Using cached django-haystack-2.8.1.tar.gz (1.6 MB) ERROR: Command errored out with exit status 1: command: /opt/python/run/venv/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ji9vxolp/django-haystack_504d7caab43d489ebad3acd0546161a6/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ji9vxolp/django-haystack_504d7caab43d489ebad3acd0546161a6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-2lhqu4p5 cwd: /tmp/pip-install-ji9vxolp/django-haystack_504d7caab43d489ebad3acd0546161a6/ Complete output (23 lines): Couldn't find index page for 'setuptools_scm' (maybe misspelled?) No local packages or working download links found for setuptools_scm Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-ji9vxolp/django-haystack_504d7caab43d489ebad3acd0546161a6/setup.py", line 71, in setup_requires=['setuptools_scm'], File "/usr/lib64/python3.6/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/opt/python/run/venv/local/lib/python3.6/site-packages/setuptools/dist.py", line 315, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/opt/python/run/venv/local/lib/python3.6/site-packages/setuptools/dist.py", line 361, in fetch_build_eggs replace_conflicting=True, File "/opt/python/run/venv/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 850, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/opt/python/run/venv/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1122, in best_match return self.obtain(req, installer) File "/opt/python/run/venv/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1134, in obtain return installer(requirement) File "/opt/python/run/venv/local/lib/python3.6/site-packages/setuptools/dist.py", line 429, in fetch_build_egg return cmd.easy_install(req) File "/opt/python/run/venv/local/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 659, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm') ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/69/43/3e247b7b2134b48e9a53fb387e191e5e05b5f38f2faf78ca892097c2b441/django-haystack-2.8.1.tar.gz#sha256=8b54bcc926596765d0a3383d693bcdd76109c7abb6b2323b3984a39e3576028c (from https://pypi.org/simple/django-haystack/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Using cached django-haystack-2.8.0.tar.gz (425 kB) ERROR: Command errored out with exit status 1: command: /opt/python/run/venv/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ji9vxolp/django-haystack_b5f23b3fb1794ae0b1220ef21f1b8b09/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ji9vxolp/django-haystack_b5f23b3fb1794ae0b1220ef21f1b8b09/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-sd7n9ubs cwd: /tmp/pip-install-ji9vxolp/django-haystack_b5f23b3fb1794ae0b1220ef21f1b8b09/ Complete output (23 lines): Couldn't find index page for 'setuptools_scm' (maybe misspelled?) No local packages or working download links found for setuptools_scm Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-ji9vxolp/django-haystack_b5f23b3fb1794ae0b1220ef21f1b8b09/setup.py", line 71, in setup_requires=['setuptools_scm'], File "/usr/lib64/python3.6/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/opt/python/run/venv/local/lib/python3.6/site-packages/setuptools/dist.py", line 315, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/opt/python/run/venv/local/lib/python3.6/site-packages/setuptools/dist.py", line 361, in fetch_build_eggs replace_conflicting=True, File "/opt/python/run/venv/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 850, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/opt/python/run/venv/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1122, in best_match return self.obtain(req, installer) File "/opt/python/run/venv/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1134, in obtain return installer(requirement) File "/opt/python/run/venv/local/lib/python3.6/site-packages/setuptools/dist.py", line 429, in fetch_build_egg return cmd.easy_install(req) File "/opt/python/run/venv/local/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 659, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm') ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/5e/33/f7978374d447abd2803a2ea8128ff7296c89da42b0e9621ca9dd3495d2fc/django-haystack-2.8.0.tar.gz#sha256=579cd2080f7ad508e909a46c027078e278aeebd133973c1c4efcf0dc57d85c10 (from https://pypi.org/simple/django-haystack/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Using cached django-haystack-2.7.0.tar.gz (1.6 MB) ERROR: Command errored out with exit status 1: command: /opt/python/run/venv/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ji9vxolp/django-haystack_ef77b238789b4b61bc1f1b36fd1ccc05/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ji9vxolp/django-haystack_ef77b238789b4b61bc1f1b36fd1ccc05/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ls_ug5_i cwd: /tmp/pip-install-ji9vxolp/django-haystack_ef77b238789b4b61bc1f1b36fd1ccc05/ Complete output (23 lines): Couldn't find index page for 'setuptools_scm' (maybe misspelled?) No local packages or working download links found for setuptools_scm Traceback (most recent call last): File "", line 1, in Command output has been truncated. Please see logs for more details.
更新:问题出在我的 elastic beanstalk 环境的配置和设置中,我还使用了一些需要升级的已弃用库 (Django-Oscar)
最佳答案
您是否尝试更新设置工具?
pip install --upgrade setuptools
关于python-3.x - DistutilsError : Could not find suitable distribution for Requirement. 解析 ('setuptools-scm' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67603407/
我有一份 Jenkins 工作,其中包括一个 Android 应用程序和一个公共(public)库。我使用 Jenkins 的 Multiple SCM 插件下载两个 git repos,然后构建并运
我创建了一个 abc.scm 文件并尝试使用“ guild compile ”、“ scm ”和“|10956 guile "Ubuntu 终端中的命令。 对于“ guild compile abc.
我有一个由几个模块和子模块组成的 Maven 项目。 我使用 SVN 对源文件进行版本控制。 短篇小说 如何在 POM 文件的 scm 属性中指定与其父文件相关的 URL。 漫长的故事 一些模块及其子
我有一个项目,在 jenkins 中运行其构建大约需要 15 分钟(phpunit 是构建中最长的元素)。 我已经配置了 scm 触发的构建(基于 svn),因此每次提交发生时,都会触发构建(使用提交
我想使用 Maven 从远程 SVN 更新本地项目(无需安装 SVN 命令)我尝试在 maven-scm-publish-plugin 中使用备用 scm 提供程序,示例插件配置如下:
我已按照以下说明操作:http://docs.sonarqube.org/display/PLUG/Triggering+SonarQube+on+Jenkins+Job#TriggeringSona
有没有人知道如何让作业根据命令(参数)跳过 SCM 步骤?我希望能够触发作业并使用现有 View (在我的例子中是 ClearCase,但可以是 SVN 工作副本)来运行构建。 这样做的动机是为了节省
我有一个大的多模块项目,我想为 Maven 指定 SCM 信息。 但是,每个模块和父项目在 SVN 上都有一个专用文件夹,因此 SCM 信息似乎特定于每个模块。 我需要为 connection 和 d
我正在迁移到 Gradle 作为 Java 项目的构建工具。 我的主要项目 (A) 依赖于其他项目 (B 和 C)。 目前这些项目中的每一个都单独在 CVS 中,当我想编译 A 时,我必须 check
问题:我需要一个适应度函数来确定分发元素的成本和数量。 表示: 我有 1 个配送中心 (DC)。 我有 3 个商店(S1、S2、S3) 如果某时 DC 有 30 件商品 A。商店要求 DC 向他们发送
我想将我的 Jenkins 备份数据与 git 存储库同步。所以我按照以下步骤操作: 1- 我已将 git global credential 设置到配置下的 jenkins GIT 选项中。 2-
我使用 Git 已经有一段时间了来管理我自己的个人项目。我真的没有想过我是如何使用它的。每当有一个没有真正考虑的里程碑时,我通常会提交所有更改。 但是看了一个blog post提到您应该如何正确提交消
作为项目配置的一部分,我正在尝试从 GitHub 存储库中 check out 特定标签。目前插件配置如下: org.apache.maven.plugins
由于以下错误,最近我无法提交: $ fossil commit $EDITOR './ci-comment-CEA221250987.txt' Unsafe command string: $EDIT
如果我将新的作业参数添加到 SCM 中保存的管道脚本,我该如何使用新参数更新 UI? (没有运行并且作业失败,因为管道尚未从 SCM 中拉出) 为了更详细,我在 SCM 中的管道脚本中添加了一个新参数
我在第一步使用简单的 BlueOcean 编辑器时遇到了困难。我正在尝试创建第一步构建/从版本控制中 check out 。 在一个必填字段中输入scm。我尝试了我的 repo 的 URL,但编辑器显
为正在运行的 Web 应用程序禁用 kudu。为什么? Kudu 会定期消耗 CPU,我想阻止它。 到目前为止,我已尝试通过单击“属性>>终止”按钮来终止该进程。但这个过程又开始了。 最佳答案 您可以
我看到他们有一个看起来像 WPF 的 Windows 版本,一个 mac 屏幕截图在标题栏中显示 Mono。 它是用 Mono 用 C# .NET 编写的吗? (我只是问,因为他们似乎做对了) 谢谢。
谁能告诉我 maven 中 scm connection 和 developerConnection 之间的区别? 我正在尝试使用 mvn release:prepare 进行构建它需要其中之一。 [
在我的项目中,我们必须使用 maben-build-number 插件来构造 jar 的最终名称,为此我们使用 SCN 的修订版,因此我们需要 SCM 但是我们在没有直接访问的受控环境和本地测试环境中
我是一名优秀的程序员,十分优秀!