pyScss安装失败

时间:2014-06-08 10:37:53

标签: python pip

从今天6月8日开始,我在尝试使用pip安装pyScss时遇到此错误:

$ pip install "pyScss>=1.1.5"
Downloading/unpacking pyScss>=1.1.5
  Downloading pyScss-1.2.0.post3.tar.gz (94kB): 94kB downloaded
  Running setup.py (path:/private/tmp/venv/build/pyScss/setup.py) egg_info for package pyScss
    no previously-included directories found matching 'documentation/_build'
    zip_safe flag not set; analyzing archive contents...
    six: module references __path__

    Installed /private/tmp/venv/build/pyScss/six-1.7.0-py2.7.egg
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/private/tmp/venv/build/pyScss/setup.py", line 13, in <module>
        from scss.scss_meta import PROJECT, URL, VERSION, AUTHOR, AUTHOR_EMAIL, LICENSE, DOWNLOAD_URL
      File "scss/__init__.py", line 69, in <module>
        from scss.functions import ALL_BUILTINS_LIBRARY
      File "scss/functions/__init__.py", line 5, in <module>
        from scss.functions.core import CORE_LIBRARY
      File "scss/functions/core.py", line 11, in <module>
        from six.moves import xrange
      File "/var/folders/v6/mg7h8rjd4bbf51n7dm1j00jc0000gn/T/easy_install-pX0iRW/six-1.7.0/six.py", line 187, in load_module
        return sys.modules[fullname]
    AttributeError: 'NoneType' object has no attribute 'modules'
    Complete output from command python setup.py egg_info:
    no previously-included directories found matching 'documentation/_build'

zip_safe flag not set; analyzing archive contents...

six: module references __path__



Installed /private/tmp/venv/build/pyScss/six-1.7.0-py2.7.egg

Traceback (most recent call last):

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

  File "/private/tmp/venv/build/pyScss/setup.py", line 13, in <module>

    from scss.scss_meta import PROJECT, URL, VERSION, AUTHOR, AUTHOR_EMAIL, LICENSE, DOWNLOAD_URL

  File "scss/__init__.py", line 69, in <module>

    from scss.functions import ALL_BUILTINS_LIBRARY

  File "scss/functions/__init__.py", line 5, in <module>

from scss.functions.core import CORE_LIBRARY

  File "scss/functions/core.py", line 11, in <module>

    from six.moves import xrange

  File "/var/folders/v6/mg7h8rjd4bbf51n7dm1j00jc0000gn/T/easy_install-pX0iRW/six-1.7.0/six.py", line 187, in load_module

    return sys.modules[fullname]

AttributeError: 'NoneType' object has no attribute 'modules'

----------------------------------------
Cleaning up...

这似乎是由今天发布的Six 1.7.0(之前的相同安装)触发的。在pyScss安装的setup.py egg_info阶段似乎使用了六个。触发失败的“私有”六次安装。

注意:

在安装pyScss之前在单独的pip命令中安装六个解析它,但是

  • 包含six==1.6.1pyScss的需求文件将以相同方式失败。
  • 请求文件包含six==1.7.0pyScss

知道如何从需求文件安装pyScss而不需要单独的pip install six步骤吗?

1 个答案:

答案 0 :(得分:0)

这里描述的问题被报告为Six的一个问题:

https://bitbucket.org/gutworth/six/issue/71/six-17-causes-installing-some-packages-to#comment-10609667

并在六个版本1.7.1中解决。 一个更新的1.7.2也被解决了解决另一个pip安装问题。