Login error in python 3.10

autonlp login is unsuccessful with:
File “/usr/lib/python3.10/functools.py”, line 61, in update_wrapper
wrapper.wrapped = wrapped

I found on internet, that the solution is to downgrade python 3.10. I downgraded to 3.8 and it worked
(command used to login: autonlp login --api-key )