AttributeError: o objeto 'list' não possui o atributo 'encode'

AttributeError: o objeto 'list' não possui o atributo 'encode'

Eu estou recebendo o seguinte erro. Alguma sugestão, por favor?

Traceback (most recent call last):
  File "json2coco.py", line 11, in <module>
    lb2co.from_json(labeled_data=labeled_data, coco_output=os.path.abspath('test-results/labelbox2coco_1.json'))
  File "~/Labelbox/scripts/labelbox2coco/__init__.py", line 79, in from_json
    multipolygon = wkt.loads(data['Label'][cat])
  File "/usr/local/lib/python3.5/dist-packages/Shapely-1.6.4.post1-py3.5-linux-x86_64.egg/shapely/wkt.py", line 10, in loads
 return geos.WKTReader(geos.lgeos).read(data)
 File "/usr/local/lib/python3.5/dist-packages/Shapely-1.6.4.post1-py3.5-linux-x86_64.egg/shapely/geos.py", line 250, in read
 text = text.encode('ascii')
AttributeError: 'list' object has no attribute 'encode'

informação relacionada