{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/1479","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1479/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1479/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1479/events","html_url":"https://github.com/spyder-ide/spyder/issues/1479","id":57968837,"number":1479,"title":"Opening another file in a running Spyder from the terminal fails in Python 3","user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/1%20star","name":"1 star","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/imported","name":"imported","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/14","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/14/labels","id":982158,"number":14,"title":"v2.3","description":null,"creator":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":27,"state":"open","created_at":"2015-02-17T00:39:30Z","updated_at":"2015-02-17T19:21:41Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-02-17T19:21:41Z","updated_at":"2015-02-17T19:21:44Z","closed_at":null,"body":"_From [tak...@gmail.com](https://code.google.com/u/116141806100272241943/) on 2013-07-05T17:35:26Z_\n\nThis is with a dev checkout of Spyder, testing on Python 3 (3.2 on this machine, but I'll take an educated guess that it would be the same in 3.3) \n\nWhat steps will reproduce the problem?\n\n 1. Start Spyder, and leave it running. Ensure single instance mode is on.\r\n2. From a separate terminal, run 'spyder some_file.py' What is the expected output? What do you see instead? The file should be opened in the existing Spyder window. Instead I get a traceback:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/spyder\", line 3, in \\<module>\r\n    start_app.main()\r\n  File \"/usr/local/lib/python3.2/dist-packages/spyderlib/start_app.py\", line 81, in main\r\n    send_args_to_spyder(args)\r\n  File \"/usr/local/lib/python3.2/dist-packages/spyderlib/start_app.py\", line 34, in send_args_to_spyder\r\n    client.send(osp.abspath(arg))\r\nTypeError: 'str' does not support the buffer interface\r\n\r\nIt's trying to send a unicode str object through a raw socket. It's simple enough to encode it to bytes, but it needs some care with encoding and decoding at the other end to ensure that filenames with non-ascii characters can be opened.\n\n_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1479_"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/74733521","html_url":"https://github.com/spyder-ide/spyder/issues/1479#issuecomment-74733521","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/1479","id":74733521,"user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T19:21:44Z","updated_at":"2015-02-17T19:21:44Z","body":"_From [tak...@gmail.com](https://code.google.com/u/116141806100272241943/) on 2013-08-14T12:16:16Z_\n\nThanks Pierre. Yes, that to_unicode_from_fs function is just the ticket."}}