Python Forum
where should DEFAULT_CIPHERS be found?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
where should DEFAULT_CIPHERS be found?
#1
where should DEFAULT_CIPHERS be found, or
what do i need to upgrade (this used to work 2 or 3 years ago) ?

i've re-installed botocore. does this need Python > 3.8 (what Ubuntu 20.4 has) ?

Output:
lt1a/phil/7 /home/phil 11> sync-ipal Traceback (most recent call last): File "/home/phil/cmd/sync-ipal", line 8, in <module> import awscli.clidriver File "/usr/lib/python3/dist-packages/awscli/clidriver.py", line 17, in <module> import botocore.session File "/usr/lib/python3/dist-packages/botocore/session.py", line 29, in <module> import botocore.credentials File "/usr/lib/python3/dist-packages/botocore/credentials.py", line 34, in <module> from botocore.config import Config File "/usr/lib/python3/dist-packages/botocore/config.py", line 16, in <module> from botocore.endpoint import DEFAULT_TIMEOUT, MAX_POOL_CONNECTIONS File "/usr/lib/python3/dist-packages/botocore/endpoint.py", line 22, in <module> from botocore.awsrequest import create_request_object File "/usr/lib/python3/dist-packages/botocore/awsrequest.py", line 25, in <module> import botocore.utils File "/usr/lib/python3/dist-packages/botocore/utils.py", line 31, in <module> import botocore.httpsession File "/usr/lib/python3/dist-packages/botocore/httpsession.py", line 8, in <module> from urllib3.util.ssl_ import ( ImportError: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/usr/local/lib/python3.8/dist-packages/urllib3/util/ssl_.py) lt1a/phil/7 /home/phil 12> cat -n /usr/lib/python3/dist-packages/botocore/httpsession.py|head -n11|tail -n5 7 from urllib3.util.retry import Retry 8 from urllib3.util.ssl_ import ( 9 ssl, OP_NO_SSLv2, OP_NO_SSLv3, OP_NO_COMPRESSION, DEFAULT_CIPHERS, 10 ) 11 from urllib3.exceptions import SSLError as URLLib3SSLError lt1a/phil/7 /home/phil 13>
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
There is a Deprecation notice for python 3.8 here. This message, claims support for 3.8 will continue for six months, finally ending Sept 1, 2022.

So looks like you may indeed have to upgrade.
Skaperen likes this post
Reply
#3
now, to decide if i should try to upgrade Python to 3.10 on Xubuntu 20.4 or wait until other things ready me to upgrade Xubuntu to 24.4 with brings in Python 3.10. i do know some "system stuff" makes use of Python, so i am leaning to the later.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#4
(Apr-30-2025, 02:06 AM)Skaperen Wrote: now, to decide if i should try to upgrade Python to 3.10 on Xubuntu 20.4 or wait until other things ready me to upgrade Xubuntu to 24.4 with brings in Python 3.10.
You could just use pyenv and install any version of Python you need. It is very straightforward.
Larz60+ likes this post
« We can solve any problem by introducing an extra level of indirection »
Reply
#5
Gribouillis Wrote:You could just use pyenv and install any version of Python you need. It is very straightforward.

pyenv is exactly what I use, It works very well.
Especially since you can use a different version of python, if necessary, for each project, in a virtual environment.
Reply
#6
how will that work for system code while booting up? those who do use it, do you use it on Ubuntu Linux?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#7
Try uv it replaces pyenv and lot more,it will(has) be the default choice for a Python package and project manager.
uv install python and it work on all OS also a lot faster than other stuff,eg see under it install Python 3.13.3 in 5-sec and Request 1-sec.
# Install Python
tom@tom-VirtualBox:~$ uv python install 3.13.3
Installed Python 3.13.3 in 4.85s
 + cpython-3.13.3-linux-x86_64-gnu

tom@tom-VirtualBox:~$ uv run python --version
Python 3.13.3

# Make virtual environment 
tom@tom-VirtualBox:~$ uv venv --python 3.12.2
Using CPython 3.12.2
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate
tom@tom-VirtualBox:~$ source .venv/bin/activate

(tom) tom@tom-VirtualBox:~$ python
Python 3.12.2 (main, Feb 25 2024, 04:38:01) [Clang 17.0.6 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

(tom) tom@tom-VirtualBox:~$ uv pip install requests
Resolved 5 packages in 480ms
Prepared 3 packages in 205ms
Installed 5 packages in 46ms
 + certifi==2025.4.26
 + charset-normalizer==3.4.1
 + idna==3.10
 + requests==2.32.3
 + urllib3==2.4.0
(tom) tom@tom-VirtualBox:~$
Gribouillis likes this post
Reply
#8
snippsat Wrote:Try uv it replaces pyenv and lot more,it will(has) be the default choice for a Python package and project manager.
uv install python and it work on all OS also a lot faster than other stuff,eg see under it install Python 3.13.3 in 5-sec and Request 1-sec.

Are there any telemetry concerns with uv?
I'd like to give it a go.
Reply
#9
(May-01-2025, 05:04 AM)Larz60+ Wrote: Are there any telemetry concerns with uv?
No uv is a fully open-source (Apache/MIT) binary with no hidden telemetry back-ends.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I found how many numbers are there in a Collatz Sequence that I found? cananb 2 3,514 Nov-23-2020, 05:15 PM
Last Post: cananb

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020