Hello Dries,
You should access the elevation instance related to the chunk, while in the provided example you are trying to apply the .altitude method to the Class itself:
elevation = chunk.elevation
vector=Metashape.Vector([float(long), float(lat))]
height = elevation.altitude(vector)