{"action":"created","issue":{"url":"https://api.github.com/repos/codeclimate/python-test-reporter/issues/37","repository_url":"https://api.github.com/repos/codeclimate/python-test-reporter","labels_url":"https://api.github.com/repos/codeclimate/python-test-reporter/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/codeclimate/python-test-reporter/issues/37/comments","events_url":"https://api.github.com/repos/codeclimate/python-test-reporter/issues/37/events","html_url":"https://github.com/codeclimate/python-test-reporter/issues/37","id":207921336,"number":37,"title":"UnicodeDecode Error ","user":{"login":"BuonOmo","id":11378424,"avatar_url":"https://avatars.githubusercontent.com/u/11378424?v=3","gravatar_id":"","url":"https://api.github.com/users/BuonOmo","html_url":"https://github.com/BuonOmo","followers_url":"https://api.github.com/users/BuonOmo/followers","following_url":"https://api.github.com/users/BuonOmo/following{/other_user}","gists_url":"https://api.github.com/users/BuonOmo/gists{/gist_id}","starred_url":"https://api.github.com/users/BuonOmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuonOmo/subscriptions","organizations_url":"https://api.github.com/users/BuonOmo/orgs","repos_url":"https://api.github.com/users/BuonOmo/repos","events_url":"https://api.github.com/users/BuonOmo/events{/privacy}","received_events_url":"https://api.github.com/users/BuonOmo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-15T20:40:32Z","updated_at":"2017-02-16T17:27:15Z","closed_at":null,"body":"Hi,\r\n\r\nI’m encountering a Python error every time I launch command:\r\n\r\n    codeclimate-test-reporter --debug --token [my_token]\r\n\r\nYou can reproduce the error this way:\r\n\r\n    git clone https://github.com/buonomo/inf8007\r\n    cd inf8007\r\n    pip install -r requirements.txt\r\n    coverage test_td2.py\r\n    codeclimate-test-reporter --debug --token [my_token, ask if needed]\r\n\r\nBelow, the [stdout](#stdout) and [stderr](#stderr) I obtained.\r\n\r\n# <a id=stdout></a>STDOUT\r\n> codeclimate-test-repoter 0.2.0\r\nRequests 2.11.1\r\nPython 3.5.2 (default, Nov 17 2016, 17:05:23) \r\n[GCC 5.4.0 20160609]\r\n/usr/bin/python3\r\nLinux 4.4.0-62-genericProcessing file path=td2.py\r\nProcessing file path=test_td2.py\r\nProcessing file path=/usr/lib/python3/dist-packages/six.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/__init__.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/collections.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/collocations.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/compat.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/data.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/decorators.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/downloader.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/featstruct.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/grammar.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/help.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/internals.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/jsontags.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/lazyimport.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/probability.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/text.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/toolbox.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/tree.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/treetransforms.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/util.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/wsd.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/ccg/__init__.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/ccg/api.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/ccg/chart.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/ccg/combinator.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/ccg/lexicon.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/ccg/logic.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/chunk/__init__.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/chunk/api.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/chunk/regexp.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/chunk/util.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/__init__.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/api.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/decisiontree.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/maxent.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/megam.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/naivebayes.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/positivenaivebayes.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/rte_classify.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/scikitlearn.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/senna.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/tadm.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/textcat.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/util.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/classify/weka.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/cluster/__init__.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/cluster/api.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/cluster/em.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/cluster/gaac.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/cluster/kmeans.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/cluster/util.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/__init__.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/util.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/__init__.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/aligned.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/api.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/bnc.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/bracket_parse.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/categorized_sents.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/chasen.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/childes.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/chunked.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/cmudict.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/comparative_sents.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/conll.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/crubadan.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/dependency.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/framenet.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/ieer.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/indian.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/ipipan.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/knbc.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/lin.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/mte.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/nkjp.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/nombank.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/nps_chat.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/opinion_lexicon.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/panlex_lite.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/pl196x.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/plaintext.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/ppattach.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/propbank.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/pros_cons.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/reviews.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/rte.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/semcor.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/senseval.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/sentiwordnet.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/sinica_treebank.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/string_category.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/switchboard.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/tagged.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/timit.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/toolbox.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/twitter.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/udhr.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/util.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/verbnet.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/wordlist.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/wordnet.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/xmldocs.py\r\nProcessing file path=/usr/local/lib/python3.5/dist-packages/nltk/corpus/reader/ycoe.py\r\n\r\n# <a id=stderr></a>STDERR\r\n\r\n> Traceback (most recent call last):\r\n  File \"/usr/local/bin/codeclimate-test-reporter\", line 9, in <module>\r\n    load_entry_point('codeclimate-test-reporter==0.2.0', 'console_scripts', 'codeclimate-test-reporter')()\r\n  File \"/usr/local/lib/python3.5/dist-packages/codeclimate_test_reporter/__main__.py\", line 11, in run\r\n    sys.exit(runner.run())\r\n  File \"/usr/local/lib/python3.5/dist-packages/codeclimate_test_reporter/components/runner.py\", line 49, in run\r\n    exit_status = reporter.run()\r\n  File \"/usr/local/lib/python3.5/dist-packages/codeclimate_test_reporter/components/reporter.py\", line 36, in run\r\n    payload = formatter.payload()\r\n  File \"/usr/local/lib/python3.5/dist-packages/codeclimate_test_reporter/components/formatter.py\", line 20, in payload\r\n    source_files = self.__source_files()\r\n  File \"/usr/local/lib/python3.5/dist-packages/codeclimate_test_reporter/components/formatter.py\", line 58, in __source_files\r\n    payload = file_coverage.payload()\r\n  File \"/usr/local/lib/python3.5/dist-packages/codeclimate_test_reporter/components/file_coverage.py\", line 18, in payload\r\n    \"blob_id\": self.__blob(),\r\n  File \"/usr/local/lib/python3.5/dist-packages/codeclimate_test_reporter/components/file_coverage.py\", line 44, in __blob\r\n    contents = self.__file_body()\r\n  File \"/usr/local/lib/python3.5/dist-packages/codeclimate_test_reporter/components/file_coverage.py\", line 51, in __file_body\r\n    self.file_body = open(self.__filename(), \"r\", encoding=\"utf-8-sig\").read()\r\n  File \"/usr/lib/python3.5/codecs.py\", line 321, in decode\r\n    (result, consumed) = self._buffer_decode(data, self.errors, final)\r\n  File \"/usr/lib/python3.5/encodings/utf_8_sig.py\", line 69, in _buffer_decode\r\n    return codecs.utf_8_decode(input, errors, final)\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xc6 in position 6000: invalid continuation byte\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/codeclimate/python-test-reporter/issues/comments/280399144","html_url":"https://github.com/codeclimate/python-test-reporter/issues/37#issuecomment-280399144","issue_url":"https://api.github.com/repos/codeclimate/python-test-reporter/issues/37","id":280399144,"user":{"login":"maxjacobson","id":1421211,"avatar_url":"https://avatars.githubusercontent.com/u/1421211?v=3","gravatar_id":"","url":"https://api.github.com/users/maxjacobson","html_url":"https://github.com/maxjacobson","followers_url":"https://api.github.com/users/maxjacobson/followers","following_url":"https://api.github.com/users/maxjacobson/following{/other_user}","gists_url":"https://api.github.com/users/maxjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/maxjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxjacobson/subscriptions","organizations_url":"https://api.github.com/users/maxjacobson/orgs","repos_url":"https://api.github.com/users/maxjacobson/repos","events_url":"https://api.github.com/users/maxjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/maxjacobson/received_events","type":"User","site_admin":false},"created_at":"2017-02-16T17:27:15Z","updated_at":"2017-02-16T17:27:15Z","body":"@BuonOmo Hi, thanks for opening this issue. I appreciate the level of detail and reproduction case. I tried to reproduce, but got this issue:\r\n\r\n```\r\n$ coverage test_td2.py    \r\nUnknown command: 'test_td2.py'\r\nUse 'coverage help' for help.\r\n```\r\n\r\nTried using `coverage run test_td2.py` and got this issue:\r\n\r\n```\r\n$ coverage run test_td2.py\r\nTraceback (most recent call last):\r\n  File \"test_td2.py\", line 29, in <module>\r\n    class TestParser(TestCase):\r\n  File \"test_td2.py\", line 30, in TestParser\r\n    parser = Parser('french')\r\n  File \"/Users/maxjacobson/src/oss-interesting/inf8007/td2.py\", line 54, in __init__\r\n    self.stopwords = set(stopwords.words(language))\r\n  File \"/usr/local/lib/python2.7/site-packages/nltk/corpus/util.py\", line 116, in __getattr__\r\n    self.__load()\r\n  File \"/usr/local/lib/python2.7/site-packages/nltk/corpus/util.py\", line 81, in __load\r\n    except LookupError: raise e\r\nLookupError: \r\n**********************************************************************\r\n  Resource u'corpora/stopwords' not found.  Please use the NLTK\r\n  Downloader to obtain the resource:  >>> nltk.download()\r\n  Searched in:\r\n    - '/Users/maxjacobson/nltk_data'\r\n    - '/usr/share/nltk_data'\r\n    - '/usr/local/share/nltk_data'\r\n    - '/usr/lib/nltk_data'\r\n    - '/usr/local/lib/nltk_data'\r\n**********************************************************************\r\n```\r\n\r\nHappy to dig into why you're seeing this issue once I'm able to reproduce."}}
{"actor":{"display_login":"maxjacobson"}}