尝试运行 gevent socketio 示例(Django)

发布于 2024-11-17 11:07:41 字数 1251 浏览 2 评论 0原文

我遇到了以下错误:

(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-socketio gevent-webstocket 没有任何问题

I have encountered the following error:

(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

What is this error telling me? I installed all the example's dependencies without errors.

greenlet, cython, libevent, gevent, gevent-socketio, gevent-webstocket with no problems there

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我最亲爱的 2024-11-24 11:07:41

你是用llvm编译libevent的吗?我认为自制程序公式(在切换到 libevent2 之前)有一个“不要使用 llvm 编译”指令,因为这个错误。

Did you compile libevent with llvm? I think the homebrew formula (before it switched to libevent2) had a "don't compile with llvm" directive because of this error.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文