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

AttributeError: module 'urllib3.util.ssl_' has no attribute 'OP_NO_TICKET' #43

Closed
bergercookie opened this issue May 31, 2022 · 1 comment

Comments

@bergercookie
Copy link

bergercookie commented May 31, 2022

I'm trying to run the latest version of gpsoath to see if I can get around this issue with gkeepapi. After explicitly upgrading to the latest gpsoauth version I'm getting the following error:

  File "/home/berger/.cache/pypoetry/virtualenvs/taskwarrior-syncall-mK6ZpwPC-py3.8/lib/python3.8/site-packages/gpsoauth/__init__.py", line 70, in init_poolmanager
    context.options &= ~ssl_.OP_NO_TICKET
    │       │           └ <module 'urllib3.util.ssl_' from '/home/berger/.cache/pypoetry/virtualenvs/taskwarrior-syncall-mK6ZpwPC-py3.8/lib/python3.8/s...
    │       └ <property object at 0x7f91b5d84680>
    └ <gpsoauth.SSLContext object at 0x7f91b0d901c0>

AttributeError: module 'urllib3.util.ssl_' has no attribute 'OP_NO_TICKET'

Explicitly upgrading urllib3 from 1.25.11 to 1.26.9 inside my virtualenv seems to solve it. My guess is that you should be bumping the requests version here to a more recent one.

@simon-weber
Copy link
Owner

Good find!

It looks like urllib3 wrapped the built in ssl flag for python <3.6 compat (here). Since we're not supporting 3.6 we should be good to use it directly.

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

2 participants