如何解决Plone中依赖项之间的冲突?

2024-05-13 12:33:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在为Plone 5.1编写一个附加组件。我已经向我的加载项的setup.pyinstall_requires参数添加了依赖项。我还添加了我的附加组件(埃斯佩罗斯.维梅奥)普隆的buildout.cfg。但是,在运行buildout时,出现以下错误:

ryselis@ryselis-All-Series:~/Plone/zinstance$ bin/buildout -c develop.cfg
mr.developer: Queued 'esperonus.vimeo_plone' for checkout.
mr.developer: Filesystem package 'esperonus.vimeo_plone' doesn't need a checkout.
Develop: '/home/ryselis/Plone/zinstance/src/esperonus.vimeo_plone'
Updating _mr.developer.
Installing instance.
Version and requirements information containing certifi:
  [versions] constraint on certifi: 2017.11.5
  Requirement of tuspy==0.2.1: certifi==2017.7.27.1
  Requirement of requests>=2.4.0: certifi>=2017.4.17
While:
  Installing instance.
Error: The requirement ('certifi==2017.7.27.1') is not allowed by your [versions] constraint (2017.11.5)

看起来VimeoPy需要不同版本的certifi而不是tuspy(我猜这是Plone的依赖?)。我能做些什么把VimeoPy添加到我的插件中吗?你知道吗


Tags: instancedeveloperplonebuildout组件cfgmrcheckout
1条回答
网友
1楼 · 发布于 2024-05-13 12:33:50

这通常意味着您在构建配置中固定了与软件包想要安装的版本不同的版本。您可以从构建配置中移除固定,只要您有理由这样做。 新的构建版本通常有一个名为“更新版本文件”的选项,该选项指向包含版本列表的构建配置文件。Buildout将添加所有选择的版本,这些版本没有固定在其中,并为您添加它们,以便您以后可以使用完全相同的版本重建此配置。 但是这些固定是可以保存以删除的,特别是当您有需要不同版本的包时。你知道吗

相关问题 更多 >