I am here to add one more detail if ShopifyApi is not the latest version on PIP, you will get the same error.