OSError: dlopen(libSystem.dylib, 6): image not found

前端 未结 9 1089
天涯浪人
天涯浪人 2021-01-04 03:02

Just updated my Mac to El Capitan 10.11. I am trying to run Django 1.6 with Celery 3.1 and I\'m getting this error now:

Unhandled exception in thread starte         


        
相关标签:
9条回答
  • 2021-01-04 03:28

    I tried updating to the latest versions of these libraries from github, but it did not help. The simplest solution that I've found is to use virtualenv

    virtualenv myenv
    cd myenv
    source bin/activate
    pip install celery
    

    To confirm it worked:

    python -c "import celery"
    

    This seems preferable to disabling a fundamental security feature of the OS, and virtualenv has its own (well documented) benefits.

    0 讨论(0)
  • 2021-01-04 03:29

    I also ran into the same problem just after upgrading the OS to OS X El Captain. Disabling SIP does the trick, but if someone is not comfortable doing that updating five.py in few modules in site-packages will help. (I know it's not that nice, but it's OK as long as you know what you're doing)

    Update the places that access the DLL to have absolute path in following modules

    line 145 of site-packages/amqp/five.py 
    line 52 of site-packages/kombu/five.py 
    line 42 of site-packages/billiard/five.py 
    

    update to:

    libSystem = ctypes.CDLL('libSystem.dylib') => libSystem = ctypes.CDLL('/usr/lib/libSystem.dylib')
    

    hope this helps ;)

    0 讨论(0)
  • 2021-01-04 03:37
    pip install --upgrade billiard
    pip install --upgrade celery
    pip install --upgrade kombu
    pip install --upgrade amqp
    

    This should work.

    0 讨论(0)
提交回复
热议问题