V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Livid
V2EX  ›  Python

升级 El Capitan 之后遇到的第一个兼容性问题, pip install wand 坏掉了

  •  
  •   Livid · 2015-09-22 12:31:51 +08:00 · 3324 次点击
    这是一个创建于 3351 天前的主题,其中的信息可能已经有所发展或是发生改变。
    $ sudo pip install wand
    Downloading/unpacking wand
      Downloading Wand-0.4.1.tar.gz (61kB): 61kB downloaded
      Running setup.py (path:/private/tmp/pip_build_root/wand/setup.py) egg_info for package wand
        Traceback (most recent call last):
          File "<string>", line 17, in <module>
          File "/private/tmp/pip_build_root/wand/setup.py", line 8, in <module>
            from wand.version import VERSION
          File "wand/version.py", line 45, in <module>
            from .api import libmagick, library
          File "wand/api.py", line 1295, in <module>
            libc = ctypes.cdll.LoadLibrary('libc.dylib')
          File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary
            return self._dlltype(name)
          File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__
            self._handle = _dlopen(self._name, mode)
        OSError: dlopen(libc.dylib, 6): image not found
        Complete output from command python setup.py egg_info:
        Traceback (most recent call last):
    
      File "<string>", line 17, in <module>
    
      File "/private/tmp/pip_build_root/wand/setup.py", line 8, in <module>
    
        from wand.version import VERSION
    
      File "wand/version.py", line 45, in <module>
    
        from .api import libmagick, library
    
      File "wand/api.py", line 1295, in <module>
    
        libc = ctypes.cdll.LoadLibrary('libc.dylib')
    
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary
    
        return self._dlltype(name)
    
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    
        self._handle = _dlopen(self._name, mode)
    
    OSError: dlopen(libc.dylib, 6): image not found
    

    用 El Capitan 加上 dlopen(libc.dylib, 6): image not found 搜索了一下,其他的一些项目也遇到了类似的问题,目前貌似暂时无解:

    https://github.com/koenbok/Cactus/issues/176

    https://github.com/jordansissel/fpm/issues/1010

    4 条回复    2015-11-13 15:56:53 +08:00
    caizixian
        1
    caizixian  
       2015-09-22 12:41:34 +08:00
    难道路径换了,然后 pip 没跟进?
    jixiangqd
        2
    jixiangqd  
       2015-09-22 13:17:46 +08:00
    报错报在 wand 的代码,所以是 wand 的问题,等更新吧~
    zqqf16
        3
    zqqf16  
       2015-09-22 13:39:38 +08:00
    我这没问题,把 System Integrity Protection 关了试试~

    ```
    Downloading Wand-0.4.1.tar.gz (61kB)
    100% |████████████████████████████████| 65kB 330kB/s
    Installing collected packages: Wand
    Running setup.py install for Wand
    Successfully installed Wand-0.4.1
    ```
    hullopanda
        4
    hullopanda  
       2015-11-13 15:56:53 +08:00
    原因应该是 10.11 /System/Library/这些目录权限收缩了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   974 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:26 · PVG 03:26 · LAX 11:26 · JFK 14:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.