[issue15340] OSError with "import random" when /dev/urandom doesn't exist (regression from 2.6)

2012-09-07 Thread The Written Word
The Written Word added the comment: We do not have KRNG11i installed. It did not ship with the original installation of HP-UX 11.11. It needs to be loaded after-the-fact and we cannot be ensured that our customers will have this module installed nor do we wish to make it a requirement

[issue15340] OSError with "import random" when /dev/urandom doesn't exist (regression from 2.6)

2012-09-07 Thread The Written Word
The Written Word added the comment: We're running Tru64 UNIX 5.1A, not 5.1B which definitely doesn't have /dev/urandom. -- ___ Python tracker <http://bugs.python.o

[issue15340] OSError with "import random" when /dev/urandom doesn't exist (regression from 2.6)

2012-09-03 Thread The Written Word
The Written Word added the comment: Hi Antoine, Thanks for the heads up. I've attached a revised patch that doesn't misuse PyErr_SetFromErrnoWithFilename. -- Added file: http://bugs.python.org/file27113/hash-randomization-not-impleme

[issue15340] OSError with "import random" when /dev/urandom doesn't exist (regression from 2.6)

2012-08-31 Thread The Written Word
The Written Word added the comment: The root of the problem preventing me from running some 3rd party setup.py scripts correctly is the mismatch between (recently) raising an OSError in Python/random.c, but catching only NotImplementedError in Lib/random.py. For backwards compatibility

[issue15340] OSError with "import random" when /dev/urandom doesn't exist (regression from 2.6)

2012-08-31 Thread The Written Word
The Written Word added the comment: Actually, this regression appeared after the Hash Randomization patches prior to 2.6.8, 2.7.3, 3.1.4 and 3.2.3. Also, it not only breaks `from os import urandom`, but also prevents installation of many third-party packages that use setuptools or distribute