This error is raised from geopandas here with geopandas versions from 0.6.0 on.
The code needs to be adapted as suggested here.