Lỗi khi cài đặt package trên Sublime Text

Cả nhà có ai có bị lõi khi cài đặt package như thế này không

tắt mở lại sublime, xong cài lại package đó xem sao

1 Like

Bạn cài cái gì và cài ở đâu? Có vẻ bạn copy đoạn lệnh cài đặt bị thiếu rồi.

1 Like

mình coppy Package Contro ở Package Contro.io cài đặt như hướng dẫn View > Show Console rồi paste
giờ gỡ toàn bộ cài lại bản khác ok rồi

1 Like

Theo như báo lỗi thì khi cài đặt, Sublime Text cài bị thiếu một component nào đấy. Có thể do phiên bản ST và Package Control không tương thích với nhau.

2 Likes

hi. dùng quen cái này rồi. có cài lại máy cũng phải làm bằng được :smile:

1 Like

Hi, không biết là bạn đã khắc phục được chưa vậy, mình cũng bị cái này :3

Ad cho em hỏi, khi cài đặt package cho sublime text 3 mà báo lỗi như thế này thì phải sửa sao vậy?

import urllib.request,os,hashlib; h = ‘df21e130d211cfc94d9b0905775a7c0f’ + ‘1e3d39e33b79698005270310898eea76’; pf = ‘Package Control.sublime-package’; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( ‘http://packagecontrol.io/’ + pf.replace(’ ', ‘%20’)).read(); dh = hashlib.sha256(by).hexdigest(); print(‘Error validating download (got %s instead of %s), please try manual install’ % (dh, h)) if dh != h else open(os.path.join( ipp, pf), ‘wb’ ).write(by)
Traceback (most recent call last):
File “./python3.3/urllib/request.py”, line 1248, in do_open
File “./python3.3/http/client.py”, line 1065, in request
File “./python3.3/http/client.py”, line 1103, in _send_request
File “./python3.3/http/client.py”, line 1061, in endheaders
File “./python3.3/http/client.py”, line 906, in _send_output
File “./python3.3/http/client.py”, line 844, in send
File “./python3.3/http/client.py”, line 822, in connect
File “./python3.3/socket.py”, line 417, in create_connection
socket.gaierror: [Errno 11004] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “”, line 1, in
File “./python3.3/urllib/request.py”, line 156, in urlopen
File “./python3.3/urllib/request.py”, line 469, in open
File “./python3.3/urllib/request.py”, line 487, in _open
File “./python3.3/urllib/request.py”, line 447, in _call_chain
File “./python3.3/urllib/request.py”, line 1274, in http_open
File “./python3.3/urllib/request.py”, line 1251, in do_open
urllib.error.URLError: <urlopen error [Errno 11004] getaddrinfo failed>

em cũng bị lỗi không cài đặt được các gói trong Package Control
ví dụ cài gói Emmet nó không cài đặt được
mọi người giúp em với
please !

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?