[Bug 10574] New: Python _urandom()
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(a)winehq.org ReportedBy: nerijus(a)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.
http://bugs.winehq.org/show_bug.cgi?id=10574 Juan Lang <juan_lang(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |juan_lang(a)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(a)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? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10574 Nerijus Baliunas <nerijus(a)users.sourceforge.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|wine-crypt32 |wine-misc --- Comment #2 from Nerijus Baliunas <nerijus(a)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 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10574 Nerijus Baliunas <nerijus(a)users.sourceforge.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|wine-misc |wine-crypt32 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10574 --- Comment #3 from Juan Lang <juan_lang(a)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? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10574 Nerijus Baliunas <nerijus(a)users.sourceforge.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Nerijus Baliunas <nerijus(a)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. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10574 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #5 from Dan Kegel <dank(a)kegel.com> 2008-01-28 05:58:58 --- Closing all RESOLVED INVALID older than four weeks. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org