Have you tried to run your script from the Anaconda Prompt?

To open Anaconda Prompt:

- Windows: Click Start, search for Anaconda Prompt, and click to open.
- macOS: Use Cmd+Space to open Spotlight Search and type “Navigator” to open the program.
- Linux: Open Applications > System Tools > terminal.

You can find further details here.

Anyway I’m working on the new version of the Client lib, which I hope could resolve the issue.