Home Download Buy Blog Forum Support

No module named sublime

No module named sublime

Postby kobzar on Tue Apr 24, 2012 7:50 am

Hi! Install ST2 on mac os 10.7.1
All working fine, but when i tryed import sublime module i have a error:

import sublime ->> "ctrl+b"

Traceback (most recent call last):
File "/Volumes/Kobzar/zerg.py", line 1, in <module>
import sublime
ImportError: No module named sublime
[Finished]

In REPL console

Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sublime
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sublime
>>>
kobzar
 
Posts: 18
Joined: Mon Apr 23, 2012 5:53 am

Re: No module named sublime

Postby bizoo on Tue Apr 24, 2012 9:00 am

sublime is a module only available in ST2 embedded Python interpreter.
import sublime only work from a plugin or inside the console, not on your system Python interpreter (and therefore not when running build command).
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland


Return to Technical Support

Who is online

Users browsing this forum: certainlyakey, Google [Bot] and 28 guests

cron