Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python SSL module is broken on Linux (ImportError: No module named '_ssl') #177

Closed
ggreer opened this issue Oct 24, 2013 · 6 comments

Comments

@ggreer
Copy link

commented Oct 24, 2013

In the Sublime console on Build 3047 (although this happens in ST2 as well):

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

This also causes an exception if you try to open any HTTPS URL with urllib.

This only happens on Linux. OS X and Windows seem to be OK.

@timelf123

This comment has been minimized.

Copy link

commented Oct 24, 2013

Confirmed 👍
Ubuntu 13.10
ST3 build 3047
SFTP package from @wbond http://wbond.net/sublime_packages/sftp/

Haven't tested on any other builds, but when I try import ssl I get this:

ImportError: /home/tim/.config/sublime-text-3/Packages/SFTP/lib/st3_linux_x64/libssl-1.0.0/_ssl.cpython-33m.so: undefined symbol: SSLv2_method because Ubuntu builds OpenSSL without SSLv2 support (a deprecated algorithm with known security issues)

@FichteFoll

This comment has been minimized.

Copy link
Member

commented Oct 28, 2013

I'm sure @wbond has enough experience with the ssl module in ST to maybe comment on this issue.
Otoh he also only has import ssl in his code so maybe it's a build-specific problem.

Did you test this on other builds, e.g. the latest 3054?

@kencaron

This comment has been minimized.

Copy link

commented Jan 8, 2014

+1 on Ubuntu 13.10 using latest ST build 3059

Discovered this while working on a plugin, which works fine on my OSX machine.

@ggreer ggreer referenced this issue Jan 11, 2014

Merged

SSL Proxy #144

@MattDMo

This comment has been minimized.

Copy link

commented Jan 13, 2014

See a related bug on userecho and a workaround using @wbond's SFTP.py here

@FichteFoll

This comment has been minimized.

Copy link
Member

commented Apr 19, 2016

As of recent dev builds, ST ships with a recent OpenSSL version on all OSes.

@FichteFoll FichteFoll closed this Apr 19, 2016

@wbond

This comment has been minimized.

Copy link
Member

commented Apr 19, 2016

Specifically, build 3110 and newer statically link the latest version of OpenSSL on all platforms.

@FichteFoll FichteFoll modified the milestones: Build 3100, Build 3110 Apr 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
6 participants
You can’t perform that action at this time.