{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing-gtk/issues/93","labels_url":"https://api.github.com/repos/syncthing/syncthing-gtk/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing-gtk/issues/93/comments","events_url":"https://api.github.com/repos/syncthing/syncthing-gtk/issues/93/events","html_url":"https://github.com/syncthing/syncthing-gtk/issues/93","id":57702270,"number":93,"title":"watcher.py: UnicodeDecodeError","user":{"login":"akhayyat","id":574774,"avatar_url":"https://avatars.githubusercontent.com/u/574774?v=3","gravatar_id":"","url":"https://api.github.com/users/akhayyat","html_url":"https://github.com/akhayyat","followers_url":"https://api.github.com/users/akhayyat/followers","following_url":"https://api.github.com/users/akhayyat/following{/other_user}","gists_url":"https://api.github.com/users/akhayyat/gists{/gist_id}","starred_url":"https://api.github.com/users/akhayyat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhayyat/subscriptions","organizations_url":"https://api.github.com/users/akhayyat/orgs","repos_url":"https://api.github.com/users/akhayyat/repos","events_url":"https://api.github.com/users/akhayyat/events{/privacy}","received_events_url":"https://api.github.com/users/akhayyat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-14T18:42:00Z","updated_at":"2015-02-17T00:01:42Z","closed_at":null,"body":"This appears to originate from the call:\r\n```python\r\nself.wm.add_watch(path,\r\n    pyinotify.IN_CLOSE_WRITE | pyinotify.IN_MOVED_TO | pyinotify.IN_MOVED_FROM |\r\n    pyinotify.IN_DELETE | pyinotify.IN_CREATE, rec=True\r\n)\r\n```\r\nin the `watcher.py` file in the `WatcherCls.watch()` method.\r\n\r\nBecause it adds paths recursively, I'm not even sure how to pinpoint the specific offending path.\r\n\r\nNote: syncthing-inotify appears to handle the same folder just fine.\r\n\r\nHere is the syncthing-gtk traceback:\r\n```python\r\nTraceback (most recent call last):\r\n  File \"<...>/syncthing-gtk/syncthing_gtk/app.py\", line 859, in cb_syncthing_folder_added\r\n    self.watcher.watch(box[\"norm_path\"])\r\n  File \"<...>/syncthing-gtk/syncthing_gtk/watcher.py\", line 39, in watch\r\n    pyinotify.IN_DELETE | pyinotify.IN_CREATE, rec=True\r\n  File \"/usr/lib/python2.7/dist-packages/pyinotify.py\", line 1898, in add_watch\r\n    for rpath in self.__walk_rec(apath, rec):\r\n  File \"/usr/lib/python2.7/dist-packages/pyinotify.py\", line 2082, in __walk_rec\r\n    for root, dirs, files in os.walk(top):\r\n  File \"/usr/lib/python2.7/os.py\", line 296, in walk\r\n    for x in walk(new_path, topdown, onerror, followlinks):\r\n  File \"/usr/lib/python2.7/os.py\", line 296, in walk\r\n    for x in walk(new_path, topdown, onerror, followlinks):\r\n  File \"/usr/lib/python2.7/os.py\", line 296, in walk\r\n    for x in walk(new_path, topdown, onerror, followlinks):\r\n  File \"/usr/lib/python2.7/os.py\", line 296, in walk\r\n    for x in walk(new_path, topdown, onerror, followlinks):\r\n  File \"/usr/lib/python2.7/os.py\", line 296, in walk\r\n    for x in walk(new_path, topdown, onerror, followlinks):\r\n  File \"/usr/lib/python2.7/os.py\", line 296, in walk\r\n    for x in walk(new_path, topdown, onerror, followlinks):\r\n  File \"/usr/lib/python2.7/os.py\", line 296, in walk\r\n    for x in walk(new_path, topdown, onerror, followlinks):\r\n  File \"/usr/lib/python2.7/os.py\", line 286, in walk\r\n    if isdir(join(top, name)):\r\n  File \"/usr/lib/python2.7/posixpath.py\", line 80, in join\r\n    path += '/' + b\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 1: ordinal not in range(128\r\n```"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing-gtk/issues/comments/74593913","html_url":"https://github.com/syncthing/syncthing-gtk/issues/93#issuecomment-74593913","issue_url":"https://api.github.com/repos/syncthing/syncthing-gtk/issues/93","id":74593913,"user":{"login":"AudriusButkevicius","id":1144861,"avatar_url":"https://avatars.githubusercontent.com/u/1144861?v=3","gravatar_id":"","url":"https://api.github.com/users/AudriusButkevicius","html_url":"https://github.com/AudriusButkevicius","followers_url":"https://api.github.com/users/AudriusButkevicius/followers","following_url":"https://api.github.com/users/AudriusButkevicius/following{/other_user}","gists_url":"https://api.github.com/users/AudriusButkevicius/gists{/gist_id}","starred_url":"https://api.github.com/users/AudriusButkevicius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AudriusButkevicius/subscriptions","organizations_url":"https://api.github.com/users/AudriusButkevicius/orgs","repos_url":"https://api.github.com/users/AudriusButkevicius/repos","events_url":"https://api.github.com/users/AudriusButkevicius/events{/privacy}","received_events_url":"https://api.github.com/users/AudriusButkevicius/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T00:01:42Z","updated_at":"2015-02-17T00:01:42Z","body":"I think: box[\"norm_path\"] might be unicode and not utf-8, which could be the issue?"}}