2
我試圖將Django 1.6.10-0連接到之前在1.5上運行的項目。「找不到符號:__cg_jpeg_resync_to_restart」與djangostack
在我的項目包括項目的路徑編輯wsgi.py文件後,我得到這個錯誤:
mod_wsgi (pid=6805): Exception occurred processing WSGI script '/Users/Dreadfort/Documents/MyProject/project/wsgi.py'.
Traceback (most recent call last):
File "/Applications/djangostack-1.6.10-0/apps/django/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
self.load_middleware()
File "/Applications/djangostack-1.6.10-0/apps/django/lib/python2.7/site-packages/django/core/handlers/base.py", line 44, in load_middleware
for middleware_path in settings.MIDDLEWARE_CLASSES:
File "/Applications/djangostack-1.6.10-0/apps/django/lib/python2.7/site-packages/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
File "/Applications/djangostack-1.6.10-0/apps/django/lib/python2.7/site-packages/django/conf/__init__.py", line 49, in _setup
self._wrapped = Settings(settings_module)
File "/Applications/djangostack-1.6.10-0/apps/django/lib/python2.7/site-packages/django/conf/__init__.py", line 128, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/Applications/djangostack-1.6.10-0/apps/django/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
__import__(name)
File "/Users/Dreadfort/Documents/MyProject/project/__init__.py", line 5, in <module>
from .celery import app as celery_app
File "/Users/Dreadfort/Documents/MyProject/project/celery.py", line 5, in <module>
from celery import Celery
File "/Applications/djangostack-1.6.10-0/python/lib/python2.7/site-packages/celery/__init__.py", line 130, in <module>
from celery import five
File "/Applications/djangostack-1.6.10-0/python/lib/python2.7/site-packages/celery/five.py", line 51, in <module>
from kombu.five import monotonic
File "/Applications/djangostack-1.6.10-0/python/lib/python2.7/site-packages/kombu/five.py", line 54, in <module>
use_errno=True)
File "/Applications/djangostack-1.6.10-0/python/lib/python2.7/ctypes/__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/System/Library/Frameworks/CoreServices.framework/CoreServices, 6): Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
Expected in: /Applications/djangostack-1.6.10-0/common/lib/libJPEG.dylib
in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
我wsgi.py文件看起來像這樣:
import os, sys
sys.path.append('/Users/Dreadfort/Documents/MyProject')
sys.path.append('/Users/Dreadfort/Documents/MyProject/project')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
我我以前從來沒有見過這樣的東西,所以讓我知道你可能需要看到什麼幫助。提前致謝!
看起來你djangostack安裝被編譯爲一個不同的操作系統版本比你正在運行的一個。 – yole 2015-03-02 08:14:41
任何想法我可以解決這個問題?我已經掃描Bitnami網站以獲得更好的安裝程序,但無法找到它。 – dillobird 2015-03-02 14:45:07
順便說一句,我在OSX Yosemite上,我嘗試了Bitnami的多個django堆棧安裝程序(包括1.7.4-0 Dev安裝程序)。依然沒有。 – dillobird 2015-03-02 18:58:51