{"action":"created","issue":{"url":"https://api.github.com/repos/coala/coala/issues/5174","repository_url":"https://api.github.com/repos/coala/coala","labels_url":"https://api.github.com/repos/coala/coala/issues/5174/labels{/name}","comments_url":"https://api.github.com/repos/coala/coala/issues/5174/comments","events_url":"https://api.github.com/repos/coala/coala/issues/5174/events","html_url":"https://github.com/coala/coala/issues/5174","id":297525391,"number":5174,"title":"Unable to run code analysis","user":{"login":"maliknaik16","id":6859756,"avatar_url":"https://avatars1.githubusercontent.com/u/6859756?v=4","gravatar_id":"","url":"https://api.github.com/users/maliknaik16","html_url":"https://github.com/maliknaik16","followers_url":"https://api.github.com/users/maliknaik16/followers","following_url":"https://api.github.com/users/maliknaik16/following{/other_user}","gists_url":"https://api.github.com/users/maliknaik16/gists{/gist_id}","starred_url":"https://api.github.com/users/maliknaik16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maliknaik16/subscriptions","organizations_url":"https://api.github.com/users/maliknaik16/orgs","repos_url":"https://api.github.com/users/maliknaik16/repos","events_url":"https://api.github.com/users/maliknaik16/events{/privacy}","received_events_url":"https://api.github.com/users/maliknaik16/received_events","type":"User","site_admin":false},"labels":[{"id":99776607,"url":"https://api.github.com/repos/coala/coala/labels/type/bug","name":"type/bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-15T17:11:04Z","updated_at":"2018-02-17T14:00:44Z","closed_at":null,"author_association":"NONE","body":"### Overview Description\r\nRunning ```SpaceConsistencyBear``` on c program from the getting started with coala([Github](https://github.com/coala/coala-tutorial/blob/master/src/main.c)) using the following command:\r\n```coala --files=main.c --bears=SpaceConsistencyBear --save```\r\n\r\n# Steps to Reproduce\r\n\r\n1. Install python 3.4.4 on Windows 8.1\r\n2. ```pip3 install coala-bears```\r\n3. ```pip3 install virtualenv```\r\n4. Create a simple program with the following code and save it as main.c\r\n```\r\n#include <stdio.h> \r\n\r\nint main(void) {\r\n    printf(\"Welcome to coala. Keep following the tutorial, you are doing a great job so far!\\n\");\r\n\r\n    return 0;\r\n}\r\n\r\n````\r\n6. run virtualenv from ```[python34 instaled directory]\\Lib\\venv\\scripts\\nt\\activate.bat``` and go to the location where your main.c file is located.\r\n5. run the command ```coala --files=main.c --bears=SpaceConsistencyBear --save```\r\n\r\n# Actual Results\r\n```\r\n←[31m[ERROR]←[0m[21:29:30] An unknown error occurred. This is a bug. We are sorr\r\ny for the inconvenience. Please contact the developers for assistance. During ex\r\necution of coala an exception was raised. This should never happen. When asked f\r\nor, the following information may help investigating:←[0m\r\n←[34m[INFO]←[0m[21:29:30] Exception was:\r\nTraceback (most recent call last):\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2801, in\r\n_dep_map\r\n    return self.__dep_map\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2658, in\r\n__getattr__\r\n    raise AttributeError(attr)\r\n\r\nAttributeError: _DistInfoDistribution__dep_map\r\n\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\n\r\nTraceback (most recent call last):\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\coalib\\coala_main.py\", line 81, in run_coa\r\nla\r\n    arg_list=arg_list)\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\coalib\\settings\\ConfigurationGathering.py\"\r\n, line 387, in gather_configuration\r\n    log_printer)\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\coalib\\settings\\SectionFilling.py\", line 3\r\n1, in fill_settings\r\n    bear_dirs = section.bear_dirs()\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\coalib\\settings\\Section.py\", line 116, in\r\nbear_dirs\r\n    for bear_dir in collect_registered_bears_dirs('coalabears')]\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\coalib\\collecting\\Collectors.py\", line 307\r\n, in collect_registered_bears_dirs\r\n    registered_package = ep.load()\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2354, in\r\nload\r\n    self.require(*args, **kwargs)\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2371, in\r\nrequire\r\n    items = working_set.resolve(reqs, env, installer)\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\pkg_resources\\__init__.py\", line 847, in r\r\nesolve\r\n    new_requirements = dist.requires(req.extras)[::-1]\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2602, in\r\nrequires\r\n    dm = self._dep_map\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2803, in\r\n_dep_map\r\n    self.__dep_map = self._compute_dependencies()\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2836, in\r\n_compute_dependencies\r\n    common = frozenset(reqs_for_extra(None))\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2833, in\r\nreqs_for_extra\r\n    if req.marker_fn(override={'extra':extra}):\r\n\r\n  File \"c:\\python34\\lib\\site-packages\\_markerlib\\markers.py\", line 113, in marke\r\nr_fn\r\n    return eval(compiled_marker, environment)\r\n\r\n  File \"<environment marker>\", line 1, in <module>\r\n\r\nNameError: name 'platform_system' is not defined←[0m\r\n\r\n```\r\n# Expected Results\r\nCoala should ask me to remove trailing space. [From here](https://docs.coala.io/en/latest/Users/Tutorial.html)\r\n\r\n# Additional Information:\r\nOperating System: Windows 8.1 64-bit\r\nPython Version: 3.4.4\r\n"},"comment":{"url":"https://api.github.com/repos/coala/coala/issues/comments/366443327","html_url":"https://github.com/coala/coala/issues/5174#issuecomment-366443327","issue_url":"https://api.github.com/repos/coala/coala/issues/5174","id":366443327,"user":{"login":"maliknaik16","id":6859756,"avatar_url":"https://avatars1.githubusercontent.com/u/6859756?v=4","gravatar_id":"","url":"https://api.github.com/users/maliknaik16","html_url":"https://github.com/maliknaik16","followers_url":"https://api.github.com/users/maliknaik16/followers","following_url":"https://api.github.com/users/maliknaik16/following{/other_user}","gists_url":"https://api.github.com/users/maliknaik16/gists{/gist_id}","starred_url":"https://api.github.com/users/maliknaik16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maliknaik16/subscriptions","organizations_url":"https://api.github.com/users/maliknaik16/orgs","repos_url":"https://api.github.com/users/maliknaik16/repos","events_url":"https://api.github.com/users/maliknaik16/events{/privacy}","received_events_url":"https://api.github.com/users/maliknaik16/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T14:00:44Z","updated_at":"2018-02-17T14:00:44Z","author_association":"NONE","body":"```setuptools``` version is 18.2"}}
{"actor":{"display_login":"maliknaik16"}}