Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Python 3.10 - sslv3 handshake #71

Open
9 tasks
gateriderz opened this issue Oct 7, 2021 · 1 comment
Open
9 tasks

Python 3.10 - sslv3 handshake #71

gateriderz opened this issue Oct 7, 2021 · 1 comment

Comments

@gateriderz
Copy link

Describe the bug
On Python 3.10, running pyhydroquebec -u MYACCOUNT -p MYPASSWORD --list-contracts
Getting this error:

/usr/local/lib/python3.10/site-packages/aiohttp/connector.py:964: RuntimeWarning: coroutine 'TCPConnector._resolve_host' was never awaited
  hosts = await asyncio.shield(self._resolve_host(
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
shield() got an unexpected keyword argument 'loop'

To Reproduce
Steps to reproduce the behavior:

# get the latest python version 3.10
docker run -it --rm python:latest bash
pip install pyhydroquebec 
pyhydroquebec -u MYACCOUNT -p MYPASSWORD --list-contracts

Expected behavior

Contract: 111111111
        Account: 0000000000
        Customer: 0000000000

PyHydroQuebec and Python version
Python: 3.10
PyHydroQuebec: 3.0.5

Hydroquebec rate

Select your rate:

  • [X ] D
  • DP
  • DM
  • DT

Hydroquebec multi-contract
Do you have more than one contract with HydroQuebec ?

  • Yes
  • [ X] No

Corner Cases
Are you in one of this situations:

  • Change of address
  • Change of rate
  • Add a new contract
  • Remove an old contract
  • [X ] No
  • Other:

Additional context
I was able to revert back to Python 3.9.7 and its working properly.

@gateriderz gateriderz changed the title Python 3.10 - SSLV3_ALERT_HANDSHAKE_FAILURE Python 3.10 - sslv3 handshake Oct 7, 2021
@mrjk
Copy link

mrjk commented Jan 24, 2022

I confirm the issue. I upgraded aiohttp.

Current setup:

$ python --version
Python 3.10.1
$ pip freeze
aiohttp==3.7.4
async-timeout==3.0.1
attrs==21.4.0
beautifulsoup4==4.8.1
cachetools==3.1.1
chardet==3.0.4
idna==3.3
mqtt-hass-base==0.1.4
multidict==4.7.6
paho-mqtt==1.4.0
-e git+https://github.com/titilambert/pyhydroquebec@2730ce11d3e447fcd5222c4532b56b50ec2bad8e#egg=pyhydroquebec
python-dateutil==2.8.0
PyYAML==5.1.2
six==1.16.0
soupsieve==2.3.1
typing_extensions==4.0.1
yarl==1.7.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants