尝试运行gevent socketio示例(Django)
我遇到了以下错误:
(virtenv3)iMac:codysoyland-django-socketio-example-d35672f admin$ python run_example.py
Traceback (most recent call last):
File "run_example.py", line 12, in <module>
from socketio import SocketIOServer
File "build/bdist.macosx-10.6-universal/egg/socketio/__init__.py", line 7, in <module>
File "build/bdist.macosx-10.6-universal/egg/socketio/server.py", line 4, in <module>
File "build/bdist.macosx-10.6-universal/egg/gevent/__init__.py", line 41, in <module>
File "build/bdist.macosx-10.6-universal/egg/gevent/core.py", line 7, in <module>
File "build/bdist.macosx-10.6-universal/egg/gevent/core.py", line 6, in __bootstrap__
ImportError: dlopen(/Users/admin/.python-eggs/gevent-0.13.6-py2.6-macosx-10.6-universal.egg-tmp/gevent/core.so, 2): Symbol not found: _event_global_current_base_
Referenced from: /Users/admin/.python-eggs/gevent-0.13.6-py2.6-macosx-10.6-universal.egg-tmp/gevent/core.so
Expected in: flat namespace
in /Users/admin/.python-eggs/gevent-0.13.6-py2.6-macosx-10.6-universal.egg-tmp/gevent/core.so
这个错误是什么意思呢?我在安装这个示例所需的所有依赖时没有遇到任何问题。
greenlet
、cython
、libevent
、gevent
、gevent-socketio
、gevent-websocket
这些都安装得很顺利。
1 个回答
0
你是用llvm编译libevent的吗?我记得在homebrew的配方里(在它切换到libevent2之前)有个指令是“不要用llvm编译”,因为出现了这个错误。