LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 655|回复: 3

我不能安装urwid

[复制链接]
发表于 2009-10-20 22:04:48 | 显示全部楼层 |阅读模式

  1. >>> Emerging (1 of 1) dev-python/urwid-0.9.8.4
  2. * urwid-0.9.8.4.tar.gz RMD160 SHA1 SHA256 size ;-) ...                  [ ok ]
  3. * checking ebuild checksums ;-) ...                                     [ ok ]
  4. * checking auxfile checksums ;-) ...                                    [ ok ]
  5. * checking miscfile checksums ;-) ...                                   [ ok ]
  6. >>> Unpacking source...
  7. >>> Unpacking urwid-0.9.8.4.tar.gz to /var/tmp/portage/dev-python/urwid-0.9.8.4/work
  8. >>> Source unpacked in /var/tmp/portage/dev-python/urwid-0.9.8.4/work
  9. >>> Preparing source in /var/tmp/portage/dev-python/urwid-0.9.8.4/work/urwid-0.9.8.4 ...
  10. >>> Source prepared.
  11. >>> Configuring source in /var/tmp/portage/dev-python/urwid-0.9.8.4/work/urwid-0.9.8.4 ...
  12. >>> Source configured.
  13. >>> Compiling source in /var/tmp/portage/dev-python/urwid-0.9.8.4/work/urwid-0.9.8.4 ...
  14. * Building of dev-python/urwid-0.9.8.4 with Python 2.6...
  15. python2.6 setup.py build -b build-2.6
  16. running build
  17. running build_py
  18. creating build-2.6
  19. creating build-2.6/lib.linux-x86_64-2.6
  20. creating build-2.6/lib.linux-x86_64-2.6/urwid
  21. copying urwid/widget.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  22. copying urwid/web_display.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  23. copying urwid/util.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  24. copying urwid/raw_display.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  25. copying urwid/old_str_util.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  26. copying urwid/listbox.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  27. copying urwid/__init__.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  28. copying urwid/html_fragment.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  29. copying urwid/graphics.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  30. copying urwid/font.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  31. copying urwid/escape.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  32. copying urwid/curses_display.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  33. copying urwid/canvas.py -> build-2.6/lib.linux-x86_64-2.6/urwid
  34. running build_ext
  35. Traceback (most recent call last):
  36.   File "setup.py", line 100, in <module>
  37.     setup( ** setup_d )
  38.   File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
  39.     dist.run_commands()
  40.   File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
  41.     self.run_command(cmd)
  42.   File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
  43.     cmd_obj.run()
  44.   File "/usr/lib64/python2.6/distutils/command/build.py", line 134, in run
  45.     self.run_command(cmd_name)
  46.   File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command
  47.     self.distribution.run_command(command)
  48.   File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
  49.     cmd_obj.run()
  50.   File "/usr/lib64/python2.6/site-packages/setuptools/command/build_ext.py", line 46, in run
  51.     _build_ext.run(self)
  52.   File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 340, in run
  53.     self.build_extensions()
  54.   File "/usr/lib64/python2.6/site-packages/Pyrex/Distutils/build_ext.py", line 82, in build_extensions
  55.     self.build_extension(ext)
  56.   File "/usr/lib64/python2.6/site-packages/setuptools/command/build_ext.py", line 175, in build_extension
  57.     _build_ext.build_extension(self,ext)
  58.   File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 460, in build_extension
  59.     ext_path = self.get_ext_fullpath(ext.name)
  60.   File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 633, in get_ext_fullpath
  61.     filename = self.get_ext_filename(modpath[-1])
  62.   File "/usr/lib64/python2.6/site-packages/setuptools/command/build_ext.py", line 85, in get_ext_filename
  63.     ext = self.ext_map[fullname]
  64. KeyError: 'str_util'
  65. *
  66. * ERROR: dev-python/urwid-0.9.8.4 failed.
  67. * Call stack:
  68. *               ebuild.sh, line   49:  Called src_compile
  69. *             environment, line 3134:  Called distutils_src_compile
  70. *             environment, line  738:  Called python_execute_function 'building'
  71. *             environment, line 2793:  Called die
  72. * The specific snippet of code:
  73. *                       die "${failure_message}";
  74. *  The die message:
  75. *   Building failed with Python 2.6 in building() function
  76. *
  77. * If you need support, post the topmost build error, and the call stack if relevant.
  78. * A complete build log is located at '/var/log/port/dev-python:urwid-0.9.8.4:20091020-135508.log'.
  79. * The ebuild environment file is located at '/var/tmp/portage/dev-python/urwid-0.9.8.4/temp/environment'.
  80. *

  81. >>> Failed to emerge dev-python/urwid-0.9.8.4, Log file:

  82. >>>  '/var/log/port/dev-python:urwid-0.9.8.4:20091020-135508.log'

  83. * Messages for package dev-python/urwid-0.9.8.4:

  84. *
  85. * ERROR: dev-python/urwid-0.9.8.4 failed.
  86. * Call stack:
  87. *               ebuild.sh, line   49:  Called src_compile
  88. *             environment, line 3134:  Called distutils_src_compile
  89. *             environment, line  738:  Called python_execute_function 'building'
  90. *             environment, line 2793:  Called die
  91. * The specific snippet of code:
  92. *                       die "${failure_message}";
  93. *  The die message:
  94. *   Building failed with Python 2.6 in building() function
  95. *
  96. * If you need support, post the topmost build error, and the call stack if relevant.
  97. * A complete build log is located at '/var/log/port/dev-python:urwid-0.9.8.4:20091020-135508.log'.
  98. * The ebuild environment file is located at '/var/tmp/portage/dev-python/urwid-0.9.8.4/temp/environment'.

复制代码


请问这是怎么了?谢谢
发表于 2009-10-20 22:06:22 | 显示全部楼层
search bugs.gentoo.org, if you haven't
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-20 22:18:53 | 显示全部楼层
Post by zhllg;2038555
search bugs.gentoo.org, if you haven't


搜了,没搜到。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-21 17:38:25 | 显示全部楼层
用python的稳定分支,卸载python3后就可以了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表