Export to HTML fails

I’m coding Jupyter notebooks in Julia in VSCode. Being an old guy, I like to print out the code and mark it up. (Pathetic, right?) When I updated Python to 3.12.4, I can no longer do this, and I get very confusing error messages. Can anyone help?