2015-10-24 2 views
2

J'utilise la distribution python 2.7 d'anaconda comme distribution python par défaut. Je reçois un Fatal Python error: PyThreadState_Get: no current thread Cette erreur semble être le résultat d'un conflit de distribution python; J'utilise la distribution python d'anconda mais sdk de Leap motion anticipe la distribution mac par défaut.Leap Motion Python SDK avec conda

J'ai suivi les instructions de sdk de mouvement Leap sur changing the default python distribution comme suit,

install_name_tool -change /Library/Frameworks/Python.framework/Versions/2.7/Python //anaconda/bin/python LeapPython.so

Mais maintenant, je reçois l'erreur suivante, que je ne l'ai pas été en mesure de faire beaucoup de,

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

+0

des progrès sur cette question? – toine

Répondre

0

Je pense que le problème est que vous essayez de charger l'exécutable Python, pas la bibliothèque partagée. Depuis Anaconda ne semble pas vous donner un cadre, essayez de remplacer /anaconda/bin/python dans votre commande avec /anaconda/pkgs/python-2.7.10.0 ou si cela ne fonctionne pas, spécifiez le chemin d'accès complet au Python dylib /anaconda/pkgs/python-2.7.10.0/lib/libpython2.7.dylib.