{"action":"opened","issue":{"url":"https://api.github.com/repos/dbcli/pgcli/issues/967","repository_url":"https://api.github.com/repos/dbcli/pgcli","labels_url":"https://api.github.com/repos/dbcli/pgcli/issues/967/labels{/name}","comments_url":"https://api.github.com/repos/dbcli/pgcli/issues/967/comments","events_url":"https://api.github.com/repos/dbcli/pgcli/issues/967/events","html_url":"https://github.com/dbcli/pgcli/issues/967","id":379412551,"node_id":"MDU6SXNzdWUzNzk0MTI1NTE=","number":967,"title":"Error with `--single-connection` on Windows","user":{"login":"thorstenkampe","id":475462,"node_id":"MDQ6VXNlcjQ3NTQ2Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/475462?v=4","gravatar_id":"","url":"https://api.github.com/users/thorstenkampe","html_url":"https://github.com/thorstenkampe","followers_url":"https://api.github.com/users/thorstenkampe/followers","following_url":"https://api.github.com/users/thorstenkampe/following{/other_user}","gists_url":"https://api.github.com/users/thorstenkampe/gists{/gist_id}","starred_url":"https://api.github.com/users/thorstenkampe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorstenkampe/subscriptions","organizations_url":"https://api.github.com/users/thorstenkampe/orgs","repos_url":"https://api.github.com/users/thorstenkampe/repos","events_url":"https://api.github.com/users/thorstenkampe/events{/privacy}","received_events_url":"https://api.github.com/users/thorstenkampe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-10T10:57:47Z","updated_at":"2018-11-10T10:57:47Z","closed_at":null,"author_association":"NONE","body":"Pgcli, Python and psycopg2 all on the the latest version. The issue does not occur on Linux.\r\n```\r\npgcli --single-connection postgresql://postgres:password@localhost\r\nTraceback (most recent call last):\r\n  File \"f:\\portableapps\\python\\lib\\site-packages\\pgcli\\pgexecute.py\", line 204, in get_server_version\r\n    cur.execute(self.version_query)\r\npsycopg2.ProgrammingError: execute cannot be used while an asynchronous query is underway\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"f:\\portableapps\\python\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"f:\\portableapps\\python\\lib\\runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"F:\\PortableApps\\Python\\Scripts\\pgcli.exe\\__main__.py\", line 9, in <module>\r\n  File \"f:\\portableapps\\python\\lib\\site-packages\\click\\core.py\", line 764, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"f:\\portableapps\\python\\lib\\site-packages\\click\\core.py\", line 717, in main\r\n    rv = self.invoke(ctx)\r\n  File \"f:\\portableapps\\python\\lib\\site-packages\\click\\core.py\", line 956, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"f:\\portableapps\\python\\lib\\site-packages\\click\\core.py\", line 555, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"f:\\portableapps\\python\\lib\\site-packages\\pgcli\\main.py\", line 1058, in cli\r\n    pgcli.run_cli()\r\n  File \"f:\\portableapps\\python\\lib\\site-packages\\pgcli\\main.py\", line 627, in run_cli\r\n    print('Server: PostgreSQL', self.pgexecute.get_server_version())\r\n  File \"f:\\portableapps\\python\\lib\\site-packages\\pgcli\\pgexecute.py\", line 214, in get_server_version\r\n    return self.server_version\r\npsycopg2.ProgrammingError: close cannot be used while an asynchronous query is underway\r\n```"}}
{"actor":{"display_login":"thorstenkampe"}}