安装分发 0.6.10 后出现粘贴错误

发布于 2024-08-15 03:21:42 字数 584 浏览 6 评论 0原文

过去几周我一直在 Plone 网站上工作,这是我第一次使用构建菜谱和粘贴模板生成的网站,这是一个学习曲线。

两天前,一切正常。

昨天,我开始从我已知的良好来源开始工作,并使用粘贴器为新原型生成样板,工作得很好。我编辑了构建(就像我之前做过几次一样)以考虑新项目,运行构建,并得到一个挂起的构建(不断重复它正在生成分发)

谷歌搜索表明这是由于版本不匹配,并且我应该升级到最新版本的分发,所以我这样做了(到0.6.10)

现在,该错误消失了,但是粘贴的能力也消失了。甚至跑步 paster create --list-templates 排除错误:

F:\Plone\src>paster create --list-templates

回溯(最近一次调用最后一次): 文件“F:\Plone\Python\Scripts\paster-script.py”,第 5 行,在? 从 pkg_resources 导入 load_entry_point ImportError:没有名为 pkg_resources 的模块

希望有人可以提供帮助,b/c 我现在很停滞。

Been working on a Plone site for the last few weeks, it's the first time I've worked on one using buildout for recipes and paster for template generation, and it's been a learning curve.

two days ago, everything was working fine.

Yesterday, I started working from my known good source and used paster to generate boilerplate for a new archetype, worked fine. I edited the buildout (as I've done several times before) to account for the new item, ran buildout, and got a hung build (kept repeating that it was generating distribute)

Googling indicated that this was due to a version mismatch, and that I should upgrade to the latest version of distribute, so I did so (to 0.6.10)

Now, that error is gone, but so is any ability to do paster. Even running
paster create --list-templates
kicks out the error:

F:\Plone\src>paster create --list-templates

Traceback (most recent call last):
File "F:\Plone\Python\Scripts\paster-script.py", line 5, in ?
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

Hope someone can help, b/c I'm pretty stalled right now.

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

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

发布评论

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

评论(3

虚拟世界 2024-08-22 03:21:42

事实证明,问题与新版本的分发有关,显然没有正确压缩旧版本。我必须手动重命名旧鸡蛋,删除新鸡蛋,然后重新安装新鸡蛋。

Turns out, the problem had to do with the new version of distribute apparently doesn't squash the old version correctly. I had to manually rename the old egg, delete teh new one, then re-install the new one.

我乃一代侩神 2024-08-22 03:21:42

您可以删除分发鸡蛋并重新安装。

如果您的 easy_install 产生类似的问题(我的在删除 setuptools Egg 后出现),您可以手动重新安装分发:

$ curl -O http://python-distribute.org/distribute_setup.py
$ python distribute_setup.py

You're spot on to delete the distribute egg and reinstall.

If your easy_install produces a similar issue (mine did after deleting my setuptools egg) you can manually reinstall distribute with:

$ curl -O http://python-distribute.org/distribute_setup.py
$ python distribute_setup.py
思慕 2024-08-22 03:21:42

也许这有帮助?

新的分发版本:使用 new zc.buildout 来防止递归

我不太了解堆栈的特定部分,但可能相关?

Maybe this helps?

New distribute release: use new zc.buildout to prevent recursion

I don't know that much about that particular part of the stack, but might be related?

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