{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16138","repository_url":"https://api.github.com/repos/cocos2d/cocos2d-x","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16138/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16138/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16138/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/16138","id":165981948,"number":16138,"title":"Cocos consle on MAC getting error (again) :ValueError: unknown locale: UTF-8  ","user":{"login":"meiry","id":1107316,"avatar_url":"https://avatars.githubusercontent.com/u/1107316?v=3","gravatar_id":"","url":"https://api.github.com/users/meiry","html_url":"https://github.com/meiry","followers_url":"https://api.github.com/users/meiry/followers","following_url":"https://api.github.com/users/meiry/following{/other_user}","gists_url":"https://api.github.com/users/meiry/gists{/gist_id}","starred_url":"https://api.github.com/users/meiry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meiry/subscriptions","organizations_url":"https://api.github.com/users/meiry/orgs","repos_url":"https://api.github.com/users/meiry/repos","events_url":"https://api.github.com/users/meiry/events{/privacy}","received_events_url":"https://api.github.com/users/meiry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"natural-law","id":488169,"avatar_url":"https://avatars.githubusercontent.com/u/488169?v=3","gravatar_id":"","url":"https://api.github.com/users/natural-law","html_url":"https://github.com/natural-law","followers_url":"https://api.github.com/users/natural-law/followers","following_url":"https://api.github.com/users/natural-law/following{/other_user}","gists_url":"https://api.github.com/users/natural-law/gists{/gist_id}","starred_url":"https://api.github.com/users/natural-law/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natural-law/subscriptions","organizations_url":"https://api.github.com/users/natural-law/orgs","repos_url":"https://api.github.com/users/natural-law/repos","events_url":"https://api.github.com/users/natural-law/events{/privacy}","received_events_url":"https://api.github.com/users/natural-law/received_events","type":"User","site_admin":false},"assignees":[{"login":"natural-law","id":488169,"avatar_url":"https://avatars.githubusercontent.com/u/488169?v=3","gravatar_id":"","url":"https://api.github.com/users/natural-law","html_url":"https://github.com/natural-law","followers_url":"https://api.github.com/users/natural-law/followers","following_url":"https://api.github.com/users/natural-law/following{/other_user}","gists_url":"https://api.github.com/users/natural-law/gists{/gist_id}","starred_url":"https://api.github.com/users/natural-law/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natural-law/subscriptions","organizations_url":"https://api.github.com/users/natural-law/orgs","repos_url":"https://api.github.com/users/natural-law/repos","events_url":"https://api.github.com/users/natural-law/events{/privacy}","received_events_url":"https://api.github.com/users/natural-law/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-07-17T15:42:46Z","updated_at":"2016-07-18T03:02:45Z","closed_at":null,"body":"downloaded the latest version 3.12 \r\nthis used to be in some of the previous  versions   , \r\ni executed :  cocos new help\r\nGot this error : \r\n```\r\nmeirs-Mac-mini:cocos2d-x-3.12 meiryanovich$ cocos new help\r\nTraceback (most recent call last):\r\n  File \"/Users/meiryanovich/Documents/cocos2d-x/cocos2d-x-3.12/tools/cocos2d-console/bin/cocos.py\", line 22, in <module>\r\n    import cocos_project\r\n  File \"/Users/meiryanovich/Documents/cocos2d-x/cocos2d-x-3.12/tools/cocos2d-console/bin/cocos_project.py\", line 4, in <module>\r\n    import cocos\r\n  File \"/Users/meiryanovich/Documents/cocos2d-x/cocos2d-x-3.12/tools/cocos2d-console/bin/cocos.py\", line 936, in <module>\r\n    language, encoding = locale.getlocale()\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py\", line 562, in getlocale\r\n    return _parse_localename(localename)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py\", line 475, in _parse_localename\r\n    raise ValueError, 'unknown locale: %s' % localename\r\nValueError: unknown locale: UTF-8\r\n \r\n```\r\n\r\n\r\ni was able  to fix this problem executing those commands in the shell :\r\n```\r\nmeirs-Mac-mini:cocos2d-x-3.12 meiryanovich$ export LC_ALL=en_US.UTF-8\r\nmeirs-Mac-mini:cocos2d-x-3.12 meiryanovich$ export LANG=en_US.UTF-8\r\n```\r\n\r\ncan it be combined in the setup.py or something ? \r\nThanks "},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/233221477","html_url":"https://github.com/cocos2d/cocos2d-x/issues/16138#issuecomment-233221477","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/16138","id":233221477,"user":{"login":"natural-law","id":488169,"avatar_url":"https://avatars.githubusercontent.com/u/488169?v=3","gravatar_id":"","url":"https://api.github.com/users/natural-law","html_url":"https://github.com/natural-law","followers_url":"https://api.github.com/users/natural-law/followers","following_url":"https://api.github.com/users/natural-law/following{/other_user}","gists_url":"https://api.github.com/users/natural-law/gists{/gist_id}","starred_url":"https://api.github.com/users/natural-law/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natural-law/subscriptions","organizations_url":"https://api.github.com/users/natural-law/orgs","repos_url":"https://api.github.com/users/natural-law/repos","events_url":"https://api.github.com/users/natural-law/events{/privacy}","received_events_url":"https://api.github.com/users/natural-law/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T03:02:45Z","updated_at":"2016-07-18T03:02:45Z","body":"@meiry @minggo I don't think it should be added in `setup.py`. Because maybe it will be conflict with existing environment settings on user's machine.\r\n\r\nBut I think we can add the solution into FAQ or Documents. Then once user encountered the problem, they can find the solution.\r\n\r\n@meiry After all, thanks for your feedback!"}}
{"actor":{"display_login":"natural-law"}}