我如何在 Mastering Plone Training 中修复 "Couldn't find a distribution for 'ploneconf.site'"
How I fix "Couldn't find a distribution for 'ploneconf.site'" in Mastering Plone Training
我正在学习使用 Mastering Plone 为 plone (4.3.10) 创建自定义产品,当我安装使用 mrbob 创建的新包时我停在 section。
Here 是我的扩建(我取消注释由 trainnig 通知的行)
还有我的目录:
jafar@plonedev:~/training/buildout$ pwd
/home/jafar/training/buildout
jafar@plonedev:~/training/buildout$ ls -l src
drwxrwxr-x 4 jafar jafar 4096 Ago 22 16:15 ploneconf.site
drwxrwxr-x 4 jafar jafar 4096 Ago 22 15:13 ploneconf.site_sneak
[更新]
我在训练中又做了一遍,构建是 http://paster.org/m/lnpaxn,我使用这个命令创建了包:
$ cd src
$ ../bin/mrbob -O ploneconf.site bobtemplates:plone_addon
回答问题后...我 运行 构建,这是我的输出:
(py27) jafar@plonedev:~/training/buildout/src$ ls
ploneconf.site ploneconf.site_sneak
(py27) jafar@plonedev:~/training/buildout/src$ cd ..
(py27) jafar@plonedev:~/training/buildout$ vim buildout.cfg
(py27) jafar@plonedev:~/training/buildout$ ./bin/buildout
mr.developer: Queued 'ploneconf.site_sneak' for checkout.
mr.developer: Updated 'ploneconf.site_sneak' with git.
Upgraded:
setuptools version 20.1.1;
restarting.
Generated script '/home/jafar/training/buildout/bin/buildout'.
mr.developer: Queued 'ploneconf.site_sneak' for checkout.
mr.developer: Updated 'ploneconf.site_sneak' with git.
Uninstalling zopepy.
Uninstalling packages.
Running uninstall recipe.
Uninstalling instance.
Uninstalling codeintel.
Updating _mr.developer.
Updating checkversions.
Installing codeintel.
Couldn't find index page for 'ploneconf.site' (maybe misspelled?)
Getting distribution for 'ploneconf.site'.
Couldn't find index page for 'ploneconf.site' (maybe misspelled?)
While:
Installing codeintel.
Getting distribution for 'ploneconf.site'.
Error: Couldn't find a distribution for 'ploneconf.site'.
只记得...
我正在学习这个培训:
https://training.plone.org/4/eggs1.html#including-the-egg-in-plone
[更新 2]
我认为问题出在 buildout.cfg,在 SOURCE 部分我们有这个
[sources]
ploneconf.site = fs ploneconf.site full-path=${buildout:directory}/src/ploneconf.site
我尝试将 ${buildout:directory} 替换为完整路径
/home/jafar/training/buildout/src/ploneconf.site
然而,它没有用!
mrbob生成的产品内容
jafar@plonedev:~/training/buildout/src/ploneconf.site$ ls
bootstrap-buildout.py bootstrap-buildout.pyo CHANGES.rst docs README.rst setup.py travis.cfg
bootstrap-buildout.pyc buildout.cfg CONTRIBUTORS.rst MANIFEST.in setup.cfg src
我在 eggs 和 zcml 之后的 [buildout] 部分插入:
develop =
src/ploneconf.site
如 Plone Docs, the way teaching in training Mastering Plone 4 中所见,无效。
我正在学习使用 Mastering Plone 为 plone (4.3.10) 创建自定义产品,当我安装使用 mrbob 创建的新包时我停在 section。
Here 是我的扩建(我取消注释由 trainnig 通知的行)
还有我的目录:
jafar@plonedev:~/training/buildout$ pwd
/home/jafar/training/buildout
jafar@plonedev:~/training/buildout$ ls -l src
drwxrwxr-x 4 jafar jafar 4096 Ago 22 16:15 ploneconf.site
drwxrwxr-x 4 jafar jafar 4096 Ago 22 15:13 ploneconf.site_sneak
[更新]
我在训练中又做了一遍,构建是 http://paster.org/m/lnpaxn,我使用这个命令创建了包:
$ cd src
$ ../bin/mrbob -O ploneconf.site bobtemplates:plone_addon
回答问题后...我 运行 构建,这是我的输出:
(py27) jafar@plonedev:~/training/buildout/src$ ls
ploneconf.site ploneconf.site_sneak
(py27) jafar@plonedev:~/training/buildout/src$ cd ..
(py27) jafar@plonedev:~/training/buildout$ vim buildout.cfg
(py27) jafar@plonedev:~/training/buildout$ ./bin/buildout
mr.developer: Queued 'ploneconf.site_sneak' for checkout.
mr.developer: Updated 'ploneconf.site_sneak' with git.
Upgraded:
setuptools version 20.1.1;
restarting.
Generated script '/home/jafar/training/buildout/bin/buildout'.
mr.developer: Queued 'ploneconf.site_sneak' for checkout.
mr.developer: Updated 'ploneconf.site_sneak' with git.
Uninstalling zopepy.
Uninstalling packages.
Running uninstall recipe.
Uninstalling instance.
Uninstalling codeintel.
Updating _mr.developer.
Updating checkversions.
Installing codeintel.
Couldn't find index page for 'ploneconf.site' (maybe misspelled?)
Getting distribution for 'ploneconf.site'.
Couldn't find index page for 'ploneconf.site' (maybe misspelled?)
While:
Installing codeintel.
Getting distribution for 'ploneconf.site'.
Error: Couldn't find a distribution for 'ploneconf.site'.
只记得...
我正在学习这个培训: https://training.plone.org/4/eggs1.html#including-the-egg-in-plone
[更新 2]
我认为问题出在 buildout.cfg,在 SOURCE 部分我们有这个
[sources]
ploneconf.site = fs ploneconf.site full-path=${buildout:directory}/src/ploneconf.site
我尝试将 ${buildout:directory} 替换为完整路径
/home/jafar/training/buildout/src/ploneconf.site
然而,它没有用!
mrbob生成的产品内容
jafar@plonedev:~/training/buildout/src/ploneconf.site$ ls
bootstrap-buildout.py bootstrap-buildout.pyo CHANGES.rst docs README.rst setup.py travis.cfg
bootstrap-buildout.pyc buildout.cfg CONTRIBUTORS.rst MANIFEST.in setup.cfg src
我在 eggs 和 zcml 之后的 [buildout] 部分插入:
develop =
src/ploneconf.site
如 Plone Docs, the way teaching in training Mastering Plone 4 中所见,无效。