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

前端 未结 9 1159
天涯浪人
天涯浪人 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: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 ;)

提交回复
热议问题