"OSError:dlopen(libSystem.dylib,6):找不到图像". (OS X + macports + Celery 3.1.7) [英] "OSError: dlopen(libSystem.dylib, 6): image not found" (OS X + macports + Celery 3.1.7)

查看:99
本文介绍了"OSError:dlopen(libSystem.dylib,6):找不到图像". (OS X + macports + Celery 3.1.7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚通过点(1.5)将芹菜更新为最新版本(3.1.7),但是我遇到了致命异常,当我尝试导入该库时我不明白.通过运行:

I just updated celery via pip (1.5) to the latest version (3.1.7), but I get a fatal exception which I don't understand as soon I try to import the library. By running:

from celery import Celery在我得到的shell中:

from celery import Celery in the shell I get:

File "<console>", line 1, in <module>
  File "/Users/davidezanotti/CygoraPythonEnv/lib/python2.7/site-packages/celery/__init__.py", line 130, in <module>
    from .five import recreate_module
  File "/Users/davidezanotti/CygoraPythonEnv/lib/python2.7/site-packages/celery/five.py", line 51, in <module>
    from kombu.five import monotonic
  File "/Users/davidezanotti/CygoraPythonEnv/lib/python2.7/site-packages/kombu/five.py", line 47, in <module>
    libSystem = ctypes.CDLL('libSystem.dylib')
  File "/opt/local/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(libSystem.dylib, 6): image not found

我在OS X 10.8.5上将python 2.7.6与VirtualEnv和macports一起使用

I'm using python 2.7.6 with VirtualEnv and macports on OS X 10.8.5

我知道问题是缺少基本的依赖项("libSystem.dylib"),但我不知道如何解决此问题

I understand that the problem is that an underlying dependency ("libSystem.dylib") is missing, but I don't know how to fix this issue

(在/usr/lib/下,我可以在我的机器上找到libSystem.dylib)

(under /usr/lib/ I can find libSystem.dylib on my machine)

推荐答案

问题是我通过按照Django文档中有关macport的字面意义在我的 .bash_profile 中定义了DYLD_FALLBACK_LIBRARY_PATH在Postgis上: https://docs.djangoproject.com/en /1.6/ref/contrib/gis/install/#macports

The problem was that I had defined a DYLD_FALLBACK_LIBRARY_PATH in my .bash_profile, by following literally the notes about macports in Django documentation on postgis: https://docs.djangoproject.com/en/1.6/ref/contrib/gis/install/#macports

但这会导致我遇到的意外行为,无论如何将其注释掉,一切似乎都可以正常工作!

but this leads to unexpected behavior like the one I faced, anyway by commenting it out, all seems to work!

这篇关于"OSError:dlopen(libSystem.dylib,6):找不到图像". (OS X + macports + Celery 3.1.7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆