【发布时间】:2015-10-24 21:21:40
【问题描述】:
我使用 anaconda 的 python 2.7 发行版作为我的默认 python 发行版。我收到一个
Fatal Python error: PyThreadState_Get: no current thread
这个错误似乎是python分布冲突的结果;我正在使用 anconda 的 python 发行版,但 Leap motion 的 sdk 预计默认的 mac 发行版。
我在changing the default python distribution上按照Leap motion的sdk指令如下,
install_name_tool -change /Library/Frameworks/Python.framework/Versions/2.7/Python
//anaconda/bin/python LeapPython.so
但现在我收到以下错误,我无法充分利用,
Traceback (most recent call last):
File "Sample.py", line 9, in <module>
import Leap, sys, thread, time
File "/Users/jkarimi91/Documents/Projects/hackingedu/LeapDeveloperKit_2.3.1+31549_mac/LeapSDK/lib/Leap.py", line 28, in <module>
LeapPython = swig_import_helper()
File "/Users/jkarimi91/Documents/Projects/hackingedu/LeapDeveloperKit_2.3.1+31549_mac/LeapSDK/lib/Leap.py", line 24, in swig_import_helper
_mod = imp.load_module('LeapPython', fp, pathname, description)
ImportError: dlopen(/Users/jkarimi91/Documents/Projects/hackingedu/LeapDeveloperKit_2.3.1+31549_mac/LeapSDK/lib/LeapPython.so, 2): Library not loaded: //anaconda/bin/python
Referenced from: /Users/jkarimi91/Documents/Projects/hackingedu/LeapDeveloperKit_2.3.1+31549_mac/LeapSDK/lib/LeapPython.so
Reason: no suitable image found. Did find:
//anaconda/bin/python: can't map unslidable segment __TEXT to 0x100000000 with size 0x1000
【问题讨论】:
-
这个问题有什么进展吗?
标签: python-2.7 sdk anaconda leap-motion conda