{"action":"created","issue":{"url":"https://api.github.com/repos/LordGolias/sqf/issues/22","repository_url":"https://api.github.com/repos/LordGolias/sqf","labels_url":"https://api.github.com/repos/LordGolias/sqf/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/LordGolias/sqf/issues/22/comments","events_url":"https://api.github.com/repos/LordGolias/sqf/issues/22/events","html_url":"https://github.com/LordGolias/sqf/issues/22","id":250286492,"number":22,"title":"pip install seems to be broken","user":{"login":"SilentSpike","id":5459452,"avatar_url":"https://avatars3.githubusercontent.com/u/5459452?v=4","gravatar_id":"","url":"https://api.github.com/users/SilentSpike","html_url":"https://github.com/SilentSpike","followers_url":"https://api.github.com/users/SilentSpike/followers","following_url":"https://api.github.com/users/SilentSpike/following{/other_user}","gists_url":"https://api.github.com/users/SilentSpike/gists{/gist_id}","starred_url":"https://api.github.com/users/SilentSpike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilentSpike/subscriptions","organizations_url":"https://api.github.com/users/SilentSpike/orgs","repos_url":"https://api.github.com/users/SilentSpike/repos","events_url":"https://api.github.com/users/SilentSpike/events{/privacy}","received_events_url":"https://api.github.com/users/SilentSpike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-15T11:12:26Z","updated_at":"2017-09-03T05:56:33Z","closed_at":null,"author_association":"NONE","body":"It seems like something funky is going on when installing sqflint via:\r\n`pip install sqflint`\r\nIf you then try to run sqflint (the exe or the .py file) you get a bunch of errors about the module not existing and import commands failing.\r\n\r\nI'm running windows 10 and only have python 3.6 installed. I managed to fix the issue by installing the git version:\r\n`pip install git+https://github.com/LordGolias/sqf.git`"},"comment":{"url":"https://api.github.com/repos/LordGolias/sqf/issues/comments/326786174","html_url":"https://github.com/LordGolias/sqf/issues/22#issuecomment-326786174","issue_url":"https://api.github.com/repos/LordGolias/sqf/issues/22","id":326786174,"user":{"login":"LordGolias","id":16410441,"avatar_url":"https://avatars0.githubusercontent.com/u/16410441?v=4","gravatar_id":"","url":"https://api.github.com/users/LordGolias","html_url":"https://github.com/LordGolias","followers_url":"https://api.github.com/users/LordGolias/followers","following_url":"https://api.github.com/users/LordGolias/following{/other_user}","gists_url":"https://api.github.com/users/LordGolias/gists{/gist_id}","starred_url":"https://api.github.com/users/LordGolias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LordGolias/subscriptions","organizations_url":"https://api.github.com/users/LordGolias/orgs","repos_url":"https://api.github.com/users/LordGolias/repos","events_url":"https://api.github.com/users/LordGolias/events{/privacy}","received_events_url":"https://api.github.com/users/LordGolias/received_events","type":"User","site_admin":false},"created_at":"2017-09-03T05:56:33Z","updated_at":"2017-09-03T05:56:33Z","author_association":"OWNER","body":"I found a potential solution:\r\n\r\n1. on the search bar from windows, search \"edit environment variables\", and select `edit environment variables for your account`.\r\n2. Add a new variable PYTHONPATH with value `C:\\Program Files (x86)\\Python36-32\\Scripts`\r\n3. restart Atom or console.\r\n\r\nThe root cause is that pip installs scripts on the directory `Scripts`, but Python installation does not add that dir to its env variables (test using `python -c \"import sys; print(sys.path))\"`. As a consequence, `sqflint.exe` does not find the appropriate `sqflint.py` script. The steps above fix this by adding the variable accordingly.\r\n\r\nI do not know what caused the pip install sqflint to change this behavior from 0.2 to 0.3.\r\n\r\n@SilentSpike could you reproduce the steps above and check that it solves the problem in your computer?"}}
{"actor":{"display_login":"LordGolias"}}