Thank you Cassel for all your help in fixing the script issue in X9. I installed the python package and the scripts are working now. also I have had that run time error message but I do not remember whether it was x9 or x8, however I only saw it one time.
Once again Thank You Cassel . I will now settle in to working with X9 and continue my learning journey.