http://bugs.winehq.org/show_bug.cgi?id=10574
Summary: Python _urandom() Product: Wine Version: 0.9.49. Platform: Other OS/Version: other Status: NEW Severity: minor Priority: P2 Component: wine-misc AssignedTo: wine-bugs@winehq.org ReportedBy: nerijus@users.sourceforge.net
When running quite a few python scripts I get a traceback:
$ wine c:\python25\python opendict.py Traceback (most recent call last): File "C:\python25\lib\mimetools.py", line 6, in <module> import tempfile File "C:\Python25\lib\tempfile.py", line 33, in <module> from random import Random as _Random File "C:\Python25\lib\random.py", line 838, in <module> _inst = Random() File "C:\Python25\lib\random.py", line 94, in __init__ self.seed(x) File "C:\Python25\lib\random.py", line 108, in seed a = long(_hexlify(_urandom(16)), 16) WindowsError: [Error -2146893801] Windows Error 0x80090017
Adding the following to python script usually helps: import os def ni(i): raise NotImplementedError
os.urandom = ni