planetfederal / qgis-geogiglight-plugin

GNU General Public License v2.0
19 stars 9 forks source link

python error when "sync layer with repository branch" #30

Closed gioman closed 8 years ago

gioman commented 8 years ago

I frequently get the following

Plugin version: 1.0-20160720-342d01cc7f1f2b21a9abe90c346a836a31a1c2c7
Traceback (most recent call last):
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\layeractions.py", line 123, in _syncLayer
    if syncLayer(layer):
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\tools\gpkgsync.py", line 90, in syncLayer
    mergeCommitId, importCommitId, conflicts, featureIds = repo.importgeopkg(layer, dlg.branch, dlg.message, user, email, True)
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\geogigwebapi\repository.py", line 360, in importgeopkg
    print json.dumps(checker.response, indent=4, sort_keys=True)
IOError: [Errno 9] Bad file descriptor

when doing the "sync layer with repository branch" operation. A common way to get it is to "Change to a different version..." go pick an early state of the layer, edit it and do "sync layer with repository branch". After choosing the "message to describe this update" and clicking ok, the error pops up.

Doing the same ("sync layer with repository branch") a second time and no error message and the operation seemingly finishing ok.

volaya commented 8 years ago

this is caused by a debug line that tries to print a response, but the python console was closed. Should be fixed now

gioman commented 8 years ago

Fix confirmed. I'm not able anymore to replicate with the above steps.