构建 - 允许主机下载软件包

发布于 2025-01-10 05:46:22 字数 2045 浏览 0 评论 0原文

我有一个 Plone 5.0.5 部署,需要包 zc.zrs 进行 ZODB 复制。将信息添加到 buildout.cfg 后,我添加了 URL https://pypi.org/simple 在索引参数上:

[buildout]
extends = 
    base.cfg
    versions.cfg
index = https://pypi.org/simple

然后我运行构建并收到以下错误:

# sudo -u plone_buildout bin/buildout

Installing 'plone.recipe.zeoserver[zrs]'.
We have the distribution that satisfies 'plone.recipe.zeoserver[zrs]==1.2.9'.
Getting required 'zc.zrs'
We have no distributions for zc.zrs that satisfies 'zc.zrs'.
Download error on https://pypi.org/simple: hostname 'pypi.org' doesn't match either of 'www.python.org', '*.python.org', 'docs.python.org', 'downloads.python.org', 'pypi.python.org' -- Some packages may not be found!
Download error on https://pypi.org/simple/zc.zrs/: hostname 'pypi.org' doesn't match either of 'www.python.org', '*.python.org', 'docs.python.org', 'downloads.python.org', 'pypi.python.org' -- Some packages may not be found!
Couldn't find index page for 'zc.zrs' (maybe misspelled?)
Download error on https://pypi.org/simple/: hostname 'pypi.org' doesn't match either of 'www.python.org', '*.python.org', 'docs.python.org', 'downloads.python.org', 'pypi.python.org' -- Some packages may not be found!
Getting distribution for 'zc.zrs'.
Couldn't find index page for 'zc.zrs' (maybe misspelled?)
Could't load zc.buildout entry point default
from plone.recipe.zeoserver[zrs]:
Couldn't find a distribution for 'zc.zrs'..
While:
  Installing.
  Getting section zeoserver.
  Initializing section zeoserver.
  Installing recipe plone.recipe.zeoserver[zrs].
  Getting distribution for 'zc.zrs'.
Error: Couldn't find a distribution for 'zc.zrs'.

经过一些研究发现构建使用 easy_install,并尝试添加 本文档,但我'我遇到了同样的错误,就像没有改变任何东西一样。

如何允许从 Plone 构建中的 PyPI 下载?

I have a Plone 5.0.5 deployment and the need the package zc.zrs for ZODB replication. After adding the information to the buildout.cfg, I've added the URL https://pypi.org/simple on the index parameter:

[buildout]
extends = 
    base.cfg
    versions.cfg
index = https://pypi.org/simple

Then I run the buildout and get the following error:

# sudo -u plone_buildout bin/buildout

Installing 'plone.recipe.zeoserver[zrs]'.
We have the distribution that satisfies 'plone.recipe.zeoserver[zrs]==1.2.9'.
Getting required 'zc.zrs'
We have no distributions for zc.zrs that satisfies 'zc.zrs'.
Download error on https://pypi.org/simple: hostname 'pypi.org' doesn't match either of 'www.python.org', '*.python.org', 'docs.python.org', 'downloads.python.org', 'pypi.python.org' -- Some packages may not be found!
Download error on https://pypi.org/simple/zc.zrs/: hostname 'pypi.org' doesn't match either of 'www.python.org', '*.python.org', 'docs.python.org', 'downloads.python.org', 'pypi.python.org' -- Some packages may not be found!
Couldn't find index page for 'zc.zrs' (maybe misspelled?)
Download error on https://pypi.org/simple/: hostname 'pypi.org' doesn't match either of 'www.python.org', '*.python.org', 'docs.python.org', 'downloads.python.org', 'pypi.python.org' -- Some packages may not be found!
Getting distribution for 'zc.zrs'.
Couldn't find index page for 'zc.zrs' (maybe misspelled?)
Could't load zc.buildout entry point default
from plone.recipe.zeoserver[zrs]:
Couldn't find a distribution for 'zc.zrs'..
While:
  Installing.
  Getting section zeoserver.
  Initializing section zeoserver.
  Installing recipe plone.recipe.zeoserver[zrs].
  Getting distribution for 'zc.zrs'.
Error: Couldn't find a distribution for 'zc.zrs'.

After doing some research find out that the buildout uses easy_install, and tryed to add some parameters described from this documentation, but I'm getting the same errors like doesn't changed nothing.

How can I allow the download from PyPI from Plone buildout?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠檬色的秋千 2025-01-17 05:46:22

默认情况下,Plone 构建应该能够从 pypi 下载。
检查是否可以使用 wget 下载到下载文件夹中:

wget https://files.pythonhosted.org/packages/5c/b2/5a516f4883fc766ea37a9d979a5cacddc1b29df17140c14da26676a3c4b5/zc.zrs-3.1.0.tar.gz

您的目录中应该有一个 downloads 文件夹如果您使用的是默认安装程序,则 buildout-cache 文件夹。
有时,当服务器有一些奇怪的网络配置并且无法直接下载某些包时,我会这样做。

The Plone buildout should be able to download from pypi by default.
Check if you can download with wget into your download folder:

wget https://files.pythonhosted.org/packages/5c/b2/5a516f4883fc766ea37a9d979a5cacddc1b29df17140c14da26676a3c4b5/zc.zrs-3.1.0.tar.gz

You should have a downloads folder in your buildout-cache folder, if you are using the default installer.
I do that sometimes when the server has some strange network configurations and can't download some packages directly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文