🌐
Stack Overflow
stackoverflow.com › questions › 43121166 › global-name-ssl-is-not-defined-error-while-executing-aws-s3-cp-command
python 2.7 - global name 'ssl' is not defined error while executing aws s3 cp command - Stack Overflow
At 1st glance, it looks like an error in some Python code. The ssl module failed to import (for some reason? - _ssl.so could not load libssl.so and/or libcrypto.so) but that error got somehow swallowed, and when the ssl module was used it triggered the error.
🌐
Python
bugs.python.org › issue29588
Issue 29588: importing ssl can fail with NameError: name 'PROTOCOL_TLS' is not defined - Python tracker
February 17, 2017 - This issue tracker has been migrated to GitHub, and is currently read-only. For more information, see the GitHub FAQs in the Python's Developer Guide · This issue has been migrated to GitHub: https://github.com/python/cpython/issues/73774
Discussions

NameError: name 'ssl' is not defined
Trace: Traceback (most recent call last): File "/Users/admin/websocket-client/websocket/_app.py", line 234, in run_forever dispatcher = self.create_dispatcher(ping_timeout) File "/Us... More on github.com
🌐 github.com
0
February 14, 2018
global name 'ssl' is not defined
I want to use botocore with android, and I am getting this error: com.chaquo.python.PyException: NameError: global name 'ssl' is not defined I tried to download the source code of both pack... More on github.com
🌐 github.com
4
January 12, 2018
Global name 'ssl' is not defined - Part 1 (2017) - fast.ai Course Forums
When I execute any alias command defined in aws-alias.sh which is sourced when my cygwin terminal (MobaXterm) boots, it always get error: global name 'ssl' is not defined What is going wrong? More on forums.fast.ai
🌐 forums.fast.ai
1
March 11, 2017
amazon web services - aws cli commands - `fatal error: name 'ssl' is not defined` - Stack Overflow
I have done so successfully a matter ... that "name 'ssl' is not defined" When I run with the --debug flag the ouput shows the error stemming from python in in my awscli version · File "/usr/local/Cellar/awscli/1.15.40/libexec/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/util/ssl_.py", line 157, in resolve_cert_reqs res = getattr(ssl, candidate, None) NameError: name 'ssl' ... More on stackoverflow.com
🌐 stackoverflow.com
March 13, 2020
🌐
GitHub
github.com › ninia › jep › issues › 122
jep.JepException: <class 'NameError'>: name 'ssl' is not defined · Issue #122 · ninia/jep
March 23, 2018 - jep.JepException: <class 'NameError'>: name 'ssl' is not defined#122 · Copy link · yogesh-0586 · opened · on Mar 23, 2018 · Issue body actions · OS Platform, Distribution, and Version: Ubuntu 16.0.4 · Python Distribution and Version: 3.5 · Java Distribution and Version: java version "1.8.0_161" I have python file which write log in amazon cloud watch logs, when I run python file it work well and creates logs into cloud watch.
Author   yogesh-0586
🌐
GitHub
github.com › websocket-client › websocket-client › issues › 397
NameError: name 'ssl' is not defined · Issue #397 · websocket-client/websocket-client
February 14, 2018 - Trace: Traceback (most recent call last): File "/Users/admin/websocket-client/websocket/_app.py", line 234, in run_forever dispatcher = self.create_dispatcher(ping_timeout) File "/Users/admin/websocket-client/websocket/_app.py", line 286, in create_dispatcher if self.sock.is_ssl(): File "/Users/admin/websocket-client/websocket/_core.py", line 180, in is_ssl return isinstance(self.sock, ssl.SSLSocket) NameError: name 'ssl' is not defined ·
Author   Mottl
🌐
GitHub
github.com › chaquo › chaquopy › issues › 23
global name 'ssl' is not defined · Issue #23 · chaquo/chaquopy
January 12, 2018 - I want to use botocore with android, and I am getting this error: com.chaquo.python.PyException: NameError: global name 'ssl' is not defined I tried to download the source code of both packages (ssl, OpenSSL) and copy them to the python ...
Author   MustafaHalimehHH
🌐
Fast.ai
forums.fast.ai › part 1 (2017)
Global name 'ssl' is not defined - Part 1 (2017) - fast.ai Course Forums
March 11, 2017 - When I execute any alias command defined in aws-alias.sh which is sourced when my cygwin terminal (MobaXterm) boots, it always get error: global name 'ssl' is not defined What is going wrong?
🌐
Ubuntu
bugs.launchpad.net › bugs › 389081
Bug #389081 ""ssl is not defined"" : Bugs : bzr-email-notifier
June 18, 2009 - py", line 70, in <module> _realssl = ssl NameError: name 'ssl' is not defined · Revision history for this message · This looks like a python installation problem as the error is in the socket code and not in bzr-email-notifier. Did you manage to resolve this problem?
🌐
PyOnlyCode
pyonlycode.com › post › how-to-solve-nameerror-name-ssl-is-not-defined
How to Solve NameError: name 'ssl' is not defined | PyOnlyCode |
September 13, 2022 - To Solve the error, add the following line to the top of your code · For more information: Python ssl
🌐
Stack Overflow
stackoverflow.com › questions › 60659667 › aws-cli-commands-fatal-error-name-ssl-is-not-defined
amazon web services - aws cli commands - `fatal error: name 'ssl' is not defined` - Stack Overflow
March 13, 2020 - I have done so successfully a matter ... that "name 'ssl' is not defined" When I run with the --debug flag the ouput shows the error stemming from python in in my awscli version · File "/usr/local/Cellar/awscli/1.15.40/libexec/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/util/ssl_.py", line 157, in resolve_cert_reqs res = getattr(ssl, candidate, None) NameError: name 'ssl' ...
Find elsewhere
🌐
Autodesk Community
forums.autodesk.com › t5 › maya-forum › maya-2011-batch-render-error-nameerror-name-ssl-is-not-defined › td-p › 4146425
Maya 2011 Batch render // Error: NameError: name 'ssl' is not defined - Autodesk Community
April 19, 2010 - SOLVED An old application had set the system environment variable PYTHONPATH to something inappropriate. I deleted it and everything works now. maya 2011, windows 7 64, single machine. Hi there. Basically i cant get any batch render whatsoever going. I just get that error message.
🌐
GitHub
github.com › python › cpython › issues › 73774
importing ssl can fail with NameError: name 'PROTOCOL_TLS' is not defined · Issue #73774 · python/cpython
activity = <Date 2017-09-06.19:50:40.508> actor = 'christian.heimes' assignee = 'christian.heimes' closed = True closed_date = <Date 2017-09-06.19:50:40.509> closer = 'christian.heimes' components = ['SSL'] creation = <Date 2017-02-17.11:35:23.374> creator = 'jdemeyer' dependencies = [] files = [] hgrepos = [] issue_num = 29588 keywords = [] message_count = 2.0 messages = ['287989', '287991'] nosy_count = 2.0 nosy_names = ['christian.heimes', 'jdemeyer'] pr_nums = [] priority = 'normal' resolution = 'works for me' stage = 'resolved' status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue29588' versions = ['Python 2.7']
🌐
Reddit
reddit.com › r/learnpython › how to handle an exception coming from a dependency of a library?
r/learnpython on Reddit: How to handle an exception coming from a dependency of a library?
November 30, 2022 -

Hi! I'm using gspread to download the contents of a number of Google Sheets, and occasionally it will throw a ssl.SSLError:

ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2555)

It's an error that seems to be random. Sometimes I may not get the error at all, and if I try the exact same google sheet download a few seconds later, it usually works just fine, or it may fail for a different sheet, all without making any script edits.

What I want to do is capture the ssl.SSLError in a try/except, but using either

except SSLError:

or

except ssl.SSLError:

results in another error along the lines of:

NameError: global name 'SSLError' is not defined

How do I go about catching just this specific SSLError without getting too generic with the "except" statement? I just want to catch that one type of error so I can automate a limited retry loop for that one file and then continue on to get the rest. I've looked into gspread's exceptions, but obviously none of them extend to the level of ssl failing.

Thanks!

🌐
TouchDesigner
forum.derivative.ca › bugs
FIXED: SSL Python Module Missing from Apple Silicon Build - Bugs - TouchDesigner forum
December 23, 2022 - Hey! I’ve been working on a plugin to run stable diffusion in TouchDesigner that uses an API and it’s been working fine on all versions except for the Apple Silicone version of TouchDesigner2022.3103 on an M1 (same with 1 build earlier). I tried using the python requests library and get the error: “Can’t connect to HTTPS URL because the SSL module is not available”. Digging deeper I opened up a brand new project, went into the text port and ran import ssl and got “no such file”. Running import...
🌐
Python Pool
pythonpool.com › home › blog › [fixed] ssl module in python is not available
[Fixed] SSL module in Python is Not Available - Python Pool
May 30, 2023 - In case you obtain the error while working on Termux, you should know that just updating the packages will also help. Upgrade them to the most recent versions and then you won’t get the error anymore for absence of ssl module. apt update && apt full-upgrade · Popular now · [Fixed] nameerror: name Unicode is not defined ·
🌐
Highend3d
forum.highend3d.com › t › maya-2011-batch-render-error-nameerror-name-ssl-is-not-defined › 49266
Maya 2011 Batch render // Error: NameError: name 'ssl' is not defined - Maya - Highend3d Artists Discussion Forums
April 19, 2010 - Im no network guy at all so Secure Socket Layer doesnt give me anything tangible to work. The phrase "NameError: name 'ssl' is not defined" doesnt give me anything useful for maya in the search world either. maya 2010 have no trouble batch rendering btw. Im hoping its some basic network somethin...
🌐
GitHub
github.com › gevent › gevent › issues › 513
ssl broken on Debian (and derivatives), as of python 2.7.8-12 · Issue #513 · gevent/gevent
November 20, 2014 - File "<whatever>/h/local/lib/python2.7/site-packages/gevent/ssl.py", line 386, in <module> def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv3, ca_certs=None): NameError: name 'PROTOCOL_SSLv3' is not defined · One could argue that it's not nice for a distribution to haphazardly remove constants that are still there in the upstream version, but these things happen, so...