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
http://bugs.winehq.org/show_bug.cgi?id=10574
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |juan_lang@yahoo.com URL| |http://www.python.org/ftp/py | |thon/2.5.1/python-2.5.1.msi Component|wine-misc |wine-crypt32
--- Comment #1 from Juan Lang juan_lang@yahoo.com 2007-11-27 10:35:22 --- I'm assuming you're using Python 2.5.1?
Sounds like a crypto bug. Can you post a +crypt log? Can you also attach a small script that shows the problem?
http://bugs.winehq.org/show_bug.cgi?id=10574
Nerijus Baliunas nerijus@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|wine-crypt32 |wine-misc
--- Comment #2 from Nerijus Baliunas nerijus@users.sourceforge.net 2007-11-27 11:32:55 --- Yes, 2.5.1. Script is very simple:
from os import urandom as _urandom _urandom(16)
$ WINEDEBUG=+crypt wine c:\python25\python urandom.py trace:crypt:CryptAcquireContextA (0x1e1f368c, (null), (null), 1, f0000000) trace:crypt:CryptAcquireContextW (0x1e1f368c, (null), (null), 1, f0000000) trace:crypt:CryptAcquireContextW Did not find registry entry of crypto provider for L"Software\Microsoft\Cryptography\Defaults\Provider Types\Type 001". Traceback (most recent call last): File "urandom.py", line 2, in <module> _urandom(16) WindowsError: [Error -2146893801] Windows Error 0x80090017
http://bugs.winehq.org/show_bug.cgi?id=10574
Nerijus Baliunas nerijus@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|wine-misc |wine-crypt32
http://bugs.winehq.org/show_bug.cgi?id=10574
--- Comment #3 from Juan Lang juan_lang@yahoo.com 2007-11-27 11:59:39 --- I just tried it, and it works for me. Please try with a fresh .wine - rename it or remove it, then run wineprefixcreate, and try again. You should end up with the following registry values under the key "Software\Microsoft\Cryptography\Defaults\Provider Types\Type 001": Name: "Microsoft Base Cryptographic Provider v1.0" TypeName: "RSA Full (Signature and Key Exchange)"
What OS/distro is this on, anyway?
http://bugs.winehq.org/show_bug.cgi?id=10574
Nerijus Baliunas nerijus@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID
--- Comment #4 from Nerijus Baliunas nerijus@users.sourceforge.net 2007-11-27 12:07:24 --- Running wineprefixcreate even w/o fresh .wine helped, thanks! System is Fedora, but .wine was quite old.
http://bugs.winehq.org/show_bug.cgi?id=10574
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Dan Kegel dank@kegel.com 2008-01-28 05:58:58 --- Closing all RESOLVED INVALID older than four weeks.