* Ср мар 22 2017 Vladimir D. Seleznev <vseleznv@altlinux.org> 2.7.11-alt3.qa1 - NMU: rebuilt against Tcl/Tk 8.6 $ python Python 2.7.11 (default, Apr 7 2017, 11:12:07) [GCC 6.3.1 20170118 (ALT 6.3.1-alt2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from random import Random as _Random Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/random.py", line 885, in <module> _inst = Random() File "/usr/lib64/python2.7/random.py", line 97, in __init__ self.seed(x) File "/usr/lib64/python2.7/random.py", line 113, in seed a = long(_hexlify(_urandom(2500)), 16) OSError: [Errno 38] Function not implemented >>> в предыдущей сборке работало.
$ uname -r 4.9.18-std-def-alt1 $ rpm -q glibc glibc-2.25-alt2.x86_64 $ python Python 2.7.11 (default, Apr 7 2017, 11:12:07) [GCC 6.3.1 20170118 (ALT 6.3.1-alt2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from random import Random as _Random >>> $ strace -o /dev/null -e fault=getrandom python Python 2.7.11 (default, Apr 7 2017, 11:12:07) [GCC 6.3.1 20170118 (ALT 6.3.1-alt2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from random import Random as _Random Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/random.py", line 885, in <module> _inst = Random() File "/usr/lib64/python2.7/random.py", line 97, in __init__ self.seed(x) File "/usr/lib64/python2.7/random.py", line 113, in seed a = long(_hexlify(_urandom(2500)), 16) OSError: [Errno 38] Function not implemented >>>
python-2.7.11-alt4 -> sisyphus: * Tue Apr 11 2017 Gleb F-Malinovskiy <glebfm@altlinux> 2.7.11-alt4 - Fixed 'random' module regression caused by glibc >= 2.25 (closes: #33355).