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

Module 'urllib3.util.ssl_' has no attribute 'DEFAULT_CIPHERS' on python 3.10 #391

Closed
ndelahun opened this issue Jun 10, 2023 · 4 comments
Closed

Comments

@ndelahun
Copy link

Describe the bug
trying to get master token .
When running the example on the first page
from glocaltokens.client import GLocalAuthenticationTokens

# Using google username and password first, and only once
client = GLocalAuthenticationTokens(
  username="usrname",
  password="app password"
)

# Get master token
master_token = client.get_master_token()
print("[*] Master token", master_token)

getting error

Traceback (most recent call last):
  File "/config/get_token.py", line 10, in <module>
    master_token = client.get_master_token()
  File "/usr/lib/python3.10/site-packages/glocaltokens/client.py", line 230, in get_master_token
    res = perform_master_login(
  File "/usr/lib/python3.10/site-packages/gpsoauth/__init__.py", line 143, in perform_master_login
    return _perform_auth_request(data, proxy)
  File "/usr/lib/python3.10/site-packages/gpsoauth/__init__.py", line 78, in _perform_auth_request
    session.mount(AUTH_URL, AuthHTTPAdapter())
  File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 155, in __init__
    self.init_poolmanager(pool_connections, pool_maxsize, block=pool_block)
  File "/usr/lib/python3.10/site-packages/gpsoauth/__init__.py", line 68, in init_poolmanager
    context.set_ciphers(ssl_.DEFAULT_CIPHERS)
AttributeError: module 'urllib3.util.ssl_' has no attribute 'DEFAULT_CIPHERS'
@leikoilja
Copy link
Owner

what's your urllib3 and openssl versions? check #332

@ndelahun
Copy link
Author

urllib3 is version 2.0.3
open ssl version 3.0.9

@ChalyFlavour
Copy link

Sorry for duplicated post, but maybe this is of help.
I solved this here: #332 (comment)

@leikoilja
Copy link
Owner

thanks for adding extra comment w your setup, @ChalyFlavour.
@ndelahun, closing this one since it's currently out of our control.

  1. get the master token separately using the references above
  2. use that master token when starting the integration

@leikoilja leikoilja changed the title error trying to get master token Module 'urllib3.util.ssl_' has no attribute 'DEFAULT_CIPHERS' on python 3.10 Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants