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

Python 3.10 - sslv3 handshake #71

Description

@gateriderz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions