Sublime Forum

ST 3 cannot import SSL

#1

A package I use a lot is kind of broken, I believe after a recent update of openssl on Arch (Link to relevant commit).

This is the traceback I get when I try importing the ssl package:

import ssl Traceback (most recent call last): File "<string>", line 1, in <module> File "./ssl.py", line 60, in <module> ImportError: No module named '_ssl' import _ssl Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named '_ssl'

Sublime text 3103
Manjaro Linux 15.12

0 Likes

#2

As of 3107, the _ssl module is not bundled with Sublime Text. Package Control installs a shim, but the shim is currently linked against a copy of OpenSSL with SSLv3 still enabled.

0 Likes

#3

Is it possible to add python modules such as flake8 into python3.3.zip by myself for a portable version ST? I would like to add some linter-related modules as built-in.

0 Likes

#4

Just create a package, or use the existing Flake8 package and set the interpreter to the internal one. The zip will be overwritten with each build.

0 Likes

#5

Just as a general note, build 3109 now includes a statically linked copy of OpenSSL 1.0.2g on all platforms, including Linux. Moving forward we will be keeping OpenSSL up-to-date. In an upcoming release, Package Control will no longer try to download the _ssl shim on Linux or the bz2 module on any platform since both are reliably included.

3 Likes

#6

Just installed ST3 3109 and the issue is resolve there. Thanks @wbond!

0 Likes