Using 2 camera in a USB HUB

Cameras work fine, and my programe work when I plug the cameras in 2 differents port USB in my computer.
I try another HUB, and it dosen’t work to.
And I use USB 3.

I see in my Device Manager windows correctly recognize the two camera.

So I don’t know how it dosen’t work with PyCharm

Maybe I had to use different function ? (I only use “camera_One = set_Camera(0)”)