You are using the very old version of GraphFrames. The latest one that is compatible with Spark 3.5.x is the 0.9.3.