ChatGPT remember when getting it to generate code it some times wants to import old library's tell it when something is no longer supported and it will try again with something new. The code will be buggy and may not handle errors well unless you ask it to.