ERROR: 'OpenSSL.crypto' has no attribute 'sign'
Mantenedores costumam responder em até 1 dia
@chalmerlowe já está trabalhando nisso.
Desde 7/4/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Environment details
- OS type and version: ubuntu:20.04 and macOs 14.7.1
- Python version: 3.11
- pip version: I dont use pip y use Poetry 1.5.1
google-api-python-clientversion: 2.159.0
Steps to reproduce
- Install google-api-python-client with pip, pdm, poetry, hatch... it doesn't matter
- Use the method oauth to authenticate
from oauth2client.service_account import ServiceAccountCredentials - use .execute() method of any googleapi method
- this retrieves the error 'OpenSSL.crypto' has no attribute 'sign'
Why does this happen?
Because you are importing oauth2client on the line https://github.com/googleapis/google-api-python-client/blob/main/googleapiclient/_auth.py#L33 and it is deprecated, oauth2client uses openssl with the method sign and openssl removed the method sign on the version 24.3.0.
So if you install openssl >= 24.3.0, and if you use the oauth2client.service_account from googleapiclient this will retrieves you the error
ERROR: module 'OpenSSL.crypto' has no attribute 'sign'
How to solves this?
Set a constraint of openssl >= 24.3.0 on googleapiclient or dont import oauth2client on googleapi anymore.
- Linguagem predominante
- Python
- Estrelas
- 8.9k
- Forks
- 2.6k
- Merge médio
- 9h 58min
- PRs com merge (30d)
- 6
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de googleapis/google-api-python-client
-
Disable prettyPrint by default for Google Sheets API responsesTalvez já em andamento @pawciobiel assumiu há 63 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
googleapis/google-api-python-client#2788 ·
Mantenedores costumam responder em até 1 dia
-
test: connection leak test test_discovery_http_is_closed is shadowed and syntactically invalidTalvez já em andamento @Capstan assumiu há 139 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
googleapis/google-api-python-client#2757 ·
Mantenedores costumam responder em até 1 dia
-
test: strict positional parameter enforcement is ignored under pytestTalvez já em andamento @Capstan assumiu há 139 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
googleapis/google-api-python-client#2755 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
googleapis/google-api-python-client#2825 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Option to skip per-method docstring generation in build() (memory / high-concurrency)Talvez já em andamento @rootkiller6788 assumiu há 25 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 52/100
googleapis/google-api-python-client#2779 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de googleapis/google-api-python-client
Issues semelhantes
-
bot-triaged module: LrScheduler module: optimizer triaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
documentation glm5 llm-model
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
vllm-project/vllm-ascend#19062 ·
Mantenedores costumam responder em até 1 dia
-
Author Page: shuai-zhao-llmAbertaauthor-page correction
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
acl-org/acl-anthology#10496 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Issue Type: Bug Report
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
celery/celery#10875 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
SasanLabs/VulnerableApp#836 ·
Mantenedores costumam responder em até 1 dia