It's failing at an initial step under the hood to download a tokenizer
If you run this code, you will reproduce the issue
import tiktoken
enc = tiktoken.get_encoding("gpt2")
This is a core piece of llama-index, so no easy way around this. I suggest checking your interenet connection?