[Bug 10574] New: Python _urandom()

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Nov 26 18:39:22 CST 2007


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 at winehq.org
        ReportedBy: nerijus at 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


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list