{"action":"created","issue":{"url":"https://api.github.com/repos/cmusphinx/g2p-seq2seq/issues/48","repository_url":"https://api.github.com/repos/cmusphinx/g2p-seq2seq","labels_url":"https://api.github.com/repos/cmusphinx/g2p-seq2seq/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/cmusphinx/g2p-seq2seq/issues/48/comments","events_url":"https://api.github.com/repos/cmusphinx/g2p-seq2seq/issues/48/events","html_url":"https://github.com/cmusphinx/g2p-seq2seq/issues/48","id":175945265,"number":48,"title":"TypeError in g2p-seq2seq --interactive","user":{"login":"DanielAsher","id":7915553,"avatar_url":"https://avatars.githubusercontent.com/u/7915553?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielAsher","html_url":"https://github.com/DanielAsher","followers_url":"https://api.github.com/users/DanielAsher/followers","following_url":"https://api.github.com/users/DanielAsher/following{/other_user}","gists_url":"https://api.github.com/users/DanielAsher/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielAsher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielAsher/subscriptions","organizations_url":"https://api.github.com/users/DanielAsher/orgs","repos_url":"https://api.github.com/users/DanielAsher/repos","events_url":"https://api.github.com/users/DanielAsher/events{/privacy}","received_events_url":"https://api.github.com/users/DanielAsher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-09T07:28:19Z","updated_at":"2016-09-09T08:05:16Z","closed_at":"2016-09-09T07:30:28Z","body":"Hi,\r\nthanks so much for this great project! \r\n\r\nI have it running in `--decode` mode but run into this error when `--interactive`where I receive this message:\r\n```\r\n$ sudo g2p-seq2seq --interactive --model g2p-seq2seq-cmudict\r\nCreating 2 layers of 512 units.\r\nReading model parameters from g2p-seq2seq-cmudict\r\n> hello\r\nTraceback (most recent call last):\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/bin/g2p-seq2seq\", line 11, in <module>\r\n    load_entry_point('g2p-seq2seq==5.0.0a0', 'console_scripts', 'g2p-seq2seq')()\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/g2p_seq2seq-5.0.0a0-py3.5.egg/g2p_seq2seq/app.py\", line 78, in main\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/g2p_seq2seq-5.0.0a0-py3.5.egg/g2p_seq2seq/g2p.py\", line 308, in interactive\r\nTypeError: decoding str is not supported\r\n```\r\n\r\nSorry if this is a newbie error. Any help much appreciated :)"},"comment":{"url":"https://api.github.com/repos/cmusphinx/g2p-seq2seq/issues/comments/245847305","html_url":"https://github.com/cmusphinx/g2p-seq2seq/issues/48#issuecomment-245847305","issue_url":"https://api.github.com/repos/cmusphinx/g2p-seq2seq/issues/48","id":245847305,"user":{"login":"DanielAsher","id":7915553,"avatar_url":"https://avatars.githubusercontent.com/u/7915553?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielAsher","html_url":"https://github.com/DanielAsher","followers_url":"https://api.github.com/users/DanielAsher/followers","following_url":"https://api.github.com/users/DanielAsher/following{/other_user}","gists_url":"https://api.github.com/users/DanielAsher/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielAsher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielAsher/subscriptions","organizations_url":"https://api.github.com/users/DanielAsher/orgs","repos_url":"https://api.github.com/users/DanielAsher/repos","events_url":"https://api.github.com/users/DanielAsher/events{/privacy}","received_events_url":"https://api.github.com/users/DanielAsher/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T08:05:16Z","updated_at":"2016-09-09T08:05:16Z","body":"Hi Nicolay,\r\n\r\nthanks for such a quick response. I re-cloned master (ec797a3) and checked I had a4239fs and reran `sudo python3 setup.py install` but got the same result. The error recurs so I assume my python installation is not quite right. Please comment or reopen if you feel you can help. \r\nThanks again :)\r\n\r\nHere is the console log (please forgive its length):\r\n```\r\nG2PAlignment $ clone https://github.com/cmusphinx/g2p-seq2seq.git\r\n-bash: clone: command not found\r\nG2PAlignment $ git clone https://github.com/cmusphinx/g2p-seq2seq.git\r\nCloning into 'g2p-seq2seq'...\r\nremote: Counting objects: 461, done.\r\nremote: Total 461 (delta 0), reused 0 (delta 0), pack-reused 461\r\nReceiving objects: 100% (461/461), 115.63 KiB | 0 bytes/s, done.\r\nResolving deltas: 100% (269/269), done.\r\nChecking connectivity... done.\r\nG2PAlignment $ cd g2p-seq2seq/\r\ng2p-seq2seq $ ls\r\nLICENSE.txt\t\tg2p_seq2seq\t\ttests\r\nMANIFEST.in\t\tgooglecl-pylint.rc\r\nREADME.md\t\tsetup.py\r\ng2p-seq2seq $ sudo python3 setup.py install\r\nPassword:\r\nrunning install\r\nrunning bdist_egg\r\nrunning egg_info\r\ncreating g2p_seq2seq.egg-info\r\nwriting entry points to g2p_seq2seq.egg-info/entry_points.txt\r\nwriting requirements to g2p_seq2seq.egg-info/requires.txt\r\nwriting dependency_links to g2p_seq2seq.egg-info/dependency_links.txt\r\nwriting top-level names to g2p_seq2seq.egg-info/top_level.txt\r\nwriting g2p_seq2seq.egg-info/PKG-INFO\r\nwriting manifest file 'g2p_seq2seq.egg-info/SOURCES.txt'\r\nreading manifest file 'g2p_seq2seq.egg-info/SOURCES.txt'\r\nreading manifest template 'MANIFEST.in'\r\nwriting manifest file 'g2p_seq2seq.egg-info/SOURCES.txt'\r\ninstalling library code to build/bdist.macosx-10.6-intel/egg\r\nrunning install_lib\r\nrunning build_py\r\ncreating build\r\ncreating build/lib\r\ncreating build/lib/g2p_seq2seq\r\ncopying g2p_seq2seq/__init__.py -> build/lib/g2p_seq2seq\r\ncopying g2p_seq2seq/app.py -> build/lib/g2p_seq2seq\r\ncopying g2p_seq2seq/data_utils.py -> build/lib/g2p_seq2seq\r\ncopying g2p_seq2seq/g2p.py -> build/lib/g2p_seq2seq\r\ncreating build/bdist.macosx-10.6-intel\r\ncreating build/bdist.macosx-10.6-intel/egg\r\ncreating build/bdist.macosx-10.6-intel/egg/g2p_seq2seq\r\ncopying build/lib/g2p_seq2seq/__init__.py -> build/bdist.macosx-10.6-intel/egg/g2p_seq2seq\r\ncopying build/lib/g2p_seq2seq/app.py -> build/bdist.macosx-10.6-intel/egg/g2p_seq2seq\r\ncopying build/lib/g2p_seq2seq/data_utils.py -> build/bdist.macosx-10.6-intel/egg/g2p_seq2seq\r\ncopying build/lib/g2p_seq2seq/g2p.py -> build/bdist.macosx-10.6-intel/egg/g2p_seq2seq\r\nbyte-compiling build/bdist.macosx-10.6-intel/egg/g2p_seq2seq/__init__.py to __init__.cpython-35.pyc\r\nbyte-compiling build/bdist.macosx-10.6-intel/egg/g2p_seq2seq/app.py to app.cpython-35.pyc\r\nbyte-compiling build/bdist.macosx-10.6-intel/egg/g2p_seq2seq/data_utils.py to data_utils.cpython-35.pyc\r\nbyte-compiling build/bdist.macosx-10.6-intel/egg/g2p_seq2seq/g2p.py to g2p.cpython-35.pyc\r\ncreating build/bdist.macosx-10.6-intel/egg/EGG-INFO\r\ncopying g2p_seq2seq.egg-info/PKG-INFO -> build/bdist.macosx-10.6-intel/egg/EGG-INFO\r\ncopying g2p_seq2seq.egg-info/SOURCES.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO\r\ncopying g2p_seq2seq.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO\r\ncopying g2p_seq2seq.egg-info/entry_points.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO\r\ncopying g2p_seq2seq.egg-info/requires.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO\r\ncopying g2p_seq2seq.egg-info/top_level.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO\r\nzip_safe flag not set; analyzing archive contents...\r\ncreating dist\r\ncreating 'dist/g2p_seq2seq-5.0.0a0-py3.5.egg' and adding 'build/bdist.macosx-10.6-intel/egg' to it\r\nremoving 'build/bdist.macosx-10.6-intel/egg' (and everything under it)\r\nProcessing g2p_seq2seq-5.0.0a0-py3.5.egg\r\nRemoving /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/g2p_seq2seq-5.0.0a0-py3.5.egg\r\nCopying g2p_seq2seq-5.0.0a0-py3.5.egg to /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages\r\ng2p-seq2seq 5.0.0a0 is already the active version in easy-install.pth\r\nInstalling g2p-seq2seq script to /Library/Frameworks/Python.framework/Versions/3.5/bin\r\n\r\nInstalled /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/g2p_seq2seq-5.0.0a0-py3.5.egg\r\nProcessing dependencies for g2p-seq2seq==5.0.0a0\r\nSearching for tensorflow==0.9.0\r\nBest match: tensorflow 0.9.0\r\nAdding tensorflow 0.9.0 to easy-install.pth file\r\nInstalling tensorboard script to /Library/Frameworks/Python.framework/Versions/3.5/bin\r\n\r\nUsing /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages\r\nSearching for wheel==0.29.0\r\nBest match: wheel 0.29.0\r\nAdding wheel 0.29.0 to easy-install.pth file\r\nInstalling wheel script to /Library/Frameworks/Python.framework/Versions/3.5/bin\r\n\r\nUsing /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages\r\nSearching for numpy==1.11.1\r\nBest match: numpy 1.11.1\r\nAdding numpy 1.11.1 to easy-install.pth file\r\n\r\nUsing /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages\r\nSearching for six==1.10.0\r\nBest match: six 1.10.0\r\nProcessing six-1.10.0-py3.5.egg\r\nsix 1.10.0 is already the active version in easy-install.pth\r\n\r\nUsing /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/six-1.10.0-py3.5.egg\r\nSearching for protobuf==3.0.0b2\r\nBest match: protobuf 3.0.0b2\r\nAdding protobuf 3.0.0b2 to easy-install.pth file\r\n\r\nUsing /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages\r\nSearching for setuptools==26.1.1\r\nBest match: setuptools 26.1.1\r\nAdding setuptools 26.1.1 to easy-install.pth file\r\nInstalling easy_install-3.5 script to /Library/Frameworks/Python.framework/Versions/3.5/bin\r\nInstalling easy_install script to /Library/Frameworks/Python.framework/Versions/3.5/bin\r\n\r\nUsing /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages\r\nFinished processing dependencies for g2p-seq2seq==5.0.0a0\r\ng2p-seq2seq $ wget -O g2p-seq2seq-cmudict.tar.gz https://sourceforge.net/projects/cmusphinx/files/G2P%20Models/g2p-seq2seq-cmudict.tar.gz/download \r\n--2016-09-09 08:52:54--  https://sourceforge.net/projects/cmusphinx/files/G2P%20Models/g2p-seq2seq-cmudict.tar.gz/download\r\nResolving sourceforge.net... 216.34.181.60\r\nConnecting to sourceforge.net|216.34.181.60|:443... connected.\r\nHTTP request sent, awaiting response... 302 Found\r\nLocation: http://downloads.sourceforge.net/project/cmusphinx/G2P%20Models/g2p-seq2seq-cmudict.tar.gz?r=&ts=1473407575&use_mirror=netcologne [following]\r\n--2016-09-09 08:52:54--  http://downloads.sourceforge.net/project/cmusphinx/G2P%20Models/g2p-seq2seq-cmudict.tar.gz?r=&ts=1473407575&use_mirror=netcologne\r\nResolving downloads.sourceforge.net... 216.34.181.59\r\nConnecting to downloads.sourceforge.net|216.34.181.59|:80... connected.\r\nHTTP request sent, awaiting response... 302 Found\r\nLocation: http://netcologne.dl.sourceforge.net/project/cmusphinx/G2P%20Models/g2p-seq2seq-cmudict.tar.gz [following]\r\n--2016-09-09 08:52:55--  http://netcologne.dl.sourceforge.net/project/cmusphinx/G2P%20Models/g2p-seq2seq-cmudict.tar.gz\r\nResolving netcologne.dl.sourceforge.net... 78.35.24.46, 2001:4dd0:1234:6::5f\r\nConnecting to netcologne.dl.sourceforge.net|78.35.24.46|:80... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 28465508 (27M) [application/x-gzip]\r\nSaving to: 'g2p-seq2seq-cmudict.tar.gz'\r\n\r\ng2p-seq2seq-cmudict. 100%[=======================>]  27.15M  5.46MB/s   in 5.9s   \r\n\r\n2016-09-09 08:53:01 (4.60 MB/s) - 'g2p-seq2seq-cmudict.tar.gz' saved [28465508/28465508]\r\n\r\ng2p-seq2seq $ tar xf g2p-seq2seq-cmudict.tar.gz\r\ng2p-seq2seq $ g2p-seq2seq --interactive --model g2p-seq2seq-cmudict\r\nCreating 2 layers of 512 units.\r\nReading model parameters from g2p-seq2seq-cmudict\r\n> hello\r\nTraceback (most recent call last):\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/bin/g2p-seq2seq\", line 11, in <module>\r\n    load_entry_point('g2p-seq2seq==5.0.0a0', 'console_scripts', 'g2p-seq2seq')()\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/g2p_seq2seq-5.0.0a0-py3.5.egg/g2p_seq2seq/app.py\", line 78, in main\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/g2p_seq2seq-5.0.0a0-py3.5.egg/g2p_seq2seq/g2p.py\", line 308, in interactive\r\nTypeError: decoding str is not supported\r\n\r\n\r\ng2p-seq2seq $ git rev-parse HEAD\r\nec797a3369dd646142c55f147f6adfbdacb818bd\r\ng2p-seq2seq $ git log\r\ncommit ec797a3369dd646142c55f147f6adfbdacb818bd\r\nAuthor: Nickolay Shmyrev <nshmyrev@gmail.com>\r\nDate:   Thu Aug 25 15:58:06 2016 +0200\r\n\r\n    Small pylint fix\r\n\r\ncommit a4239f219b444aab236c6171487bdc45d3341038\r\nAuthor: Nickolay Shmyrev <nshmyrev@gmail.com>\r\nDate:   Thu Aug 25 15:47:01 2016 +0200\r\n\r\n    Use six library for Python3 compatibility\r\n    \r\n    See for details https://github.com/cmusphinx/g2p-seq2seq/pull/47\r\n```"}}
{"actor":{"display_login":"DanielAsher"}}