Skip to content

ImportError: No module named 'winrandom' #17

Description

@besnik

Had problem on Windows 7 and Python 3.5.2 (64bit) when importing simplecrypt the system complained:
ImportError: No module named 'winrandom'
Seems to be coming from Crypto.Random.random import getrandbits

Anyway as suggested here by @neRok00 following solved situation for me:

Problem is solved by editing string in crypto\Random\OSRNG\nt.py:
import winrandom
to
from . import winrandom

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions