无法创建zope项目

发布于 2024-11-09 18:52:27 字数 4580 浏览 0 评论 0原文

我是一名 zope/python newbee(高级 Java 程序员),由于缺乏经验,我在启动时遇到了一些麻烦。

我正在使用 Ubuntu 10.4,并且我已经为 python 配置了 Virtualenv。我切换到 virtualenv,安装了 setuptools 包并在终端上发出此问题:

(zope3)makcro@makcro-laptop:~/tmp/zope_playground$ zopeproject helloworld

并得到以下结果:

Enter user (Name of an initial administrator user): admin
Enter passwd (Password for the initial administrator user): admin
Enter eggs_dir (Location where zc.buildout will look for and place packages) ['/home/makcro/.buildout/eggs']: eggs
Creating directory ./helloworld
Downloading zc.buildout...
Invoking zc.buildout...
While:
  Installing.
  Getting section app.
  Initializing section app.
  Installing recipe zc.recipe.egg.
Error: There is a version conflict.
We already have: setuptools 0.6c11

对于我尝试过的更详细结果:

(zope3)makcro@makcro-laptop:~/tmp/zope_playground$ zopeproject helloworld --verbose

返回:

Selected and implied templates:
  zopeproject#zope_deploy  (Paste) deployment of a Zope application
  zopeproject#zope_app     Package that contains a Zope application

Variables:
  egg:      helloworld
  newest:   false
  package:  helloworld
  project:  helloworld
Enter user (Name of an initial administrator user): admin
Enter passwd (Password for the initial administrator user): admin
Enter eggs_dir (Location where zc.buildout will look for and place packages) ['/home/makcro/.buildout/eggs']: eggs
Creating template zope_deploy
Creating directory ./helloworld
  Copying apidoc.zcml to ./helloworld/apidoc.zcml
  Copying buildout.cfg_tmpl to ./helloworld/buildout.cfg
  Copying debug.ini_tmpl to ./helloworld/debug.ini
  Copying deploy.ini_tmpl to ./helloworld/deploy.ini
  Recursing into log
    Creating ./helloworld/log/
    Copying README.txt to ./helloworld/log/README.txt
  Copying site.zcml_tmpl to ./helloworld/site.zcml
  Recursing into var
    Creating ./helloworld/var/
    Copying README.txt to ./helloworld/var/README.txt
  Copying zdaemon.conf to ./helloworld/zdaemon.conf
  Copying zope.conf to ./helloworld/zope.conf
Creating template zope_app
  Copying setup.py_tmpl to ./helloworld/setup.py
  Recursing into src
    Creating ./helloworld/src/
    Recursing into +package+
      Creating ./helloworld/src/helloworld/
      Copying __init__.py to ./helloworld/src/helloworld/__init__.py
      Copying configure.zcml_tmpl to ./helloworld/src/helloworld/configure.zcml
      Copying ftesting.zcml_tmpl to ./helloworld/src/helloworld/ftesting.zcml
      Copying startup.py to ./helloworld/src/helloworld/startup.py
      Copying testing.py to ./helloworld/src/helloworld/testing.py
Running /home/makcro/devel/virt_env/zope3/bin/python setup.py egg_info
Downloading zc.buildout...
Searching for zc.buildout
Reading http://pypi.python.org/simple/zc.buildout/
Reading http://buildout.org
Best match: zc.buildout 1.5.2
Downloading http://pypi.python.org/packages/source/z/zc.buildout/zc.buildout-1.5.2.tar.gz#md5=87f7b3f8d13926c806242fd5f6fe36f7
Processing zc.buildout-1.5.2.tar.gz
Running zc.buildout-1.5.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-GSG8Wc/zc.buildout-1.5.2/egg-dist-tmp-VVmlKA

Installed /tmp/tmprT0Ycp/zc.buildout-1.5.2-py2.6.egg

Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:

    pkg_resources.require("zc.buildout")  # latest installed version
    pkg_resources.require("zc.buildout==1.5.2")  # this exact version
    pkg_resources.require("zc.buildout>=1.5.2")  # this version or higher

Creating directory '/home/makcro/tmp/zope_playground/helloworld/bin'.
Creating directory '/home/makcro/tmp/zope_playground/helloworld/parts'.
Creating directory '/home/makcro/tmp/zope_playground/helloworld/eggs'.
Creating directory '/home/makcro/tmp/zope_playground/helloworld/develop-eggs'.
Getting distribution for 'setuptools==0.6c9'.
Got setuptools 0.6c9.
Getting distribution for 'zc.buildout==1.1.1'.
Got zc.buildout 1.1.1.
Generated script '/home/makcro/tmp/zope_playground/helloworld/bin/buildout'.
Invoking zc.buildout...
Downloading http://download.zope.org/zope3.4/3.4.0/versions.cfg
While:
  Installing.
  Getting section app.
  Initializing section app.
  Installing recipe zc.recipe.egg.
Error: There is a version conflict.
We already have: setuptools 0.6c11

看起来 setuptools 版本 0.6c9 和 0.6c11 中存在冲突..如何解决此问题?

总氮

I'm a zope/python newbee (senior Java programer) and due to inexperience I'm having some troubles starting up.

Im working on Ubuntu 10.4 and I have configured Virtualenv for python. I switched to virtualenv, installed setuptools package and issues this at terminal:

(zope3)makcro@makcro-laptop:~/tmp/zope_playground$ zopeproject helloworld

and go the following result:

Enter user (Name of an initial administrator user): admin
Enter passwd (Password for the initial administrator user): admin
Enter eggs_dir (Location where zc.buildout will look for and place packages) ['/home/makcro/.buildout/eggs']: eggs
Creating directory ./helloworld
Downloading zc.buildout...
Invoking zc.buildout...
While:
  Installing.
  Getting section app.
  Initializing section app.
  Installing recipe zc.recipe.egg.
Error: There is a version conflict.
We already have: setuptools 0.6c11

for more verbose result I tried:

(zope3)makcro@makcro-laptop:~/tmp/zope_playground$ zopeproject helloworld --verbose

which returned:

Selected and implied templates:
  zopeproject#zope_deploy  (Paste) deployment of a Zope application
  zopeproject#zope_app     Package that contains a Zope application

Variables:
  egg:      helloworld
  newest:   false
  package:  helloworld
  project:  helloworld
Enter user (Name of an initial administrator user): admin
Enter passwd (Password for the initial administrator user): admin
Enter eggs_dir (Location where zc.buildout will look for and place packages) ['/home/makcro/.buildout/eggs']: eggs
Creating template zope_deploy
Creating directory ./helloworld
  Copying apidoc.zcml to ./helloworld/apidoc.zcml
  Copying buildout.cfg_tmpl to ./helloworld/buildout.cfg
  Copying debug.ini_tmpl to ./helloworld/debug.ini
  Copying deploy.ini_tmpl to ./helloworld/deploy.ini
  Recursing into log
    Creating ./helloworld/log/
    Copying README.txt to ./helloworld/log/README.txt
  Copying site.zcml_tmpl to ./helloworld/site.zcml
  Recursing into var
    Creating ./helloworld/var/
    Copying README.txt to ./helloworld/var/README.txt
  Copying zdaemon.conf to ./helloworld/zdaemon.conf
  Copying zope.conf to ./helloworld/zope.conf
Creating template zope_app
  Copying setup.py_tmpl to ./helloworld/setup.py
  Recursing into src
    Creating ./helloworld/src/
    Recursing into +package+
      Creating ./helloworld/src/helloworld/
      Copying __init__.py to ./helloworld/src/helloworld/__init__.py
      Copying configure.zcml_tmpl to ./helloworld/src/helloworld/configure.zcml
      Copying ftesting.zcml_tmpl to ./helloworld/src/helloworld/ftesting.zcml
      Copying startup.py to ./helloworld/src/helloworld/startup.py
      Copying testing.py to ./helloworld/src/helloworld/testing.py
Running /home/makcro/devel/virt_env/zope3/bin/python setup.py egg_info
Downloading zc.buildout...
Searching for zc.buildout
Reading http://pypi.python.org/simple/zc.buildout/
Reading http://buildout.org
Best match: zc.buildout 1.5.2
Downloading http://pypi.python.org/packages/source/z/zc.buildout/zc.buildout-1.5.2.tar.gz#md5=87f7b3f8d13926c806242fd5f6fe36f7
Processing zc.buildout-1.5.2.tar.gz
Running zc.buildout-1.5.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-GSG8Wc/zc.buildout-1.5.2/egg-dist-tmp-VVmlKA

Installed /tmp/tmprT0Ycp/zc.buildout-1.5.2-py2.6.egg

Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:

    pkg_resources.require("zc.buildout")  # latest installed version
    pkg_resources.require("zc.buildout==1.5.2")  # this exact version
    pkg_resources.require("zc.buildout>=1.5.2")  # this version or higher

Creating directory '/home/makcro/tmp/zope_playground/helloworld/bin'.
Creating directory '/home/makcro/tmp/zope_playground/helloworld/parts'.
Creating directory '/home/makcro/tmp/zope_playground/helloworld/eggs'.
Creating directory '/home/makcro/tmp/zope_playground/helloworld/develop-eggs'.
Getting distribution for 'setuptools==0.6c9'.
Got setuptools 0.6c9.
Getting distribution for 'zc.buildout==1.1.1'.
Got zc.buildout 1.1.1.
Generated script '/home/makcro/tmp/zope_playground/helloworld/bin/buildout'.
Invoking zc.buildout...
Downloading http://download.zope.org/zope3.4/3.4.0/versions.cfg
While:
  Installing.
  Getting section app.
  Initializing section app.
  Installing recipe zc.recipe.egg.
Error: There is a version conflict.
We already have: setuptools 0.6c11

Looks like there is a conflict in setuptools versions 0.6c9 and 0.6c11.. how to resolve this?

Tnx

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文