{"action":"created","issue":{"url":"https://api.github.com/repos/paramiko/paramiko/issues/628","labels_url":"https://api.github.com/repos/paramiko/paramiko/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/paramiko/paramiko/issues/628/comments","events_url":"https://api.github.com/repos/paramiko/paramiko/issues/628/events","html_url":"https://github.com/paramiko/paramiko/issues/628","id":118765696,"number":628,"title":"ValueError trying to connect to agent","user":{"login":"thorstenkampe","id":475462,"avatar_url":"https://avatars.githubusercontent.com/u/475462?v=3","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,"milestone":null,"comments":1,"created_at":"2015-11-25T05:48:14Z","updated_at":"2015-11-28T16:46:56Z","closed_at":null,"body":"I get the following exception (see below) from agent.Agent() under Python 2.7.10 32-bit when PuTTY Agent is running. The error does not occur when PuTTY Agent is not running:\r\n```\r\nTraceback (most recent call last):\r\n  File \"ssh.py\", line 57, in <module>\r\n    agent_connection = paramiko.agent.Agent()\r\n  File \"F:\\PortableApps\\Python2x\\lib\\site-packages\\paramiko\\agent.py\", line 363, in __init__\r\n    self._connect(conn)\r\n  File \"F:\\PortableApps\\Python2x\\lib\\site-packages\\paramiko\\agent.py\", line 66, in _connect\r\n    ptype, result = self._send_message(cSSH2_AGENTC_REQUEST_IDENTITIES)\r\n  File \"F:\\PortableApps\\Python2x\\lib\\site-packages\\paramiko\\agent.py\", line 83, in _send_message\r\n    self._conn.send(struct.pack('>I', len(msg)) + msg)\r\n  File \"F:\\PortableApps\\Python2x\\lib\\site-packages\\paramiko\\win_pageant.py\", line 123, in send\r\n    self._response = _query_pageant(data)\r\n  File \"F:\\PortableApps\\Python2x\\lib\\site-packages\\paramiko\\win_pageant.py\", line 92, in _query_pageant\r\n    pymap.write(msg)\r\n  File \"F:\\PortableApps\\Python2x\\lib\\site-packages\\paramiko\\_winapi.py\", line 162, in write\r\n    ctypes.windll.kernel32.RtlMoveMemory(dest, msg, length)\r\nValueError: Procedure probably called with too many arguments (4 bytes in excess)\r\n```"},"comment":{"url":"https://api.github.com/repos/paramiko/paramiko/issues/comments/160317935","html_url":"https://github.com/paramiko/paramiko/issues/628#issuecomment-160317935","issue_url":"https://api.github.com/repos/paramiko/paramiko/issues/628","id":160317935,"user":{"login":"rbeagrie","id":535657,"avatar_url":"https://avatars.githubusercontent.com/u/535657?v=3","gravatar_id":"","url":"https://api.github.com/users/rbeagrie","html_url":"https://github.com/rbeagrie","followers_url":"https://api.github.com/users/rbeagrie/followers","following_url":"https://api.github.com/users/rbeagrie/following{/other_user}","gists_url":"https://api.github.com/users/rbeagrie/gists{/gist_id}","starred_url":"https://api.github.com/users/rbeagrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbeagrie/subscriptions","organizations_url":"https://api.github.com/users/rbeagrie/orgs","repos_url":"https://api.github.com/users/rbeagrie/repos","events_url":"https://api.github.com/users/rbeagrie/events{/privacy}","received_events_url":"https://api.github.com/users/rbeagrie/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T16:46:56Z","updated_at":"2015-11-28T16:46:56Z","body":"I'm getting the same exception. Python 2.7.10 64 bit, paramiko 1.16.0, Windows 10 64 bit.\r\n\r\nI fixed it for now by downgrading to paramiko 1.15.0"}}