2012-06-14 5 views
1

Je suis en train d'installer SBT2 et ont suivant la mise enInstallation Sublimetext2 sous Mac OS X 10.7.4

OS

Mac OS X 10,7

tbc:~ mystic$ which python 
/Library/Frameworks/Python.framework/Versions/2.7/bin/python 
tbc:~ mystic$ python -V 
Python 2.7.2 

J'ai téléchargé le dmg paquet à partir du site Web SBT2 et l'installer, mais je reçois une erreur après avoir ouvert l'application SBT2

Unable to run package setup: 

Failed to load module 

Traceback (most recent call last): 
    File "./PackageSetup.py", line 7, in <module> 
    import zipfile 
    File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/zipfile.py", line 4, in <module> 
    import struct, os, time, sys, shutil 
    File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/struct.py", line 1, in <module> 
    from _struct import * 
ImportError: No module named _struct 

Que j'ai essayé selon forum sublimetext2 aide

tbc:~ mystic$ ls -la /Library/Frameworks/Python.framework/Versions 
total 8 
drwxr-xr-x 5 root admin 170 Jun 12 2011 . 
drwxr-xr-x 6 root admin 204 Jun 12 2011 .. 
drwxrwxr-x 11 root admin 374 Jun 12 2011 2.7 
drwxrwxr-x 10 root admin 340 Jun 9 2011 3.0 
lrwxr-xr-x 1 root admin 3 Sep 25 2011 Current -> 2.7 
tbc:~ mystic$ cd /Library/Frameworks/Python.framework/Versions 
tbc:Versions mystic$ sudo rm Current 
Password: 
tbc:Versions mystic$ sudo ln -s /Library/Frameworks/Python.framework/Versions/2.7 Current 

Comme je l'ai python2.7 comme sa valeur par défaut, je ne sais pas pourquoi SBT2 va après python2.6

Il ne devrait pas être présent compliqué je sais, mais à court d'idées pour le faire fonctionner.

Toute aide et suggestion est appréciée!

Répondre

0

Je rencontre le même problème. Après avoir passé beaucoup de temps à creuser dans son fichier de configuration ou plist, je n'ai rien.

Puis-je trouver quelques conseils pour tricher Sublime Text 2 utiliser Python 2.7 à la place 2,6

cd /Library/Frameworks/Python.framework/Versions/ 
sudo mv 2.6 2.6-backup 
sudo ln -s 2.7 2.6 

Et cela fonctionne pour moi.

+0

Voyons si ça va marcher pour moi! Merci pour la mise à jour! – thchand

+0

Une chance? Toute question, faites le moi savoir. – chenyi1976

+0

ln -s 2.7 2.6 Autorisation refusée – thchand