{"action":"created","issue":{"url":"https://api.github.com/repos/warner/magic-wormhole/issues/246","repository_url":"https://api.github.com/repos/warner/magic-wormhole","labels_url":"https://api.github.com/repos/warner/magic-wormhole/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/warner/magic-wormhole/issues/246/comments","events_url":"https://api.github.com/repos/warner/magic-wormhole/issues/246/events","html_url":"https://github.com/warner/magic-wormhole/issues/246","id":252278482,"number":246,"title":"UnicodeDecodeError in Windows Server 2008 R2 (spanish locale)","user":{"login":"pacoqueen","id":1090482,"avatar_url":"https://avatars2.githubusercontent.com/u/1090482?v=4","gravatar_id":"","url":"https://api.github.com/users/pacoqueen","html_url":"https://github.com/pacoqueen","followers_url":"https://api.github.com/users/pacoqueen/followers","following_url":"https://api.github.com/users/pacoqueen/following{/other_user}","gists_url":"https://api.github.com/users/pacoqueen/gists{/gist_id}","starred_url":"https://api.github.com/users/pacoqueen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pacoqueen/subscriptions","organizations_url":"https://api.github.com/users/pacoqueen/orgs","repos_url":"https://api.github.com/users/pacoqueen/repos","events_url":"https://api.github.com/users/pacoqueen/events{/privacy}","received_events_url":"https://api.github.com/users/pacoqueen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-23T13:14:08Z","updated_at":"2017-09-04T18:02:10Z","closed_at":null,"author_association":"NONE","body":"When I try to run on sending or receiving mode I get this exception (installed via pip):\r\n\r\n```\r\n\r\n\r\nC:\\>wormhole send --text \"No more justpaste.it\"\r\nmain function encountered error\r\nTraceback (most recent call last):\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\internet\\defer.py\", line 500, in e\r\nrrback\r\nself._startRunCallbacks(fail)\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\internet\\defer.py\", line 567, in _\r\nstartRunCallbacks\r\nself._runCallbacks()\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\internet\\defer.py\", line 653, in _\r\nrunCallbacks\r\ncurrent.result = callback(current.result, *args, **kw)\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\internet\\defer.py\", line 1442, in\r\ngotResult\r\n_inlineCallbacks(r, g, deferred)\r\n--- <exception caught here> ---\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\internet\\defer.py\", line 1384, in\r\n_inlineCallbacks\r\nresult = result.throwExceptionIntoGenerator(g)\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\python\\failure.py\", line 393, in t\r\nhrowExceptionIntoGenerator\r\nreturn g.throw(self.type, self.value, self.tb)\r\nFile \"c:\\python27\\lib\\site-packages\\wormhole\\cli\\cli.py\", line 125, in _dispat\r\nch_command\r\nmsg += six.text_type(e)\r\nexceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position\r\n78: ordinal not in range(128)\r\n\r\n\r\nC:\\>wormhole receive\r\nmain function encountered error\r\nTraceback (most recent call last):\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\internet\\defer.py\", line 500, in e\r\nrrback\r\nself._startRunCallbacks(fail)\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\internet\\defer.py\", line 567, in _\r\nstartRunCallbacks\r\nself._runCallbacks()\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\internet\\defer.py\", line 653, in _\r\nrunCallbacks\r\ncurrent.result = callback(current.result, *args, **kw)\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\internet\\defer.py\", line 1442, in\r\ngotResult\r\n_inlineCallbacks(r, g, deferred)\r\n--- <exception caught here> ---\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\internet\\defer.py\", line 1384, in\r\n_inlineCallbacks\r\nresult = result.throwExceptionIntoGenerator(g)\r\nFile \"c:\\python27\\lib\\site-packages\\twisted\\python\\failure.py\", line 393, in t\r\nhrowExceptionIntoGenerator\r\nreturn g.throw(self.type, self.value, self.tb)\r\nFile \"c:\\python27\\lib\\site-packages\\wormhole\\cli\\cli.py\", line 125, in _dispat\r\nch_command\r\nmsg += six.text_type(e)\r\nexceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position\r\n78: ordinal not in range(128)\r\n\r\n\r\nC:\\>\r\n```\r\n\r\nSome useful info (I hope):\r\n```\r\n\r\n\r\nC:\\>ipython\r\nPython 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)]\r\nType \"copyright\", \"credits\" or \"license\" for more information.\r\n\r\nIPython 4.1.2 -- An enhanced Interactive Python.\r\n? -> Introduction and overview of IPython's features.\r\n%quickref -> Quick reference.\r\nhelp -> Python's own help system.\r\nobject? -> Details about 'object', use 'object??' for extra details.\r\n\r\nIn [1]: import os\r\n\r\nIn [2]: import locale\r\n\r\nIn [3]: import sys\r\n\r\nIn [4]: os.environ['OS']\r\nOut[4]: 'Windows_NT'\r\n\r\nIn [5]: os.environ['LANG']\r\nOut[5]: 'ES'\r\n\r\nIn [6]: locale.getlocale()\r\nOut[6]: (None, None)\r\n\r\nIn [7]: locale.getdefaultlocale()\r\nOut[7]: ('es_ES', 'cp1252')\r\n\r\nIn [8]: locale.getpreferredencoding()\r\nOut[8]: 'cp1252'\r\n\r\nIn [9]: sys.version_info\r\nOut[9]: sys.version_info(major=2, minor=7, micro=1, releaselevel='final', serial\r\n=0)\r\n\r\nIn [10]: sys.version\r\nOut[10]: '2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)]'\r\n\r\n```\r\n\r\nI can provide more info if you want. I just found this tool a must-have to me.\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/warner/magic-wormhole/issues/comments/327009545","html_url":"https://github.com/warner/magic-wormhole/issues/246#issuecomment-327009545","issue_url":"https://api.github.com/repos/warner/magic-wormhole/issues/246","id":327009545,"user":{"login":"warner","id":27146,"avatar_url":"https://avatars3.githubusercontent.com/u/27146?v=4","gravatar_id":"","url":"https://api.github.com/users/warner","html_url":"https://github.com/warner","followers_url":"https://api.github.com/users/warner/followers","following_url":"https://api.github.com/users/warner/following{/other_user}","gists_url":"https://api.github.com/users/warner/gists{/gist_id}","starred_url":"https://api.github.com/users/warner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warner/subscriptions","organizations_url":"https://api.github.com/users/warner/orgs","repos_url":"https://api.github.com/users/warner/repos","events_url":"https://api.github.com/users/warner/events{/privacy}","received_events_url":"https://api.github.com/users/warner/received_events","type":"User","site_admin":false},"created_at":"2017-09-04T18:02:10Z","updated_at":"2017-09-04T18:02:10Z","author_association":"OWNER","body":"Thanks for using it! Yeah, there are some lingering unicode problems, I think we fixed one in current trunk, but I'm sure there's another one still present that I haven't been able to find yet.\r\n\r\nYou said you installed via pip, that means the traceback above was from version `0.10.2`, right? (`wormhole --version` will tell you).\r\n\r\nWhat's the full path to the directory from which you're running both commands? I suspect this problem has to do with having non-ascii characters in the directory pathname (e.g. a username or hostname). Some of the bugs we've fixed so far have been about non-ascii characters in the transferred *filename*, but the exceptions you pasted look like they occurred before we looked at the filename, which might indicate a problem handling the directory name instead.\r\n\r\nCould you try installing from a current git checkout and see if the behavior is different? I can't promise that it'll fix the problem, but if not, I'd like to see the traceback you get with the updated code.\r\n"}}
{"actor":{"display_login":"warner"}}