Open noAlvaro opened 10 years ago
The issue is that some packages and command syntaxes are different on Phyton 3. And well, I don't know a thing about Phyton and its versions... but I've made some tweaks to the code line that seemed to work. By using the helps of this porting guide I came up with this version:
import urllib,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib.request.install_opener(urllib.request.build_opener(urllib.request.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write( urllib.request.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')
Still I think this is not the solution, because CoffeeScript
isn't opening as an option when you try to install it in the Package Manager. :(
Having the exact same problem. Thanks @noAlvaro for fixing the line, but same here still nothing happens, Cmd+Shift+P won't show the CoffeeScript
i still get
open(os.path.join(ipp,pf),'wb').write( urllib.request.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); Traceback (most recent call last): File "./urllib/request.py", line 1248, in do_open File "./http/client.py", line 1065, in request File "./http/client.py", line 1103, in _send_request File "./http/client.py", line 1061, in endheaders File "./http/client.py", line 906, in _send_output File "./http/client.py", line 844, in send File "./http/client.py", line 822, in connect File "./socket.py", line 435, in create_connection File "./socket.py", line 426, in create_connection ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "
before i use to get
by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); Traceback (most recent call last): File "./urllib/request.py", line 1248, in do_open File "./http/client.py", line 1065, in request File "./http/client.py", line 1103, in _send_request File "./http/client.py", line 1061, in endheaders File "./http/client.py", line 906, in _send_output File "./http/client.py", line 844, in send File "./http/client.py", line 822, in connect File "./socket.py", line 435, in create_connection File "./socket.py", line 426, in create_connection ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "
Inside console, suggested command line for installation is currently throwing the following:
I don't know how to fix it, can anyone help?