Traceback (most recent call last):



 "/home/user/triangle.py", line 360, in <module>


main()



 "/home/user/triangle.py", line 271, in write_to_sheet


sheet.update_cells(cells_to_update)



 "/home/user/.local/lib/python3.6/site-packages/gspread/models.py", line 609, in update_cells


'values': values_rect



 "/home/user/.local/lib/python3.6/site-packages/gspread/models.py", line 115, in values_update


r = self.client.request('put', url, params=params, json=body)



 "/home/user/.local/lib/python3.6/site-packages/gspread/client.py", line 79, in request


raise APIError(response)

gspread.exceptions.APIError: {


............S......................................................Traceback (most recent call last):

 "/usr/lib64/python3.4/site-packages/bottle.py", line 862, in _handle
return route.call(**args)

 "/usr/lib64/python3.4/site-packages/bottle.py", line 1727, in wrapper
rv = callback(*a, **ka)

 "/mnt/gen2/TmpDir/portage/dev-python/pycurl-7.19.3.1/work/pycurl-7.19.3.1-python3_4/tests/app.py", line 73, in files
files = [convert_file(key, bottle.request.files[key]) for key in bottle.request.files]

 "/mnt/gen2/TmpDir/portage/dev-python/pycurl-7.19.3.1/work/pycurl-7.19.3.1-python3_4/tests/app.py", line 73, in <listcomp>
files = [convert_file(key, bottle.request.files[key]) for key in bottle.request.files]

 "/mnt/gen2/TmpDir/portage/dev-python/pycurl-7.19.3.1/work/pycurl-7.19.3.1-python3_4/tests/app.py", line 60, in convert_file
'data': file.file.read().decode(),ValueError: I/O operation on closed file.