{"action":"created","issue":{"url":"https://api.github.com/repos/dlitz/pycrypto/issues/110","labels_url":"https://api.github.com/repos/dlitz/pycrypto/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/dlitz/pycrypto/issues/110/comments","events_url":"https://api.github.com/repos/dlitz/pycrypto/issues/110/events","html_url":"https://github.com/dlitz/pycrypto/issues/110","id":53131635,"number":110,"title":"ImportError: No module named 'winrandom'","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-12-30T17:28:52Z","updated_at":"2015-07-08T05:34:49Z","closed_at":null,"body":"I tried 3 approaches:\r\na) Binary build v2.6.1\r\nb) `pip install pycrypto`\r\nc) manual install v2.7a1\r\n\r\n```\r\nC:\\Python34\\pycrypto-2.7a1>c:\\Python34\\python.exe setup.py build\r\nrunning build\r\nrunning build_py\r\nrunning build_ext\r\nwarning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.\r\n\r\n\r\nSecond pass to allow 2to3 to fix nt.py. No cause for alarm.\r\n\r\nrunning build\r\nrunning build_py\r\ncopying lib\\Crypto\\Random\\OSRNG\\nt.py -> build\\lib.win32-3.4\\Crypto\\Random\\OSRNG\r\n\r\nSkipping implicit fixer: buffer\r\nSkipping implicit fixer: idioms\r\nSkipping implicit fixer: set_literal\r\nSkipping implicit fixer: ws_comma\r\nrunning build_ext\r\nwarning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.\r\n```\r\nAll give the same error, namely that `winrandom` is missing. \r\nI tried to build `windrandom` (https://pypi.python.org/pypi/winrandom/1.2) as well (also builds fine, but I still get the same error about it missing.\r\n\r\n```\r\nC:\\Python34\\winrandom-1.2\\winrandom-1.2>python counterpartyd\\counterparty-cli.py --help\r\nTraceback (most recent call last):\r\n  File \"c:\\counterpartyd_build\\dist\\counterpartyd\\counterparty-cli.py\", line 14,\r\n in <module>\r\n    from Crypto.PublicKey import RSA\r\n  File \"C:\\Python34\\lib\\site-packages\\Crypto\\PublicKey\\RSA.py\", line 78, in <mod\r\nule>\r\n    from Crypto import Random\r\n  File \"C:\\Python34\\lib\\site-packages\\Crypto\\Random\\__init__.py\", line 28, in <m\r\nodule>\r\n    from Crypto.Random import OSRNG\r\n  File \"C:\\Python34\\lib\\site-packages\\Crypto\\Random\\OSRNG\\__init__.py\", line 34,\r\n in <module>\r\n    from Crypto.Random.OSRNG.nt import new\r\n  File \"C:\\Python34\\lib\\site-packages\\Crypto\\Random\\OSRNG\\nt.py\", line 28, in <m\r\nodule>\r\n    import winrandom\r\nImportError: No module named 'winrandom'\r\n\r\nC:\\Python34\\winrandom-1.2\\winrandom-1.2>python -V\r\nPython 3.4.2\r\n\r\n```\r\n\r\nI'm not sure if I'm missing something obvious here?"},"comment":{"url":"https://api.github.com/repos/dlitz/pycrypto/issues/comments/119442659","html_url":"https://github.com/dlitz/pycrypto/issues/110#issuecomment-119442659","issue_url":"https://api.github.com/repos/dlitz/pycrypto/issues/110","id":119442659,"user":{"login":"neRok-","id":8054548,"avatar_url":"https://avatars.githubusercontent.com/u/8054548?v=3","gravatar_id":"","url":"https://api.github.com/users/neRok-","html_url":"https://github.com/neRok-","followers_url":"https://api.github.com/users/neRok-/followers","following_url":"https://api.github.com/users/neRok-/following{/other_user}","gists_url":"https://api.github.com/users/neRok-/gists{/gist_id}","starred_url":"https://api.github.com/users/neRok-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neRok-/subscriptions","organizations_url":"https://api.github.com/users/neRok-/orgs","repos_url":"https://api.github.com/users/neRok-/repos","events_url":"https://api.github.com/users/neRok-/events{/privacy}","received_events_url":"https://api.github.com/users/neRok-/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T05:34:49Z","updated_at":"2015-07-08T05:34:49Z","body":"I am having this problem with python 3.4 on win 7 x64. Everything was installed to a virtualenv using pip (so should be working).\r\n\r\nI found a hacky fix here: https://stackoverflow.com/questions/24804829/another-one-about-pycrypto-and-paramiko\r\n\r\n\r\n\r\n> Problem is solved by editing string in crypto\\Random\\OSRNG\\nt.py:\r\n>    `import winrandom`\r\n> to\r\n>    `from . import winrandom`"}}