0

I have tried to install GoSublime plugin in Ubuntu-12.04 machine. Following the below URL instruction,

http://tarsis.org/?p=108

When I tried to execute the below command in Sublime Console, i getting error.

Trying Command,

import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'

Error:

>>> import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'
  File "<string>", line 1
    import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'
                                                                                                                                                                                                                                                                                                                                                                                                            ^
SyntaxError: invalid syntax

It would be great, if give any solutions.

Thanks.

sprabhakaran
  • 1,615
  • 5
  • 20
  • 36
  • 1
    That tutorial talks about sublime text version 2. Probably it would be easier if you install it through [package control](https://packagecontrol.io/installation#st3). You only need to copy/paste a text in console to install package control, wait to finish, restart sublime and then you can install packages searching for the package name inside sublime package control. Note that maybe you would still need to set some of the environment variables, but the package would be installed. – sergioFC Jun 30 '15 at 12:48
  • Its working. Thanks. – sprabhakaran Jul 01 '15 at 15:26

0 Answers0