Python的Turboears2框架,组件依赖问题,repoze.who-friendlyform版本冲突问题

发布于 2022-08-29 20:54:35 字数 20136 浏览 25 评论 0

install_requires=[
"TurboGears2 >= 2.3.3",
"Genshi",
版本依赖:

"zope.sqlalchemy >= 0.4",
"sqlalchemy",
"alembic",

"repoze.who",
"repoze.who.plugins.sa",
"repoze.who-friendlyform >= 1.0.4",

"tw2.forms",


"tgext.admin >= 0.6.1",
"webhelpers",
"tgext.datahelpers",

运行安装:
(t4)hawk@hawk:~/g/t4/wikir$ pip-3.3 install -e .
Obtaining file:///home/hawk/g/t4/wikir
Running setup.py egg_info for package from file:///home/hawk/g/t4/wikir
/usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'message_extractors'
warnings.warn(msg)

Requirement already satisfied (use --upgrade to upgrade): TurboGears2>=2.3.3 in /home/hawk/g/t4/lib/python3.3/site-packages (from wikir==0.1dev)
Requirement already satisfied (use --upgrade to upgrade): Genshi in /home/hawk/g/t4/lib/python3.3/site-packages (from wikir==0.1dev)
Requirement already satisfied (use --upgrade to upgrade): zope.sqlalchemy>=0.4 in /home/hawk/g/t4/lib/python3.3/site-packages (from wikir==0.1dev)
Requirement already satisfied (use --upgrade to upgrade): sqlalchemy in /home/hawk/g/t4/lib/python3.3/site-packages (from wikir==0.1dev)
Requirement already satisfied (use --upgrade to upgrade): alembic in /home/hawk/g/t4/lib/python3.3/site-packages (from wikir==0.1dev)
Requirement already satisfied (use --upgrade to upgrade): repoze.who in /home/hawk/g/t4/lib/python3.3/site-packages (from wikir==0.1dev)
Requirement already satisfied (use --upgrade to upgrade): repoze.who.plugins.sa in /home/hawk/g/t4/lib/python3.3/site-packages (from wikir==0.1dev)
Downloading/unpacking repoze.who-friendlyform>=1.0.4 (from wikir==0.1dev)
Downloading repoze.who-friendlyform-1.0.8.tar.gz
Running setup.py egg_info for package repoze.who-friendlyform
Traceback (most recent call last):
File "", line 16, in
File "/home/hawk/g/t4/build/repoze.who-friendlyform/setup.py", line 18, in
from ez_setup import use_setuptools
File "./ez_setup.py", line 94
except pkg_resources.VersionConflict, e:
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 16, in

File "/home/hawk/g/t4/build/repoze.who-friendlyform/setup.py", line 18, in

from ez_setup import use_setuptools

File "./ez_setup.py", line 94

except pkg_resources.VersionConflict, e:

                                    ^

SyntaxError: invalid syntax


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/hawk/g/t4/build/repoze.who-friendlyform
Storing complete log in /home/hawk/.pip/pip.log


/home/hawk/g/t4/bin/pip-3.3 run on Tue Sep 23 16:22:01 2014
Downloading/unpacking repoze.who-friendlyform

Getting page https://pypi.python.org/simple/repoze.who-friendlyform/
URLs to search for versions for repoze.who-friendlyform:
* https://pypi.python.org/simple/repoze.who-friendlyform/
Analyzing links from page https://pypi.python.org/simple/repoze.who-friendlyform/
Skipping link https://pypi.python.org/packages/2.6/r/repoze.who-friendlyform/repoze.who_friendlyform-1.0-py2.6.egg#md5=8744b583a3fd218f572afc0c2dce6198 (from https://pypi.python.org/simple/repoze.who-friendlyform/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/r/repoze.who-friendlyform/repoze.who_friendlyform-1.0.1-py2.6.egg#md5=5b46eeec70fbd0f97af398fbe0b58fb5 (from https://pypi.python.org/simple/repoze.who-friendlyform/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/r/repoze.who-friendlyform/repoze.who_friendlyform-1.0.3-py2.6.egg#md5=53d3ef00e826883aa84728571cd502d3 (from https://pypi.python.org/simple/repoze.who-friendlyform/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/r/repoze.who-friendlyform/repoze.who_friendlyform-1.0.4-py2.6.egg#md5=c007bc872457da6af482d12c9009adc2 (from https://pypi.python.org/simple/repoze.who-friendlyform/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/r/repoze.who-friendlyform/repoze.who_friendlyform-1.0.5-py2.6.egg#md5=cc0b6723a1d3ce28e025944795990b5b (from https://pypi.python.org/simple/repoze.who-friendlyform/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/r/repoze.who-friendlyform/repoze.who_friendlyform-1.0.6-py2.6.egg#md5=d088b40611f9b383e82ba5240825e763 (from https://pypi.python.org/simple/repoze.who-friendlyform/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/r/repoze.who-friendlyform/repoze.who_friendlyform-1.0.8-py2.6.egg#md5=1f22dc6a27f2c7eadd38dbec1141008a (from https://pypi.python.org/simple/repoze.who-friendlyform/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/r/repoze.who-friendlyform/repoze.who_friendlyform-1.0b1-py2.6.egg#md5=c90882b331b3e810732743e1225881eb (from https://pypi.python.org/simple/repoze.who-friendlyform/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/r/repoze.who-friendlyform/repoze.who_friendlyform-1.0b2-py2.6.egg#md5=60a78e6172ffe9f67bd982503fe185df (from https://pypi.python.org/simple/repoze.who-friendlyform/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/r/repoze.who-friendlyform/repoze.who_friendlyform-1.0b3-py2.6.egg#md5=ce30011a03f9495f6d7b130e7deaeb60 (from https://pypi.python.org/simple/repoze.who-friendlyform/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0.1.tar.gz#md5=701920d1ed47009e3a6a4411c22e11be (from https://pypi.python.org/simple/repoze.who-friendlyform/), version: 1.0.1
Found link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0.3.tar.gz#md5=24e28a48c541a2cd54b5c43d242aaaec (from https://pypi.python.org/simple/repoze.who-friendlyform/), version: 1.0.3
Found link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0.4.tar.gz#md5=2e686de59bc753dd104dded42f65388f (from https://pypi.python.org/simple/repoze.who-friendlyform/), version: 1.0.4
Found link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0.5.tar.gz#md5=e8a1cd486a1ef2111e13241fadfed917 (from https://pypi.python.org/simple/repoze.who-friendlyform/), version: 1.0.5
Found link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0.6.tar.gz#md5=e144ea937378b9ac974c67bc2663565d (from https://pypi.python.org/simple/repoze.who-friendlyform/), version: 1.0.6
Found link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0.8.tar.gz#md5=26031f2f3b7c3ba922c0bbc88f0a04be (from https://pypi.python.org/simple/repoze.who-friendlyform/), version: 1.0.8
Found link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0.tar.gz#md5=ccc034a48a636d0bb9ae7050986654a9 (from https://pypi.python.org/simple/repoze.who-friendlyform/), version: 1.0
Found link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0b1.tar.gz#md5=5b1decc3b74c46531dc27adead0bb1d9 (from https://pypi.python.org/simple/repoze.who-friendlyform/), version: 1.0b1
Found link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0b2.tar.gz#md5=0b1dd479245e2f211b38f596794db100 (from https://pypi.python.org/simple/repoze.who-friendlyform/), version: 1.0b2
Found link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0b3.tar.gz#md5=f657d563c985769e1ee76d092547b499 (from https://pypi.python.org/simple/repoze.who-friendlyform/), version: 1.0b3
Ignoring link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0b1.tar.gz#md5=5b1decc3b74c46531dc27adead0bb1d9 (from https://pypi.python.org/simple/repoze.who-friendlyform/), version 1.0b1 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0b2.tar.gz#md5=0b1dd479245e2f211b38f596794db100 (from https://pypi.python.org/simple/repoze.who-friendlyform/), version 1.0b2 is a pre-release (use --pre to allow).
Ignoring link https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0b3.tar.gz#md5=f657d563c985769e1ee76d092547b499 (from https://pypi.python.org/simple/repoze.who-friendlyform/), version 1.0b3 is a pre-release (use --pre to allow).
Using version 1.0.8 (newest of versions: 1.0.8, 1.0.6, 1.0.5, 1.0.4, 1.0.3, 1.0.1, 1.0)
Downloading repoze.who-friendlyform-1.0.8.tar.gz

Downloading from URL https://pypi.python.org/packages/source/r/repoze.who-friendlyform/repoze.who-friendlyform-1.0.8.tar.gz#md5=26031f2f3b7c3ba922c0bbc88f0a04be (from https://pypi.python.org/simple/repoze.who-friendlyform/)
Running setup.py egg_info for package repoze.who-friendlyform

Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/home/hawk/g/t4/build/repoze.who-friendlyform/setup.py", line 18, in <module>

    from ez_setup import use_setuptools

  File "./ez_setup.py", line 94

    except pkg_resources.VersionConflict, e:

                                        ^

SyntaxError: invalid syntax

Complete output from command python setup.py egg_info:

Traceback (most recent call last):

File "", line 16, in

File "/home/hawk/g/t4/build/repoze.who-friendlyform/setup.py", line 18, in

from ez_setup import use_setuptools

File "./ez_setup.py", line 94

except pkg_resources.VersionConflict, e:

                                    ^

SyntaxError: invalid syntax


Cleaning up...

Removing temporary dir /home/hawk/g/t4/build...
Command python setup.py egg_info failed with error code 1 in /home/hawk/g/t4/build/repoze.who-friendlyform

Exception information:
Traceback (most recent call last):
File "/home/hawk/g/t4/lib/python3.3/site-packages/pip/basecommand.py", line 134, in main
status = self.run(options, args)
File "/home/hawk/g/t4/lib/python3.3/site-packages/pip/commands/install.py", line 236, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/hawk/g/t4/lib/python3.3/site-packages/pip/req.py", line 1134, in prepare_files
req_to_install.run_egg_info()
File "/home/hawk/g/t4/lib/python3.3/site-packages/pip/req.py", line 259, in run_egg_info
command_desc='python setup.py egg_info')
File "/home/hawk/g/t4/lib/python3.3/site-packages/pip/util.py", line 670, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in /home/hawk/g/t4/build/repoze.who-friendlyform

(t4)hawk@hawk:~/g/t4/wikir$ pip-3.3 search repoze.who-friendlyform
repoze.who-friendlyform - Collection of repoze.who friendly form plugins
(t4)hawk@hawk:~/g/t4/wikir$ pip-3.3 install repoze.who-friendlyform
Downloading/unpacking repoze.who-friendlyform
Downloading repoze.who-friendlyform-1.0.8.tar.gz
Running setup.py egg_info for package repoze.who-friendlyform
Traceback (most recent call last):
File "", line 16, in
File "/home/hawk/g/t4/build/repoze.who-friendlyform/setup.py", line 18, in
from ez_setup import use_setuptools
File "./ez_setup.py", line 94
except pkg_resources.VersionConflict, e:
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 16, in

File "/home/hawk/g/t4/build/repoze.who-friendlyform/setup.py", line 18, in

from ez_setup import use_setuptools

File "./ez_setup.py", line 94

except pkg_resources.VersionConflict, e:

                                    ^

SyntaxError: invalid syntax


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/hawk/g/t4/build/repoze.who-friendlyform
Storing complete log in /home/hawk/.pip/pip.log
================================================================系统环境:

uname -a
Linux hawk 3.11.0-26-generic #45-Ubuntu SMP Tue Jul 15 04:02:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

virtualenv环境:

activate.csh pilconvert.py python3
activate.fish pildriver.py python3.3
easy_install-3.3 pip rst2odt_prepstyles.py

gearbox pip-3.3 rst2odt.py

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

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

发布评论

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