{"action":"created","issue":{"url":"https://api.github.com/repos/requests/requests-oauthlib/issues/299","repository_url":"https://api.github.com/repos/requests/requests-oauthlib","labels_url":"https://api.github.com/repos/requests/requests-oauthlib/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/requests/requests-oauthlib/issues/299/comments","events_url":"https://api.github.com/repos/requests/requests-oauthlib/issues/299/events","html_url":"https://github.com/requests/requests-oauthlib/issues/299","id":272762762,"number":299,"title":"TypeError: unorderable types: module() < str()","user":{"login":"HotTabascoSauce","id":31966046,"avatar_url":"https://avatars1.githubusercontent.com/u/31966046?v=4","gravatar_id":"","url":"https://api.github.com/users/HotTabascoSauce","html_url":"https://github.com/HotTabascoSauce","followers_url":"https://api.github.com/users/HotTabascoSauce/followers","following_url":"https://api.github.com/users/HotTabascoSauce/following{/other_user}","gists_url":"https://api.github.com/users/HotTabascoSauce/gists{/gist_id}","starred_url":"https://api.github.com/users/HotTabascoSauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HotTabascoSauce/subscriptions","organizations_url":"https://api.github.com/users/HotTabascoSauce/orgs","repos_url":"https://api.github.com/users/HotTabascoSauce/repos","events_url":"https://api.github.com/users/HotTabascoSauce/events{/privacy}","received_events_url":"https://api.github.com/users/HotTabascoSauce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-11-09T23:17:49Z","updated_at":"2017-12-31T17:00:48Z","closed_at":null,"author_association":"NONE","body":"In the __init__.py file there is an if statement that calls `requests.__version__` and compares it to '2.0.0'\r\n\r\nI get a type error every time: \r\n`File \"/srv/USER/lib/python3.5/site-packages/requests_oauthlib/__init__.py\", line 9, in <module> if requests.__version__ < '2.0.0': \r\nTypeError: unorderable types: module() < str()`\r\n\r\nI was able to manually remove the error by replacing `requests.__version__` with '2.18.4' which is the value it should be pulling. If I run the code in a python terminal, it works, but if I run it as a script it fails."},"comment":{"url":"https://api.github.com/repos/requests/requests-oauthlib/issues/comments/354614412","html_url":"https://github.com/requests/requests-oauthlib/issues/299#issuecomment-354614412","issue_url":"https://api.github.com/repos/requests/requests-oauthlib/issues/299","id":354614412,"user":{"login":"kasper747","id":18053142,"avatar_url":"https://avatars0.githubusercontent.com/u/18053142?v=4","gravatar_id":"","url":"https://api.github.com/users/kasper747","html_url":"https://github.com/kasper747","followers_url":"https://api.github.com/users/kasper747/followers","following_url":"https://api.github.com/users/kasper747/following{/other_user}","gists_url":"https://api.github.com/users/kasper747/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper747/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper747/subscriptions","organizations_url":"https://api.github.com/users/kasper747/orgs","repos_url":"https://api.github.com/users/kasper747/repos","events_url":"https://api.github.com/users/kasper747/events{/privacy}","received_events_url":"https://api.github.com/users/kasper747/received_events","type":"User","site_admin":false},"created_at":"2017-12-31T17:00:48Z","updated_at":"2017-12-31T17:00:48Z","author_association":"NONE","body":"Same error on Windows 10 with Anaconda 3."}}
{"actor":{"display_login":"kasper747"}}