Transport is already connected exception when trying to authenticate using python

Hi @Ali_Abdel-Khalek !
This error might be caused by the mismatch between 3 libraries: urllib3, requests, requests_toolbelt. This might be happening if your specklepy is installed into a shared environment, where other libraries are causing conflict between dependencies’ versions.

When running your code, try running the command:

import requests, urllib3, specklepy 
from importlib.metadata import version
version('urllib3')
version('requests')
version('requests_toolbelt')

The compatible versions the libraries would be:
requests==2.31.0
urllib3==1.26.16
requests_toolbelt==0.10.1

You can try updating them manually, or just create a separate virtual environment with specklepy installation. Let us know if this works :raised_hands:

3 Likes